A Rust shaped hole
mnvr.in
A Rust shaped hole
1–10 of 319 posts
Re: A Rust shaped hole
#2Re: A Rust shaped hole
#3You can use Bun to compile to native binaries without jumping through hoops. It's not mature, but it works well enough that we use it at work.
Re: A Rust shaped hole
#4Re: A Rust shaped hole
#5I write Gleam for this. A rust like language on the erlang VM. It's neat, but not widely used.
Re: A Rust shaped hole
#6Rust allows low level programming and static compilation, while still providing abstraction and safety. A good ecosystem and stable build tools help massively as well.
It is one of the few languages which managed to address a real life need in novel ways, rather than incrementing on existing solutions and introducing new trade offs.
Re: A Rust shaped hole
#7It's a detail, but this is a little bit off. RAM latency is roughly around ~100ns, CPUs average a couple instructions per cycle and a few cycles per ns.
Then in the analogy, a stall on RAM is about a 10 minute wait; not quite as bad as losing entire days.
Re: A Rust shaped hole
#8For the other 10% software that is performance-sensitive or where I need to ship some binary, I haven't found a language that I'm "happy" with. Just like the author talks about, I basically bounce between Go and Rust depending on what it is. Go is too simple almost to a fault (give me type unions please). Rust is too expressive; I find myself debugging my knowledge of Rust rather than the program (also I think metaprogramming/macros are a mistake).
I think there's space in the programming language world for a slightly higher level Go-like language with more expressiveness.
Re: A Rust shaped hole
#9Re: A Rust shaped hole
#10> While I can jump through hoops to compile JavaScript into a binary, such wouldn't feel "solid". And the very point of writing a native program in the first place is to make it feel solid You can use Bun to compile to native binaries without jumping through hoops. It's not mature, but it works well enough that we use it at work.