-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Make backend js ecosystem future better #6532
Comments
Bun supports |
I really appreciate all efforts on All But currently, for example, Same wheel have to reinvent repeatedly, in now and in future. Which require time for now and future. But in fact, the reinvented wheel currently still have many compatibility problems. So, I think, if
This will provide at least one backend-isomorphic way, which have zero compatibility problem. |
It's understandable to be frustrated about differences in compatibility among the runtimes. We're all trying to make it better. The challenge with this proposal is that each of these runtimes are implemented in different languages, with different engines, and using different trade-offs. Under this theory, it would also make sense for Safari, Chrome, and Firefox to re-write large swaths of their code to have a unified backend — it's just not feasible. Despite this, it's worth reiterating that Bun aims to be Node.js-compatible, and we will continue to relentlessly prioritize that goal, as well as fix the issues like the ones you mentioned. |
What would work, in the long term, and every party is going for, is standard and implementing a standard. |
Feature Request
Make backend js ecosystem future better.
What changed?
Program language like
rust
andzig
, leads to new backend js/ts runtime likedeno
andbun
.What is the problem?
npm
is awesome.To use awesome
npm
package for backend, usually needNode.js
core module.But, currently, because three runtime not able to share same
Node.js
core module, when usedeno
orbun
withnpm
packages, there are compatibility issues.Because
Node.js
deno
bun
does not able to share sameNode.js
core module and spec and test,deno
bun
reinvent the not-fully-compact wheel individually, and not reinvent-once-use-forever.What maybe the solution?
Node.js
deno
bun
all supportnapi
.deno
napi since pull/13633, stable at v1.31bun
is also implementing napiExtra
I don't know if override core module is needed for solution.
If it does, I guess
Node.js
loader anddeno
importmap should works.What is the feature request?
Rewrite
Node.js
core module usingnapi
Rewrite
Node.js
core module test usingjavascript
, soNode.js
deno
bun
browserify-XXX
can share SAME testPublish
napi
version ofNode.js
core module tonpm
Maybe publish to
npm
under a new organization@backend-javascript-core-module-standard-committee/http
Related
The text was updated successfully, but these errors were encountered: