4 ms·
I tried using Bun a few times, and I really liked working with it. Much better than Node. However...! I always managed to hit a road block with Bun and had t
by k__ 1y ago
I tried using Bun a few times, and I really liked working with it.
Much better than Node.
However...!
I always managed to hit a road block with Bun and had to go back to Node.
First it was the crypto module that wasn't compatible with Nodejs signatures (now fixed), next Playwright refused working with Bun (via Crawlee).
- Cthulhu_ 1y agoI think this is the big one that slows adoption of "better" / "faster" tooling down, that is, backwards compatibility and drop-in-replacement-ability. Probably a lot of Hyrum's Law.
- koakuma-chan 1y agoYou can use Bun as package manager only. You don't have to use Bun as runtime.
- winterrdog 1y agoSure? Does it work if I have packages that have nodejs c++ addons?
- abejfehr 1y agoWhy wouldn’t it? The end result of a npm install or a bun install is that the node_modules folder is structured in the way it needs to be, and I think it can run node-gyp for the packages that need it.
- iansinnott 1y agoIndeed! also as a test runner/lib if you're not doing browser automation. bun definitely has benefits even if not used as a runtime.
- koakuma-chan 1y agoI believe Playwright worked for me with the latest Bun though
- jherdman 1y agoStorybook is another for me.
- drewbitt 1y agoDeno doesn't work with crawlee either unfortunately
- petralithic 1y agoYou should try Deno, they have good Node compatibility
- erikpukinskis 1y agoDoes it? Last I tried, several years ago, coverage of the Node APIs was not good. I wanted to send data over UDP and a lot of Node basics there were missing.
- spartanatreyu 1y agoDeno's node compat is way better now. They're still missing niche things and they tend to target the things that most devs (and their dependencies) are actually using. But I can see they have it in their compat stuff now and it looks like it's working in the repl locally: https://docs.deno.com/api/node/dgram/ https://docs.deno.com/api/node/dgram/
- rererereferred 1y agoThis page tracks Deno's compatibility with Node by running its tests: https://ffmathy.github.io/is-deno-compatible-yet/ https://ffmathy.github.io/is-deno-compatible-yet/
- epolanski 1y agoPlaywright has been fixed one year ago I think.
- Jarred 1y agoPlaywright support will improve soon. We are rewriting node:http’s client implementation to pass node’s test suite. Expecting that to land next week.
- ukblewis 1y agoThat may be just the best way to drop that you are introducing a rewrite which fixes a set of bugs that affect users