Can't really find what the main benefits of io.js are though...
Why wouldn't bun, if it keeps its performance promises on its way to 100% node compatibility? I am intently keeping tabs on bun's progress because a better-engineered, faster, and leaner node-compatible runtime means $$ saved in server costs.
Besides, from the effort going into bun, it looks like the node community has its work cut out.
happy to answer any questions or feedback
How has Zig been for you in this regard? Do you have any regrets building your company’s flagship software around it at this stage?
I was seriously looking at Zig, but I'm always getting faster in Rust and it feels like the downsides of extra complexity is well worth the upsides for larger projects.
Hate to carry forward baggage of past design choices, but likely essential to really get widespread adoption. I'd definitely start using Bun for my projects today (non-production), if it works seamlessly with existing packages.
Basically everything that doesn’t rely on node’s internal “bindings” C++ stuff should eventually be supported
Were there any organizational or policy changes after the "9 month grind" [0] tweet? Or is this still the policy of the bun/oven org?
import { inflate } from "https://www.example.org/libs/zlib.ts"
with bun downloading all dependencies in the background. Like Deno does.[1][1] https://deno.land/manual@v1.28.3/basics/modules#remote-impor...
I hijacked your jsx support so that I had built in server-side templating without having to pull in any external libraries (e.g. React). The process of building my own TSX bindings was pretty trivial, but did feel like a hack (I created a React package.json entry that was a file path to my local source folder).
Is that scenario doable with less hackery?
There is also a setting in bunfig.toml but it appears we haven’t documented it yet
> Bun now works in more Linux environments, including Amazon Linux 2 and builds for Vercel and Cloudflare Pages. (Previously, you might have seen errors like: "version 'GLIBC_2.29' not found")
How would building for Vercel and CF pages work? Like normal but installing the relevant build tools using bun?
Right now you’d need to download it via curl https://bun.sh/install | bash
But we need to make that better
Seems like being written in Zig might give it a good foot in the door here.
Thanks for all you do to make the ecosystem better, btw.
- Compiling to a single binary
- WASM
Overall though, Bun honestly looks like it has a shot to supplant Node if npm package compatibility reaches a sufficient level. Or at least encourage Node to work much harder on perf. Deno feels a bit too esoteric/theoretical in its approach, vs Bun which looks to be much more focused on ease of use
Is anyone using bun in production? Would love to hear your experience.
It’s early days, so I definitely miss some things— like a REPL.
I gotta say, though, it’s a good feeling when you deploy a zero-dependency TypeScript application complete with tests.
And if the type hints aren't useful for the runtime, then there's no real reason to enforce that they be present. A Typescript runtime that ignores types is just a Javascript runtime with a more pedantic syntax, and if you're going to that effort, you may as well support both.