News for hackers. Stuff that matters.
Re:Will Bun JavaScript Take Node's Crown by mouzogu on Sunday August 14, 2022 @06:50AM (#32458206)
another day, another javascript runtime environment
Re:Will Bun JavaScript Take Node's Crown by bigDinosaur on Sunday August 14, 2022 @07:05AM (#32458275)
do we actually get many Javascript runtimes? Certainly fewer than JS frameworks.
Re:Will Bun JavaScript Take Node's Crown by o_m on Sunday August 14, 2022 @07:55AM (#32458509)
Competition is a good thing. The javascript engines wouldn't be as fast as they are now if there was only one engine.
Re:Will Bun JavaScript Take Node's Crown by birdyrooster on Sunday August 14, 2022 @11:41AM (#32460169)
Sometimes it not a good thing when it keeps people using JavaScript.
Re:Will Bun JavaScript Take Node's Crown by quickthrower2 on Sunday August 14, 2022 @08:03AM (#32458543)
we’ve done virtual dom (and better than virtual dom) UI frameworks to death so I guess this is next!
Re:Will Bun JavaScript Take Node's Crown by ikt on Sunday August 14, 2022 @06:58AM (#32458245)
as far as I'm aware Bun is significantly faster than others while maintaining a lot of the compatibility
Re:Will Bun JavaScript Take Node's Crown by lmarcos on Sunday August 14, 2022 @07:09AM (#32458296)
The problem of the JS ecosystem is not speed precisely.
Re:Will Bun JavaScript Take Node's Crown by criley2 on Sunday August 14, 2022 @07:10AM (#32458302)
Is there really that many? Outside of browsers, I know of Node, Deno and now Bun. Is there really that many serious attempts to replace node?
Re:Will Bun JavaScript Take Node's Crown by SahAssar on Sunday August 14, 2022 @07:45AM (#32458463)
The engine (V8 analog) is not a "Zig engine", it's javascriptcore. The wrapper is Zig, like node is C/C++ and deno is Rust.
Re:Will Bun JavaScript Take Node's Crown by criley2 on Sunday August 14, 2022 @07:47AM (#32458476)
My bad, their page says

"Bun uses the JavaScriptCore engine, which tends to start and perform a little faster than more traditional choices like V8. Bun is written in Zig, a low-level programming language with manual memory management."

I conflated these two.

Re:Will Bun JavaScript Take Node's Crown by v413 on Sunday August 14, 2022 @07:39AM (#32458432)
Bun is using the JavaScriptCore engine which is the Webkit/Safari Javascript engine. It is not written in Zig.
Re:Will Bun JavaScript Take Node's Crown by _the_inflator on Sunday August 14, 2022 @07:26AM (#32458374)
History is repeating once again. So let's face it: NodeJS is now the new Java. ;)