News for hackers. Stuff that matters.
Re:Parcel 2 Beta 3 – improved build performance by Cu3PO42 on Thursday May 20, 2021 @03:30PM (#27225925)
I'm always happy to hear about performance improvements to JS dev tooling. In recent years significant improvements have already been made, but it's still... slow.

However, I have concerns about using Rust here. Not because it's Rust specifically, but because it means yet another native dependency. I've done my best to eliminate any native code from projects because they would always cause problems sooner or later. Mostly later when coming back to an old project. Are there any plans to optionally ship the compiler as WASM to avoid this?

Re:Parcel 2 Beta 3 – improved build performance by devongovett on Thursday May 20, 2021 @04:22PM (#27226684)
We will have a WASM build, yes. Mainly for running in the browser or on platforms we don't build for. In our tests so far, it is significantly slower though (e.g. ~30%) so it's a tradeoff.
Re:Parcel 2 Beta 3 – improved build performance by Cu3PO42 on Friday May 21, 2021 @02:22PM (#27237890)
That's great to hear! I might be willing to take that penalty depending on the size of the project to avoid any future incompatibilities.
Re:Parcel 2 Beta 3 – improved build performance by tanaypingalkar on Thursday May 20, 2021 @04:10PM (#27226506)
Why you have concerns with native dependencies, it is just a transpiler and a dev dependencies. How it affect your project?
Re:Parcel 2 Beta 3 – improved build performance by Cu3PO42 on Friday May 21, 2021 @02:25PM (#27237935)
It affects me and other people working on it. I have to make sure the systems running the dependencies have an appropriate Python and C(++) toolchain installed. If they use Node bindings, they will probably need to be updated for newer versions of Node.

When I come back to the project after some time, the first thing I need to do is update dependencies. I often had colleagues on whose devices some dependency would just refuse to compile for one reason or another.

Sure, this isn't the greatest problem in the Node ecosystem right now, but it's painful enough that I would rather not deal with it.