News for hackers. Stuff that matters.
[dead]
Re:Bun v1.1.22 – Bun Blog by vlovich123 on Wednesday August 07, 2024 @09:36PM (#41187263)
No, it's a JS runtime based on WebKit's JavaScriptCore JS engine. Performance claims should be taken with a grain of salt and are less likely to be the result of the JS engine itself and more likely to be with some specific architectural choices (e.g. implementing certain things in native code instead of JS, better parallelism, more efficient event loop, etc etc).

JS Platform = all the bits that make up the capabilities the JS code can access when it calls various APIs provided by the "platform" that connects to the OS.

JS engine = the thing that implements parsing & executing the JS code as defined by various standards (e.g. ECMA2022) and implements a very small subset of APIs those standards define (e.g. how String and ByteArray work).

Re:Bun v1.1.22 – Bun Blog by Jarred on Wednesday August 07, 2024 @10:07PM (#41187457)
Bun is a JavaScript runtime, bundler, transpiler, npm package manager, and test runner all-in-one.

It isn't accurate to say Bun is a JavaScript engine. We use JavaScriptCore as the engine, which is the same engine used by Safari (WebKit). The engine is responsible for running the code and a number of language APIs (Array, Object, Number, RegExp, etc). The runtime is responsible for things like I/O, filesystem access, the event loop, and implementing a very large number of non-language APIs and modules

Re:Bun v1.1.22 – Bun Blog by ben-schaaf on Wednesday August 07, 2024 @09:42PM (#41187303)
Note Bun is a runtime environment using the JavaScriptCore engine from WebKit/Safari. Node uses V8 (chrome) which was a little faster in benchmarks last I checked. Where Bun claims performance is in all the system APIs like reading a file, running a http server, etc.