Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kibwen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
841.
▲
by
kibwen
11mo ago
We know that being a billionaire surrounded by yes-men all day causes brain damage, and we know that being on social media living in a delusion bubble all day causes brain damage, so really they were already cooked even before signing what
842.
▲
by
kibwen
11mo ago
The fact that the price is being dramatically raised to the grand total of $37 says more about how fantastically cheap it is to visit the Louvre currently. They could easily double that and not see any noticeable decrease in ticket sales fr
843.
▲
by
kibwen
11mo ago
It's still technically a profit margin if it's less than zero...
844.
▲
by
kibwen
11mo ago
I envy your optimism. The truth is that humans are generally stupider and more craven than you have apparently even begun to conceive.
845.
▲
by
kibwen
11mo ago
This is patently false. The majority of the "features" that get added to Rust in every release are additions to the standard library.
846.
▲
by
kibwen
11mo ago
> Rust and JS are both famous for having minimal standard libraries I'm all in favor of embiggening the Rust stdlib, but Rust and JS aren't remotely in the same ballpark when it comes to stdlib size. Rust's stdlib is dec
847.
▲
by
kibwen
11mo ago
> But the fact that at least on npm it was possible that someone else grabs a package ID after an author pulled its packages is kind of alarming. Since your comment starts with commentary on crates.io, I'll note that this has neve
848.
▲
by
kibwen
11mo ago
Mozilla might be in better shape, but the web wouldn't be.
849.
▲
by
kibwen
1y ago
In Rust, `.unwrap()` is nine characters, whereas propagating the Result via `?` is one.
850.
▲
by
kibwen
1y ago
The `unsafe` keyword means something specific in Rust, and panicking isn't unsafe by Rust's definition. Sometimes avoiding partial functions just isn't feasible, and an unwrap (or whatever you want to call the method) is a wa
851.
▲
by
kibwen
1y ago
> Not familiar with Rust but it seems unwrap is such a thing that would be banned. Panics aren't exceptions, any "panic" in Rust can be thought of as an abort of the process (Rust binaries have the explicit option to imp
852.
▲
by
kibwen
1y ago
I think the parent is implying that the panic should be "caught" via a supervisor process, Erlang-style, rather than implying the literal use of `catch_unwind` to resume within the same process.
853.
▲
by
kibwen
1y ago
Indexing is comparatively rare given the existence of iterators, IMO. If your goal is to avoid any potential for panicking, I think you'd have a harder time with arithmetic overflow.
854.
▲
by
kibwen
1y ago
> Rust and C++'s biggest mistake, not passing allocators into containers and functions Rather, basing its entire personality around this philosophy is Zig's biggest mistake. If you want to pass around allocators in C++ or Rus
855.
▲
by
kibwen
1y ago
> if other languages that address one of the main rust claims without all the cruft But regardless of how much one likes Zig, it addresses none of the problems that Rust seeks to solve. It's not a replacement for Rust at all, and
856.
▲
by
kibwen
1y ago
> But Bitcoin is hard capped at 21 million coins Bitcoin is not an immutable law of nature. If the coin minting cap is reached, all that needs to happen is for miners to start running a fork with a higher cap. Tada, more coins conjured
857.
▲
by
kibwen
1y ago
Yes, but at this point we're completely outside the scope of Unicode, which has nothing to do with how anything actually gets drawn to the screen.
858.
▲
by
kibwen
1y ago
> That being said, it would be pretty easy to implement some pointer semantics even in C that can do 95% of what Rust does. Making a language with memory-safe pointers isn't hard. Making a language with memory-safe pointers that d
859.
▲
by
kibwen
1y ago
Rather, they found one memory safety bug in their Rust codebase, and measured it against the legions of memory safety bugs they found in their C++ codebase. In neither case are they measuring against bugs not found, so no, it's not bia
860.
▲
by
kibwen
1y ago
> Because it's not a silver bullet. It does look like a silver bullet, actually. In the context of software engineering, "silver bullet" inevitably leads to Fred Brooks: '"No Silver Bullet—Essence and Accident
861.
▲
by
kibwen
1y ago
> overly-long Worth noting that one of the focuses of the past decade-ish of development has been to make the game significantly shorter. D has lost 7 floors, Lair and Vaults lost 3, Elf, Orc, and Crypt lost 2, the S branches and Slime
862.
▲
by
kibwen
1y ago
But even if it's double the price of the PS5/Xbox, it's still likely to be less than the price (at the time of purchase) of the mean PC in the hardware survey. For every gamer out there struggling along on a $500 mini-PC, the
863.
▲
by
kibwen
1y ago
On the other other hand, the average system in that survey presumably cost more than what the Steam Machine will retail for, if we're correct in interpreting this as being a competitor to dedicated consoles.
864.
▲
by
kibwen
1y ago
Contrast this with the documented philosophy of Dungeon Crawl Stone Soup, which at least partly positions itself as a philosophical antithesis to Nethack: https://github.com/crawl/crawl/blob/master/crawl-
865.
▲
by
kibwen
1y ago
I cite destructors specifically because Zig denounces destructors as "hidden control flow" while presenting defer as a non-hidden alternative to destructors, which I find to be an incoherent philosophy.
866.
▲
by
kibwen
1y ago
Yes, it's worth noting that your GPS is still active even in airplane mode.
867.
▲
by
kibwen
1y ago
Last Monday in a fit of exasperation I turned my phone into airplane mode. And that's where I left it, for an entire week. I swear this was the most productive week of work I've ever had in my professional career. It's astoni
868.
▲
by
kibwen
1y ago
Even at the worst case, text can be read aloud and give some indication of what the screen contains. This is absolutely not true for a GUI which could easily just be an opaque rendered canvas. The fact remains: TUIs are inherently legible
869.
▲
by
kibwen
1y ago
> It's not the same, defer does not conditionally interrupt the flow of execution, it will always run at the end of a block. But destructors also don't conditionally interrupt the flow of execution, and always run at the end
870.
▲
by
kibwen
1y ago
If exceptions count as hidden control flow because suddenly a function call can jump to a `catch` block, then defer absolutely counts as hidden control flow because suddenly the end of your function jumps to a `defer` block defined at an ar
More ›