Show HN: Netpack – a bundler written in C#/.NET
2 points| FlorianRappl | 1 year ago |github.com
The answer is yes. Right now it's still feature incomplete (so generally I would not make this a too strong statement), but as of today it's faster than the tested competition (rspack, vite, esbuild).
FlorianRappl|1 year ago
The main reason why C#/.NET can be viable in that space is AoT. Without AoT the startup performance (as well as runtime requirements) is killing the whole idea.
AoT, on the other hand, comes with some challenges. Some libraries cannot be used or require some work to be integrated. Hence, some of the flexibility of .NET cannot be used.
neonsunset|1 year ago
(obviously can be further optimized but hey it already beats the alternatives)
FlorianRappl|1 year ago
Yes indeed - it can be optimized further, but it will also loose some perf. when things such as sourcemaps or tree shaking are introduced. Right now I am positive that in total it should be around the same as of now due to the potential optimizations (e.g., streaming in the JS AST generation).