Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simonask
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
481.
▲
by
simonask
1y ago
There's lots of choir music recorded this way. Check out Caroline Shaw's "Partita for 8 voices", for example.
482.
▲
by
simonask
1y ago
No, the original claim was that "writing C code that does not crash all the time is significantly harder/expensive", which I think is uncontroversial.
483.
▲
by
simonask
1y ago
Their very justification for the war is supposed "NATO encroachment". It is very clearly a proxy war against the EU.
484.
▲
by
simonask
1y ago
It takes a lot of mental gymnastics to completely ignore the historical context of these two conflicts. There is no question that Russia's war in Ukraine is a proxy war against the West - they say so directly by justifying it as a defe
485.
▲
by
simonask
1y ago
"Elites"? Don't project American politics to the concept of democracy. It is not the poster child, because it is not a good implementation. Nor is the decline of the US inevitable. Lots of democracies are not going through th
486.
▲
by
simonask
1y ago
"Accurate" means that an institution is not actively trying to mislead, and takes steps to correct factual errors when they occur. All traditional news media in healthy democracies do this. They distinguish clearly between reporti
487.
▲
by
simonask
1y ago
A crucial component of democracy is free and accurate media. Every single functioning democracy in the world has institutions that can apply some amount of sanctions against newspapers and other media that do no live up to the expectatio
488.
▲
by
simonask
1y ago
Yes, it absolutely does.
489.
▲
by
simonask
1y ago
They do educate people to do that already. But the power of narrative is much stronger than the motivation to do the actual work of checking your sources. It’s very easy to convince anyone to support your cause. Just tell them they are the
490.
▲
by
simonask
1y ago
Because Israel is not engaged in a war against Europe.
491.
▲
by
simonask
1y ago
Being a langitem means that the compiler can use it in desugaring, and `for ... in ...` happens to be syntactic sugar in Rust, just like `for (auto x: y) {}` is in C++. `Range` et al are also compiler builtins, because `a..b` desugars to th
492.
▲
by
simonask
1y ago
I did not bring up Rust. What are you saying? Do you think I was sent here by some sinister cabal that organizes an effort to direct any discussion about programming towards Rust?
493.
▲
by
simonask
1y ago
I’m confused. You seem to think Option is magical? It is not, and neither is Result. They are regular sum types defined in the standard library, nothing special about them.
494.
▲
by
simonask
1y ago
Yeah, a ton of engineering hours went into making that happen.
495.
▲
by
simonask
1y ago
Glad you're having a great time with it. :-) I'm informed by having shipped a lot of C++ code in my time, which has taught me a lot about actually delivering stable software. Being better than C is a very low bar here.
496.
▲
by
simonask
1y ago
I mean, there's no winning here. Either the language is too complex and does too many things, or it's not complex enough and relegates fundamental things to the standard library. I don't thing there is any substantial differe
497.
▲
by
simonask
1y ago
I agree, but we're talking about identifiers in code you write yourself here. Not the limited vocabulary of keywords, which are easy to memorize in any language. Standard libraries may trip you up, but documentation for those may be av
498.
▲
by
simonask
1y ago
Sure, you can also look them up though, because it is a limited vocabulary. Identifiers in code are not a limited vocabulary, and understanding the structure of your code is important, especially so when you are in the early stages of learn
499.
▲
by
simonask
1y ago
I mean, the keywords of a programming language have to be in some language (unless you go the cursed route of Excel). I'm arguing against the position that non-ASCII identifiers should be disallowed.
500.
▲
by
simonask
1y ago
For God's sake, what's wrong with you. :-) Just set your editor's line-height.
501.
▲
by
simonask
1y ago
I don't think a 100-line function signature is representative, but I will point out that the alternative is at least 100 lines of runtime checks instead. In both cases, what a nightmare.
502.
▲
by
simonask
1y ago
You put "just" in scare quotes, but that word does a lot of heavy lifting there. Static memory safety is an extremely useful thing, because it enables you to do things competent programmers would never dare in C, C++, or Zig. Th
503.
▲
by
simonask
1y ago
I think you are moving the goal posts. You use the `memmap2` crate, or the `libc` crate if you want to be reckless about it. The question was how the standard library gets in your way, not whether it includes everything you need. And I don&
504.
▲
by
simonask
1y ago
C is entirely as complicated as Rust, if your goal is to write correct software that doesn't crash all the time. It's only a syntactically simple language. Actually making anything interesting with it is _not_ simple.
505.
▲
by
simonask
1y ago
I mean, there's no question that Zig, also in its current state, is vast improvement over C or even C++ - for the "small stuff". It is much more pleasant to use. But there is still the "big stuff" - the things that
506.
▲
by
simonask
1y ago
Is it future-proof though? Last I saw, it relied on some yet-to-be-determined design for compiling async variants of everything that uses IO, and it was still unclear whether it was possible at all to support dynamic dispatch. My info could
507.
▲
by
simonask
1y ago
Which part of the Rust standard library are you referring to here? As far as I can tell, it contains many, many features that are irrelevant outside of systems programming scenarios with highly particular needs.
508.
▲
by
simonask
1y ago
I think the argument is that it is also extremely difficult to write low level libraries in Zig, just as it is in C. You will just only notice the difficulty at some later point after writing the code, potentially in production.
509.
▲
by
simonask
1y ago
There is almost nothing accurate about this comment. "Makes predictions to within a quantifiable epsilon"? What in the world do you mean? The industry experience with C++ is that it is extremely difficult (i.e., expensive) to get
510.
▲
by
simonask
1y ago
I tend to actually disagree with this attitude, because I see writing documentation as really effective "rubber-ducking". If it's hard and time-consuming to properly document, it's probably hard to use, so extra effort s
More ›