Live data from Hacker News

Turbopack, the successor to Webpack

vercel.com

31–40 of 331 posts

Re: Turbopack, the successor to Webpack

#31
post #20

I am wondering if Rails moved to esbuild a little too early.

You know. This thing is created by the creator of webpack. The site looks very polished. His name, photo, and fancy autograph is there. Seems there's too much ego involved in this project.

I tend not to trust architecture / quality / performance of people who made my programming life worse. :)

I get a lot of deno feels here. I'll just be happy with esbuild.

Re: Turbopack, the successor to Webpack

#32

Vercel is on a streak. I am curious whether Turbopack elapses Vite like Vite elapsed Webpack over the past 12 months.

according to the article, Turbopack is 10-20x faster than Vite. I wonder how they were able to edge it out so significantly!

Incremental compilation plus not having each dependency be its own network request (I work on Turbo, but not Turbopack).

Re: Turbopack, the successor to Webpack

#34

As Lee Robinson mentioned and as I had said before [0], Rust and other compiled languages are the future of tooling. We should optimize for speed for tooling, not only whether people can contribute to it or not. We can always have a JS layer for configuration while the core runs in Rust, much like for many Python libraries, the interface is in Python while the computation happens in C++. I was also looking forward to…

Turbopack is just a bundler, while Rome is the whole package. I think only Deno strives for the same, but still can’t replace things like eslint

Re: Turbopack, the successor to Webpack

#37
post #20

I am wondering if Rails moved to esbuild a little too early.

This is using swc under the hood which as a transpiler is usually slower than esbuild. What makes Turbopack faster is caching not the transpiler. Rails (or vite or whoever) can implement similar caching speeding things up as well.

Why I wouldn’t choose, esbuild is because they don’t support the automatic React runtime and don’t seem to have plans to (or at least last time I checked.) Swc does… So as long as you’re okay with that limitation I imagine you’re probably fine.

You could also potentially use Bazel for remote caching in your rails app, though I haven’t used it myself so I don’t know how well it would work.

Re: Turbopack, the successor to Webpack

#39
post #20

I am wondering if Rails moved to esbuild a little too early.

This is using swc under the hood which as a transpiler is usually slower than esbuild. What makes Turbopack faster is caching not the transpiler. Rails (or vite or whoever) can implement similar caching speeding things up as well. Why I wouldn’t choose, esbuild is because they don’t support the automatic React runtime and don’t seem to have plans to (or at least last time I checked.) Swc does… So as long as you’re ok…

Automatic JSX runtime was added to esbuild in 0.14.51: https://github.com/evanw/esbuild/pull/2349

Re: Turbopack, the successor to Webpack

#40

As Lee Robinson mentioned and as I had said before [0], Rust and other compiled languages are the future of tooling. We should optimize for speed for tooling, not only whether people can contribute to it or not. We can always have a JS layer for configuration while the core runs in Rust, much like for many Python libraries, the interface is in Python while the computation happens in C++. I was also looking forward to…

Turbopack is just a bundler, while Rome is the whole package. I think only Deno strives for the same, but still can’t replace things like eslint

Is Rome being used anywhere? I haven't heard about it for a while. Kinda figured it was dead tbh
Post reply on HN