Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chubot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
481.
▲
by
chubot
3y ago
Oh wow, I had stumbled on the zsh behavior of echo hi > *.txt # writes ALL of the files! No other shell does that. But I didn't know it was called MULTIOS until now. (I guess that's read "mult I/O's&qu
482.
▲
by
chubot
3y ago
> Filesystem software, especially databases, can't be ported to Amazon S3 This seems mistaken. Porting databases that run on local disk to S3 seems like a good way to get a lashing from https://aphyr.com/ Can any d
483.
▲
by
chubot
3y ago
Hm interesting, also see dgsh, the directed graph shell https://www2.dmst.aueb.gr/dds/sw/dgsh/ https://github.com/dspinellis/dgsh https://news.ycombinator.com/item?id=217
484.
▲
by
chubot
3y ago
I don't know exactly when, but I think it had a lot to do with the fact that in 2004, Python, Ruby, and yes JavaScript were all fairly niche. (This might be hard to believe for some, but it's true. GMail had just come out, and it
485.
▲
Flexible and Economical UTF-8 Decoder
(bjoern.hoehrmann.de)
3 points
by
chubot
3y ago
|
0 comments
486.
▲
by
chubot
3y ago
Predictions aren't worth much without a bet, but I think the tech will plateau in the next decade, for several years or more, just like it has in the past One main reason is that I think people underestimate how much work OUR brains a
487.
▲
UTF-8: Bits, Bytes, and Benefits
(research.swtch.com)
3 points
by
chubot
3y ago
|
0 comments
488.
▲
by
chubot
3y ago
Right, I think that's just what I said the first time this came up: all languages with GC have graphs builtin. (Though C has graphs too. If every node shares the same lifetime, then it's pretty easy to manage. Otherwise it can b
489.
▲
by
chubot
3y ago
Hm I don't see anything like cc_library(). Though I misread the intro -- it doesn't claim to be like Bazel, just less than Bazel I saw "Bazel and Ninja" in the post, and thought it was more similar to what I had built.
490.
▲
by
chubot
3y ago
Yeah that's what I mentioned in the last sentence of my comment The reason most build systems don't have it is because sandboxing is OS-specific Bazel has sort of a complicated bootstrap/deployment for that reason. I mention
491.
▲
by
chubot
3y ago
Hm it seems like the defining feature of Bazel is high level "macros" like cc_library() and proto_library() on top of the low level build graph I looked at the examples and tutorial and it still seems more low level, in that you
492.
▲
by
chubot
3y ago
Remainder goes with division, and respects invariants Modulus doesn’t. I believe that algebraically equality module N can exist without division
493.
▲
by
chubot
3y ago
Perl isn't a shell! https://www.oilshell.org/blog/2021/01/why-a-new-shell.html#a... It also doesn't have any incremental build tool builtin. (not that it should, and not that Oils does) It does hav
494.
▲
by
chubot
3y ago
Hm, I guess my response would be that this sorta begs the question. WHY are awk and sh/bash the "best" thing on nearly all Linux machines, the default choice? Why didn't something better come along in the 90's or 2
495.
▲
by
chubot
3y ago
A defining feature of Oils is that it's compatible, not incompatible. It runs your old code because it's an upgrade of POSIX shell and bash. It also runs external executables like awk and make, just like any other shell. See FAQ
496.
▲
by
chubot
3y ago
(author here, wow this popped up) I still think this is true, after so many years :) Shell, awk, and make all started out as limited DSLs, and then they grew bad languages on top. Also, shell, awk, and make are still weirdly popular, and e
497.
▲
A Twist on Wadler's Printer
(justinpombrio.net)
65 points
by
chubot
3y ago
|
7 comments
498.
▲
by
chubot
3y ago
After using re2c, I actually think it should have been built into C. Why? - Because Ken Thompson was co-inventor of C, and he ALSO brought regular languages to computing. IIRC he basically wrote the first version of grep, and compilers li
499.
▲
by
chubot
3y ago
Note: rather than "lexer generator", "regular language to state machine compiler" is a better description. Lexers can use re2c, but it's not even the whole story. This is good because it means it's "polic
500.
▲
by
chubot
3y ago
Hm as an re2c user, I always thought that Ragel vs. re2c was a push/pull issue (though re2c flag has a --storable-state flag to generate the push style -- I haven't used it) But now that I look at the example on the front page: h
501.
▲
by
chubot
3y ago
This is sort of a category error... re2c is a lexer generator, and YAML and Python are recursive/nested formats. You can definitely use re2c to lex them, including indentation, but it's not the whole solution. You need a parser t
502.
▲
by
chubot
3y ago
Author here - there are indeed many parts of the project, and it has a lot of functionality. But it's paradoxically small -- I point that out at the very end of the post - https://www.oilshell.org/blog/2024/02
503.
▲
by
chubot
3y ago
OK very interesting! I skimmed over the issue and some of the examples. It does seem like there are at least two schools of thought on the pretty printers -- those influenced by the Wadler pretty printing language (functional style), and t
504.
▲
by
chubot
3y ago
I think I agree about the testing and labor of complicated translation rules. But it doesn't appear that almost every pretty printer is based on the Wadler algorithm. It seems like MOST of them are not? e.g. clang-format is one of th
505.
▲
by
chubot
3y ago
Yeah I kinda think people are always "learning from their last mistake" (and that's definitely true for me) - Sometimes you hack, and you end up with a mess. And then the lesson you learn is to study the prior art first. - S
506.
▲
by
chubot
3y ago
Oh I'm curious why you're rewriting it? Maybe speed, quality, handling new language features, or all of the above? I may dive into this problem What do you think of the functional "pretty printing languages" like Wadle
507.
▲
by
chubot
3y ago
My guess is that the root causes are - organic web results are dwindling because the OS and browser try to answer the question first - users spend more time in mobile apps compared to browsers - the best content moved behind paywalls That i
508.
▲
by
chubot
3y ago
I mostly mean the common criticisms of Google for incentivizing web spam, and Facebook for pushing low quality / addictive / political content into people's feeds. (Though if you ask people outside the tech industry, they mi
509.
▲
by
chubot
3y ago
Hm I'm glad this story made it to the top. I'll indulge this train of thought some more, since it's something I've been thinking about. (But still in honor of the person who this article is about) Again, growing up wit
510.
▲
by
chubot
3y ago
Some good testimonials for Bob's product 5 months ago: Breakfast cereal is in long-term decline (wsj.com) - https://news.ycombinator.com/item?id=37540770 This article is great -- I didn't know the back story beh
More ›