46 karma · joined Dec 27, 2023 (2y ago) · 21 submissions
comment 2mo ago · link · parent
comment 6mo ago · link · parent
Yes, obviously you can write high-quality software in Zig. But does Zig categorically reject the kind of bugs Bun was suffering from? Rust does.
comment 6mo ago · link · parent
What caused you to hallucinate such a broad blanket statement? The point is the memory unsafety issues they ran into would be categorically impossible in safe Rust, which is why they're doing this in the first place.
comment 9mo ago · link · parent
> It's neutral to this topic, it's about tech.
this thread began by xe bringing up failures in moderation affecting trans people
comment 11mo ago · link · parent
> There's also an Apple VP saying unified memory on AS doesn't leave room for DGPUs and separate VRAM
can you link to this? my intuition is that they're speaking on whether apple would include dgpus inside AS systems like they used to with nvidia and amd chips in macbooks, which i agree wouldn't make much sense atp
comment 11mo ago · link · parent
afaik you technically can, except that m1/m2 force pcie bars to be mapped as device memory (forbids unaligned r/w), so most gpu software (and drivers) that just issue memcpys to vram and expect the fabric to behave sanely will sigbus. it's possible to work around this, and some people indeed have with amdgpu, but it'd absolutely destroy performance to fix in the general case
so it doesn't really have anything to do with apple themselves blocking it but rather a niche implementation detail of the AS platform that's essentially an erratum
comment 12mo ago · link · parent
https://doc.rust-lang.org/stable/std/cell/struct.RefCell.htm...
https://doc.rust-lang.org/stable/std/cell/struct.RefCell.htm...
comment 12mo ago · link · parent
Where are the “subtle linguistic distinctions”? These types do two completely different things. And neither are even capable of being used in a multithreaded context due to `!Sync` (and `!Send` for Rc and refguards)
comment 1y ago · link · parent
comment 1y ago · link · parent
[0]: https://github.com/solidiquis/erdtree [1]: https://github.com/Canop/broot
comment 1y ago · link · parent
You can't encode that mutual exclusivity if you return a std::pair or std::tuple. That's exactly why std::expected, std::variant, or Rust enums exist, to make that constraint explicit in the type system.
comment 1y ago · link · parent
Some languages even make omitting error handling impossible! (e.g. Result sum types). None have anywhere near the amount of "whining" Go seems to attract
comment 2y ago · link · parent
from https://fasterthanli.me/articles/i-want-off-mr-golangs-wild-...
> The point is, this function signature makes it impossible for us to access an invalid/uninitialized/null Metadata. With a Go function, if you ignore the returned error, you still get the result - most probably a null pointer.
comment 2y ago · link · parent
[1]: https://github.com/input-leap/input-leap/commit/78ca8f1ef7b6...