Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simonask
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
301.
▲
by
simonask
9mo ago
Isn't that "somehow" super attributable to the fact that Go is garbage collected? Garbage collection is the one other known way to achieve memory safety.
302.
▲
by
simonask
9mo ago
That might be convenient if your language has semantics that map well-ish to C99 semantics. But C is a really messy language with lots of little quirks. For example, Rust code would compile to something slower if it had to use C as an inter
303.
▲
by
simonask
9mo ago
I think in C# the way to solve this is to have two separate types, `Ok<TValue>` and `Err<TError>`, and provide implicit conversions for both to `Result<TValue, TError>`. The static method approach showcased in the article
304.
▲
by
simonask
9mo ago
That’s… not how any of that works.
305.
▲
by
simonask
9mo ago
I mean, because maintaining software is hard and costly, and a lot of this is developed by enthusiasts in their spare time? Supporting legacy stuff is universally difficult, and makes it significantly harder to implement new things.
306.
▲
by
simonask
9mo ago
Booting from a USB is not straightforward to the average person. Even understanding what that means is advanced.
307.
▲
by
simonask
9mo ago
Interesting conversations and connections are with those people who are different from yourself, not with those who share the same experience of everything.
308.
▲
by
simonask
9mo ago
It is completely wild to me that we have apparently reached a stage where eugenics is such an accepted ideology that people will apply it to themselves . This is disgusting. You deserve to live, and I'm sorry for whatever experiences
309.
▲
by
simonask
9mo ago
Crucially, the way in which China has achieved this has been through economic liberalization. The rest of China’s potential will never be unlocked as long as it is kept artificially constrained by the political control of authoritarianism.
310.
▲
by
simonask
9mo ago
There is no reason to believe that Oman wouldn’t do much better as a free, democratic country.
311.
▲
by
simonask
9mo ago
Every C++ compiler is perfectly able to optimize stale writes, so I'm always skeptical of code that leaves uninitialized fields around. I would always strongly prefer rearranging the code to be easier on the optimizer.
312.
▲
by
simonask
10mo ago
History has yet to produce a “good” monarch (i.e. one that yields better results than the alternative, which is liberal democracy).
313.
▲
by
simonask
10mo ago
I’m sorry, but this really gets to me. Your writing is not improved. It is no longer your writing. You can achieve these things, but this is a way to not do the work , by copying from people who did do the work, giving them zero credit.
314.
▲
by
simonask
10mo ago
If by “better” you mean “worse”, you can come to this conclusion, but nazism was absolutely never a socialist project. Socialists and nazis were enemies from the start. Both ideologically and historically the two ideologies are complete opp
315.
▲
by
simonask
10mo ago
It’s absolutely not useless, I do it often as a way to diagnose various kinds of problems. But it’s extremely rare that a handwritten version actually performs better.
316.
▲
by
simonask
10mo ago
An old approach to micro-optimization is to look at the generated assembly, and trying to achieve the same thing with fewer instructions. However, modern CPUs are able to execute multiple instructions in parallel (out-of-order execution), a
317.
▲
by
simonask
10mo ago
Just be careful not to blindly apply the same techniques to a mobile or desktop class CPU or above. A lot of code can be pessimized by golfing instruction counts, hurting instruction-level parallelism and microcode optimizations by introduc
318.
▲
by
simonask
10mo ago
You know, I actually sympathize with the opinion that people should be expected and assumed to be able to resist attempts to convince them of being nazis. The problem with it is, it already happened at least once. We know how it happened. U
319.
▲
by
simonask
10mo ago
Rust fanboys on Reddit are not contributing to the Linux kernel. What matters here is that Rust helps serious people deliver great code.
320.
▲
by
simonask
10mo ago
This is just so obtuse. Be serious. Even if you somehow manage to ignore the very obvious theoretical argument why it works, the amount of quantitative evidence at this point is staggering: Rust, including unsafe warts and all, substantiall
321.
▲
by
simonask
10mo ago
And it is intellectually lazy.
322.
▲
by
simonask
10mo ago
You have a wild amount of confirmation bias going on here, though. Of course, this bug was in an `unsafe` block, which is exactly what you would expect given Rust's promises. The promise of Rust was never that it is magical. The promis
323.
▲
by
simonask
10mo ago
I just wonder how readily people would defend this viewpoint if they belonged to any of those groups whose "feelings" are typically being "hurt". I don't know about you, but there does not exist any amount of techni
324.
▲
by
simonask
10mo ago
I think it’s because you misread my comment by skimming over the important parts. This isn’t about tooling, it’s about language features and type systems.
325.
▲
by
simonask
10mo ago
Copenhageners eat the same plastic-wrapped salads, organic grass-fed whatever, and whatever the latest green smoothie trend is, as in Southern California. If this is a dig at the largely pork/cabbage/potato-based diet of Northern
326.
▲
by
simonask
10mo ago
Comparing type systems is difficult, but the general experience is that it is significantly easier to encode logic invariants in Rust than in C++. Some of the things you can do, often with a wild amount of boilerplate (tagged unions, nich
327.
▲
by
simonask
10mo ago
FTA: > Others think someone from the Rust (programming language, not video game) development community was responsible due to how critical René has been of that project, but those claims are entirely unsubstantiated. What is this culture
328.
▲
by
simonask
10mo ago
And they are saying that it already is, naming a few examples of things that really need to be illegal to reprogram. GPS et al would be non-functional if everybody could make a jammer. (That’s not to say that app stores fall even remotely i
329.
▲
by
simonask
10mo ago
No matter how hard you try to paint it as such, Rust is not a tribe. This is such a weird characterization. Rust contributions to the Linux kernel were made by individuals, and are very obviously subject to the exact same expectations as ot
330.
▲
by
simonask
10mo ago
C has a lot of the same borrowing rules, though, with some differences around strict aliasing versus the shared/exclusive difference in Rust. Most of the things people stub their toe on in Rust coming from C are already UB in C.
More ›