8 ms·
Why was SWC chosen instead of esbuild? I see esbuild in a lot more places. Also with the developer of SWC joining next.js will the non-open-source parts (STC)[
by Thomaschaaf 5y ago
Why was SWC chosen instead of esbuild? I see esbuild in a lot more places.
Also with the developer of SWC joining next.js will the non-open-source parts (STC)[1] be released?
[1]: https://stc.dudy.dev/ https://stc.dudy.dev/
- cercatrova 5y agoBecause they "strongly believe Rust is the future of JS tooling." I'd agree honestly, I like Rust a lot more than Go. But that's a debate for another time. https://news.ycombinator.com/item?id=28157256 https://news.ycombinator.com/item?id=28157256
- bern4444 5y agoMy cursory knowledge is Go is best for distributed services and things that heavily involve the network. Rust is better for memory based operations due to its safety and speed.
- rk06 5y agoBut that's just total BS unless they are directly writing rust code. If you are using tools like swc or esbuild, then you need to evaluate tool itself, not the language it was written in.
- TheCoelacanth 5y agoThey hired one of the SWC devs, so they are directly writing rust code.
- bern4444 5y agoOf course you should care about the language the tool was written in. As another example, 1Password is redoing their mac app in electron. Many are upset about this and concerned it will lead to worse performance. Solely because of the technology being used. Similarly here, evaluating esbuild vs swc inherently involves comparing their capabilities, benefits, potential etc. A lot of that is informed by the language its written in.