News for hackers. Stuff that matters.
Re:Speedy Web Compiler – A Rust port of Babel and Closure Co... by peterhunt on Sunday December 23, 2018 @10:49AM (#18746685)
Js packing performance (including compilation) is probably the slowest part of the iteration cycle for frontend devs today. When combined with Babel’s and ecmas extensive test suites I think something like this could be wildly successful.
Re:Speedy Web Compiler – A Rust port of Babel and Closure Co... by rcavezza on Sunday December 23, 2018 @10:59AM (#18746741)
Can you elaborate more on this? I've worked with very large codebases in React and Angular and have not seen this issue. I'm guessing it's either because all of my applications were able to hot-reload or we're not thinking of the same thing.
Re:Speedy Web Compiler – A Rust port of Babel and Closure Co... by the_mitsuhiko on Sunday December 23, 2018 @11:06AM (#18746793)
I don’t know if we’re doing something wrong but initial startup time on sentry’s webpack setup is something like 30 seconds and iterative changes around 5 seconds. Still beats our rust or python iteration times though :)
Re:Speedy Web Compiler – A Rust port of Babel and Closure Co... by orf on Sunday December 23, 2018 @04:17PM (#18748383)
Have you looked into why the Sentry Django app takes so long to boot? Are you doing queries on app init or something?
Re:Speedy Web Compiler – A Rust port of Babel and Closure Co... by peterhunt on Sunday December 23, 2018 @11:07AM (#18746803)
a lot of codebases don't support hot reload, but even the ones that do often require multi-second incremental compile times during hot reload if they're big enough [1].

[1] current project is very slow w/ 250kloc (2.5mm kloc w/ dependencies). even seen it be slow on my last project which was only 40kloc.

Re:Speedy Web Compiler – A Rust port of Babel and Closure Co... by mort96 on Sunday December 23, 2018 @11:34AM (#18746948)
Just using tsc to compile a hello world with 7 tokens takes over a second in my experience. Sure, most of that is initialization, but compare that to the C and C++ world, where GCC spends tens of milliseconds at most compiling hello world.

Hot reloading _helps_, but it's definitely an issue that javascript tooling spends seconds on tasks other languages' tooling spends tens or hundreds of milliseconds on. (The issue isn't just limited to tsc either; just starting the build system can take a decent amount of time with webpack, while make or cmake starts in milliseconds.)