Re:Will Bun JavaScript Take Node's Crown
by mouzogu on Sunday August 14, 2022 @06:50AM
(#32458206)
another day, another javascript runtime environment
[ Parent
| on HN ]
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.
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!
as far as I'm aware Bun is significantly faster than others while maintaining a lot of the compatibility
The problem of the JS ecosystem is not speed precisely.
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?
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.
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.
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. ;)