News for hackers. Stuff that matters.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by jalino23 on Tuesday July 05, 2022 @08:40PM (#31995483)
this is very interesting difference too! can you please tell me what you like more about zig over rust and JavascriptCore over v8. very interesting cause I've always thought v8 is superior to JC cause v8 is chrome and JC = safari and zig is very interesting too
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by skavi on Tuesday July 05, 2022 @11:23PM (#31996333)
Safari consistently performs better than Chrome in JS benchmarks (on Macs).
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by easrng on Tuesday July 05, 2022 @11:57PM (#31996542)
Also some things are wayyy slower on v8 compared to other engines. (I've only checked spidermonkey.) In my experience v8 is faster at running WASM and spidermonkey is faster at running optimized js (not quite asm.js but using some tricks like |0) and starting workers.
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by chrisseaton on Wednesday July 06, 2022 @05:47AM (#31998746)
> I've always thought v8 is superior to JC cause v8 is chrome and JC = safari

I have never in my life heard anyone say they thought V8 was superior to JSC - what are you basing that on?

Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by jokethrowaway on Wednesday July 06, 2022 @06:29AM (#31999007)
The entire marketing for Chrome was that V8 was faster.

Since 2019, it seems like JSC is actually faster (they even beat V8 benchmarks).

Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by mi_lk on Wednesday July 06, 2022 @07:01AM (#31999228)
source please?
Re:Bun: Fast JavaScript runtime, transpiler, and NPM client ... by conaclos on Wednesday July 06, 2022 @07:46AM (#31999506)
Every JS engine has interesting design choices. V8 has more documentation than other (the v8 blog is great resource [1]). This ism ore easy to have an overview of V8 internals. It could be nice to have more internal overview from other engine, in particular SpiderMonkey. It is hard to find up-to-date info.

[1] https://v8.dev/blog