4 ms·
Isn’t that like saying “glad Typescript exists but still prefer Flow?” One does a tiny subset of the other after all, and when you compare what Flow does to wha
by SOLAR_FIELDS 3y ago
Isn’t that like saying “glad Typescript exists but still prefer Flow?” One does a tiny subset of the other after all, and when you compare what Flow does to what Typescript does, I think it’s possible to argue quite well that the very tiny subset of what Typescript does is arguably comparable to what flow offers but that perhaps you might get basically everything that Flow offers and 100x more if you adopted typescript. And perhaps Flow might be better at several things but if it’s only really good at solving 5% of the total problem I’m going to pick the solution that also solves the other 95% even if the 5% Flow solves is just a mediocre solution
Note that I don’t really think that bun is the solution for everything or really that it is all that great. I am just pointing out that you are trying to compare two things that are not really the same thing at all. One is probably a strict superset of the other
- tlarkworthy 3y agoI think their point is bun is not a runtime either because you can use it to spit out a blob of js that is run by the browser as normal. Which is how I use it to build js libs. Bun is then just the build and test tooling, and the various runtime bugs do not affect my downstream users (but it can impact testing).
- SOLAR_FIELDS 3y agoOh, people only use Bun as a build tool? Sorry, I thought it was being discussed as a runtime in the same land as Deno and Node. If it’s just a build tool, then parent comment is legitimate and I apologize. It’s weird though, when I google bun js the first thing it describes itself as is a “fast all-in-one JavaScript runtime”
- re-thc 3y agoBun is a runtime like Deno that can be a drop-in replacement for NodeJs. It is ALSO a bundler like esbuild.
- tlarkworthy 3y agoAnd a fricken great build tool because it speaks typescript, jest and bundling out of the box so you remove several layers of partially compatible tools (eg. Esm, jest and typescript don't really work that well together), yet still end up with a blob of js and the end so it's transparent to the browser end user
- evilduck 3y agoWe can really muddy the waters: Bun also supports Vite.
- re-thc 3y ago> We can really muddy the waters: No we don't. Bun is not Vite. Bun the package manager replaces npm/yarn/etc Bun the bundler replaces esbuild/swc/etc Bun the runtime replaces Deno/node/etc
- orta 3y ago( FWIW, they are right, Bun the _runtime_ can use the npm module Vite. https://github.com/oven-sh/bun/issues/250#issuecomment-1646368911 https://github.com/oven-sh/bun/issues/250#issuecomment-16463... )
- re-thc 3y agoWell yes as a NodeJS runtime of course it can use npm. It doesn’t muddy the waters though is what I replied to.