Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xonix
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
xonix
6mo ago
But how would POSIX shell be available? Wouldn’t it be compiled from C?
2.
▲
by
xonix
9mo ago
Re: TCO Does the language give any guarantee that TCO was applied? In other words can it give you an error that the recursion is not of tail call form? Because I imagine a probability of writing a recursion and relying on it being TCO-optim
3.
▲
by
xonix
9mo ago
Reminded me of bytebeats (though I admit it's a different thing): https://bytebeat.demozoo.org/#t=0&e=0&s=44100&bb=5d00000100f...
4.
▲
by
xonix
2y ago
Long time ago I was obsessed with Prolog. I found that if you bend it enough you could implement imperative code (a-la JavaScript) evaluation, still being valid Prolog: https://github.com/xonixx/prolog-experiments/
5.
▲
by
xonix
2y ago
No AWK?
6.
▲
by
xonix
2y ago
You could also like my tool: https://makesure.dev/ https://maximullaris.com/makesure-vs-make.html https://maximullaris.com/makesure-vs-just.html
7.
▲
by
xonix
2y ago
My take on this is that it's not always the best idea to abstract-out SQL. You see, the SQL itself is too valuable abstraction, and also a very "wide" one. Any attempt to hide it behind another abstraction layer will face the
8.
▲
by
xonix
2y ago
Right, this is not the problem par se. To me this is a rather philosophical question. Related to the motivation behind the project. If someone has some particular domain problem to which they need to introduce the new programming language,
9.
▲
by
xonix
2y ago
It's funny to watch how often new programming languages resemble visually (and conceptually) the language they are written in. You can put it the other way: just look at a syntax sample and try to guess the implementation language. I c
10.
▲
by
xonix
2y ago
email:string( regex(".*@.*\\..*") ) This is incorrect regex for email. The correct one is https://pdw.ex-parrot.com/Mail-RFC822-Address.html
11.
▲
by
xonix
2y ago
Or makesure: https://makesure.dev/
12.
▲
by
xonix
3y ago
You can also implement includes in couple (tens) of lines of AWK: https://maximullaris.com/revamp_define.html#mglwnafh
13.
▲
by
xonix
3y ago
Nice. Once I did some experiments at programming in Java using only sun.misc.Unsafe for a memory access: https://github.com/xonixx/gc_less . I was able to implement this way basic data structures (array, array list, has
14.
▲
by
xonix
3y ago
You can also program in Python just in list comprehensions: https://maximullaris.com/abusing_python.html
15.
▲
by
xonix
3y ago
makesure, a similar tool ( https://maximullaris.com/makesure-vs-just.html ) I'm developing, doesn't require installation in the traditional sense: https://github.com/xonixx/makesure#installation
16.
▲
by
xonix
3y ago
It has: https://github.com/xonixx/gron.awk/blob/e5040a7b1384c5839dca... Strange, should be much less failures: https://github.com/xonixx/gron.awk/blob/e5040a7b1384c5839dca... C
17.
▲
by
xonix
3y ago
My pure-AWK variant: https://github.com/xonixx/gron.awk (features complete JSON parser in AWK).
18.
▲
by
xonix
3y ago
True. Probably, only AWK is an exception.
19.
▲
by
xonix
3y ago
I've just turned off all the Feed filters to show empty feed. This way it's more useful, than with it's "new content". I've bookmarked the direct link to https://github.com/dashboard-feed , unfo
20.
▲
by
xonix
3y ago
For me the most relevant selling point of GraalVM is beeing able to compile to native self-contained executable. But on the other hand, Golang delivers on this aspect much better (or at least much faster).
21.
▲
by
xonix
3y ago
Correct me if I'm wrong, but to me passing the access token in the GET URL is not a good security practice. This increases the probability of unintentionally exposing the token. The URLs can be logged by proxy servers, application logs
22.
▲
by
xonix
3y ago
This reminded me the idea of compilers bootstrapping ( https://news.ycombinator.com/item?id=35714194 ). That is, now you can code in SectorC some slightly more advanced version of C capable of compiling TCC ( https:/
23.
▲
by
xonix
4y ago
This sounds reasonable. When the GoAWK creator tried to add Unicode support through UTF-8 he discovered that this had drastic performance implications (rendering some algorithms to be O(N^2) instead of O(N)), if done naive https:/
24.
▲
by
xonix
4y ago
Btw, the GNU awk is also considerably faster (due to bytecode) than awk bundled with BSD & Mac (usually, "one true awk").
25.
▲
by
xonix
4y ago
When at some point I decided to learn AWK better, I was surprised to find that it had some very Perl-ish features, like `print` is the same as `print $0` or `if(/abc/){}` as shorthand for `if($0 ~ /abc/){}`, etc. Later I
26.
▲
by
xonix
5y ago
Since AWK is DSL for text processing it can be (and usually is) much more elegant and efficient for (surprise!) text processing tasks, than general purpose languages like Python. Not long ago I was really fascinated by this example I came a
27.
▲
by
xonix
5y ago
>There's tons of incompatible dialects. I think that shows the problem with what you're saying. To my knowledge the major dialects in use are: - One True Awk (aka bwk) ( https://github.com/onetrueawk/awk ) -
28.
▲
by
xonix
5y ago
I would kindly disagree here. I myself been dedidacted Python lover in past for many years now came to a conclusion that what can be scripted with AWK, should be scripted in AWK (over Python, Ruby, Perl, etc.). I'm not saying that
29.
▲
by
xonix
5y ago
Idempotence is achievable elegantly with makesure tool [1] using @reached_if directive [2]. Full disclosure - I’m the author of the tool. [1] https://github.com/xonixx/makesure [2] https://github.com/xo
30.
▲
by
xonix
5y ago
There is Awk - fascinating mini-language almost unchanged for decades. Therefore very portable. You can learn it once and be sure you know it all.
More ›