|
|
|
|
|
by ushakov
1022 days ago
|
|
Things that people often seem to forget about when talking about Bun: * Written Zig, an unstable programming language
* Segfaults and crashes are common
* Doesn’t work on windows (edit: fixed in v1)
* The web-server is based on uWS, a third-party dependency maintained by one person
* Vendor-specific APIs like Bun.serve, Bun.file, etc. You can call Node APIs in Bun, but you cannot call Bun APIs in Node
* Tries to be everything at once: a bundler, a compiler, a package manager, a runtime, a testing framework, etc.
* A VC-baked effort. If the funds run dry there is no Bun anymore
|
|
This is confusingly worded, and I didn't understand what you were trying to say before I watched the video announcement.
"Bun" is a runtime, "JS" is a language that's implemented by multiple runtimes (including Bun, npm, and browsers). It makes no sense to say "you can't call the Bun APIs in JS" because calling them in JS is the only way to do it in the first place.
What you seem to mean is "you can't call Bun APIs from other runtimes" which is... kind of obvious? And also kind of an empty complaint, since Bun is primarily an npm replacement, and npm does the same thing[1]
[1] https://nodejs.org/api/fs.html