News for hackers. Stuff that matters.
Re:Time for Makefiles to Make a Comeback by Yaggo on Tuesday September 05, 2017 @11:38AM (#15176261)
You lose incremental builds of modern bundlers/transpilers, which makes your build time too slow for bigger projects. People nowadays expect to see changes almost in realtime using hot module replacement etc.
Re:Time for Makefiles to Make a Comeback by akvadrako on Tuesday September 05, 2017 @04:04PM (#15178644)
That's because those tools aren't designed to play well with others. It's not due to the design of make.
Re:Time for Makefiles to Make a Comeback by Yaggo on Wednesday September 06, 2017 @05:21AM (#15182240)
I would say it's partly because of the design of make.

A Makefile consists of separate commands¹ and is heavily file-based¹, which makes it rather slow and doesn't allow to keep state (in memory) between re-runs. Traditionally this hasn't been bottleneck, because compiling C code was relatively slow operation, but modern web development tools prefer to work with in-memory streams instead of invoking executables for tiny files on disk.

I'm not saying you cannot do things with make, but in NodeJS/web ecosystem it just doesn't feel as natural/flexible as the "native" NodeJS-based toolchain.

[1] Great for interoperability, but sometimes more tailored solution is worth it.

Re:Time for Makefiles to Make a Comeback by akvadrako on Wednesday September 06, 2017 @12:09PM (#15184749)
Launching a process on Linux only takes about 2ms, and make only needs to do it for parts that change. There is no reason you couldn't use a make-based system to get incremental rebuilds with under 100ms latency, which is about as good as most people get with native JS systems.