#rcompat - JavaScript interoperability and runtime compatibility layer for servers
1 messages · Page 1 of 1 (latest)
node.js too...
and process.loadEnv(".env") too
the only thing node is lacking is whatwg web server
honestly
here u use fs/promises which is slow
u should use readFileSync
ok?
ok blue
u won 🤠
why u make this unknown not any
did u do it in other modules too
if yes, i'm too tired to do more than 1 xd
1 simple reason: performance
If you know what you are doing, writting your own implementations for each runtime will beat any type of wrapper
Leightweight means nothing when it comes to performance, + abstractions are not needed when doing things by hand yourself, and the moment you are against code duplication without even exploring what it trully means just shows how little you really care about performance in this scenarios.
And no, before you think something wrong, this is not an attack on your project, i think things like this are good for people who are just bad/new programmers but you asked for a reason and i gave you one with enphasis on "if they know what they are doing"
It is realistic because majority of projects do not care about this issue, and jquery only existed because of microsoft being stupid with IE, but i digress
If its a lib yes, if its a personal project idk its preference
Bun does not work in some systems... and some people just want to for whatever reason
I think rcompat is a good solution

Imagine you want to support Node, Deno and Bun
no
bun? yes
node? ok, sure maybe
deno? hell nah get out
Based
well, ask didas 😄
they decided to invent deno after calling node a failure, why now it should be my responsibility to support it exclusively
not my fault that they made the mistake
it's like if you shot someone then I got to the prison for your mistake
considering deno is not even any better nor that much different, even uses the same JS engine so they did almost nothing
just different API
oh man you're a hater just like me frfr
when it comes to deno yes I don't like it
yes because its shallow to node
i agree
v8 API is just garbage
so they can't do much
and need to use JS/weird stuff
while bun just uses JSC
he just makes presentations on youtube
about deno and jsr and deploy deploy and shit
but doesn't actually code
jsr, why does it even exist
To brainrot who doesnt know better
lol
pov i wanted to upvote him and i can't react to his message because he blocked me
emotional 🙏
serve.ts — (L9-L9)
fetch: request => handler(request),
(well, only the this binding and maybe if bun passes more args would change)