Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kibwen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
451.
▲
by
kibwen
6mo ago
It's not a question of support, it's a question of defaults. Rust code exercises a single-ownership discipline by default, and you must opt-in to dynamic multi-ownership (via refcounting or otherwise). In languages that have perva
452.
▲
by
kibwen
6mo ago
The point of Rust, without counting `unsafe`, is to eliminate memory errors at compile-time. But the point of Rust, when including `unsafe`, is not to entirely eliminate memory errors at compile-time, but to make it feasible to cordon off t
453.
▲
by
kibwen
6mo ago
I used to think this too, but nowadays I think this would have been a mistake. Result is actually the more important and fundamental type, not Option, and giving Option special syntax would cause people to want to favor it over Result even
454.
▲
by
kibwen
6mo ago
SSO does have overhead. Firstly, on every access you have a branch. Secondly, and more severely, the "most general" umbrella type that all string methods are defined on is a string slice, and whereas conversion from `String` to `&
455.
▲
by
kibwen
6mo ago
Indeed, I've seen LLMs begin to cite their sources, which is a commendable advancement and something that I've been asking for since the beginning of this craze: LLMs as librarians, not as summarizers. But if the commenter had a r
456.
▲
by
kibwen
6mo ago
We need to make like Japanese and come up with some neo-first-person-pronouns for bots to use to refer to themselves.
457.
▲
by
kibwen
6mo ago
It sure would be great if the LLM in question would cite its sources so that we could verify whatever source it ingested this text from.
458.
▲
by
kibwen
6mo ago
If only Uber drivers parked in the bike lanes were as easy to pacify.
459.
▲
by
kibwen
6mo ago
I can't wait to carry a set of orange cones on me at all times so that I can put any misbehaving autonomous cars in Road Jail. After all, expecting cyclists not to resort to vigilantism to keep themselves safe from billion-dollar compa
460.
▲
by
kibwen
6mo ago
> This is where autocracies like China, or monarchies for example, win over democracies. This is the wrong characterization, and in fact it's where monarchies lost out to democracies. Without an organized system of replacement in
461.
▲
by
kibwen
6mo ago
> The functions have the same calling conventions regardless of IO implementation. Okay, then by that definition, Rust doesn't have colored functions either, because `async fn foo() -> Bar {` in Rust is just syntax sugar for `f
462.
▲
by
kibwen
6mo ago
I think the clearest sales pitch comes from this post from the author of Trio, which is an implementation of structured concurrency for Python: https://vorpus.org/blog/notes-on-structured-concurrency-or-g... .
463.
▲
by
kibwen
6mo ago
> And as for Rust - that's beyond inexplicable. No, you appear to have no idea what you're talking about here. Rust abandoned green threads for good reason, and no, the problems were not minor but fundamental, and had to do w
464.
▲
by
kibwen
6mo ago
> Language designers who studied the async/await experience in other ecosystems concluded that the costs of function coloring outweigh the benefits and chose different paths. Not really. The author provides Go as evidence, but Go&
465.
▲
by
kibwen
6mo ago
> It's irrelevant though, you figure it out only when it's a problem. For the past decade people have been clawing their eyes out over how sluggish their computers have become due to everything becoming a bloated Electron app
466.
▲
by
kibwen
6mo ago
Our bodies are designed to crave calories, but habitually ingesting too much sugar is more about hijacking dopamine release pathways than about fulfilling your body's basic need for satiation.
467.
▲
by
kibwen
6mo ago
As the article mentions, this is a false dichotomy. If you're an ordinary person driven to be healthy, drink water. Water is great. If you're already drinking water, you should absolutely not replace it with whatever bottled crap
468.
▲
by
kibwen
6mo ago
You may need to sit down for this, but when Yahoo launched, TCL was 6 years old, Perl was 7, and Erlang was 8. Today, Go is 14, Swift is 12, and Rust is 11.
469.
▲
by
kibwen
6mo ago
Marching humanoid terminator robots will never be as cheap as a drone. Autonomous suicide drone swarms are what should terrify you.
470.
▲
by
kibwen
6mo ago
It definitely looks better in the second screenshot than the first, but you have to be very, very close to the screen in order to see individual pixels like that. And on low-res displays, which this sort of font might be necessary for, it&#
471.
▲
by
kibwen
6mo ago
Manual memory management requires the programmer to insert calls to free at specific points in the program. That's manual static lifetime determination. A traditional garbage collector uses runtime analysis to determine when it's
472.
▲
by
kibwen
6mo ago
You've made it clear from this thread that you have no idea what you're talking about. Please do not waste our time by commenting on this topic further.
473.
▲
by
kibwen
6mo ago
> it is better having automated resource management Rust's ownership system is automated resource management. What you're asking for is dynamic lifetime determination, which Rust provides via types that opt out of the hierarc
474.
▲
by
kibwen
6mo ago
> 4x4: Not enough to draw "E", "M" or "W" properly. However, 5x5 isn't enough to draw "e" properly if you also want lowercase letters to have less height than uppercase, so you need at least
475.
▲
by
kibwen
6mo ago
Shipping on water has been, by far, the cheapest mode of long-distance shipping since the moment boats were invented. That is to say, since thousands of years before boats were ever powered by the shit that destroys our lungs.
476.
▲
by
kibwen
6mo ago
> You could also argue that this is a benefit in that they gain updated technology with each replacement. No, having the option to replace technology at your leisure would be a benefit. Being forced to replace your technology becau
477.
▲
by
kibwen
6mo ago
> its mission has pivoted from colonising Mars to building a Dyson sphere Obligatory mention: https://www.youtube.com/watch?v=fLzEX1TPBFM
478.
▲
by
kibwen
6mo ago
Perhaps modern AAA games have become so handholdy that any game that shuts up long enough to allow the player to experience a sense of genuine exploration and wonder counts as a puzzle game, in which case I'd recommend the rich genre o
479.
▲
by
kibwen
6mo ago
On the contrary, if poisoning actually works, and if asking LLMs becomes the predominant way that uninformed people access knowledge, then it means that people with obscure knowledge will be entirely capable of denying knowledge to anyone w
480.
▲
by
kibwen
6mo ago
Prepare yourself to get inundated with recommendations. Antichamber, Tunic, Talos Principle, Blue Prince, Return of the Obra Dinn, Outer Wilds, Superliminal, literally every Zachtronics game (most especially Opus Magnum)...
More ›