3 ms·
I found mixing Bun and Rust works pretty well. Bun has gotten many cool new things recently which feel great to use and it has a nice FFI API. So I have Next.js
by koakuma-chan 1y ago
I found mixing Bun and Rust works pretty well. Bun has gotten many cool new things recently which feel great to use and it has a nice FFI API. So I have Next.js apps running in Bun runtime and anything CPU bound is written in Rust and called via FFI.
- pjmlp 1y agoI would have expected Zig, given Bun, or using Deno instead, if Rust as extension language.
- koakuma-chan 1y ago> I would have expected Zig You can use Zig instead if it meets your needs, but last time I checked, the Zig ecosystem was lacking compared to Rust. > or using Deno instead, if Rust as extension language Deno? There was a thread the other day that Deno is dead. I wouldn't even compare Deno and Bun because Bun is just waaay better. Even before Bun already felt very polished and nice to use, and now it even has native postgres and s3 clients. And it doesn't try to sell you a KV database or some shit.
- pjmlp 1y agoThe point I was making was using the same language the VM makes use of, instead of adding extra layers.
- koakuma-chan 1y agoI mean, I guess there would be some point if you, e.g., forked bun and wrote new APIs in Zig. But if you are using FFI it doesn't really matter because the interface is C ABI anyway; there's no extra layers in using a language different from the one your runtime uses.
- never_inline 1y agoJS developer use tooling older than 3 years challenge. Level: impossible.
- koakuma-chan 1y agoIt's not only JS. The tooling was just trash everywhere before Rust started gaining traction. E.g. for Python there is uv now, and I am definitely not going back to freaking pip.
- never_inline 1y agoMe neither. But only because uv is compatible with pip. I am not going to use bun / dinosaur whatever instead of node at this point.
- koakuma-chan 1y ago> But only because uv is compatible with pip. Take this: Bun is compatible with Node.
- pjmlp 1y agoIt is cozy enough in JVM/CLR land, the problem is when we need to get out of the druid mountain.