News for hackers. Stuff that matters.
Re:Swc – Fast JavaScript to JavaScript compiler by edwinjm on Sunday February 10, 2019 @04:58AM (#19127123)
But why? For IE11? A browser for which support will end next year?

All current browsers support ES2015 already. If you really want to support the few users still using IE11, you can use Babel. Why invest many hours in a project to make this faster? And that will be obsolete in two years?

Re:Swc – Fast JavaScript to JavaScript compiler by bmichel on Sunday February 10, 2019 @09:26AM (#19127865)
Tanspiling from ES2015 to ES5 is no longer the main usage of babel. For example, there is transforming JSX to normal JS. And object rest/spread proprerties (ES2018) is often used by front developers, even if it is not supported by Edge. So, I don't think that babel and swc will be obsolete in 2 years. The most used transform plugins for those will change, but the parser and engine will remain. And having fast and robust tool here is a good thing for this field.
Re:Swc – Fast JavaScript to JavaScript compiler by randomfool on Sunday February 10, 2019 @07:20AM (#19127512)
If you use dynamically rendered content then ES6 won’t work in googlebot, since that’s still Chrome 41. https://developers.google.com/search/docs/guides/rendering.
Re:Swc – Fast JavaScript to JavaScript compiler by tiborsaas on Sunday February 10, 2019 @06:00AM (#19127288)
JS is not browser only for a long time now, there might be situations where you have to target old JS runtimes.

IE 11 is still relevant and large code bases can take a long time to compile with Babel.

Why invest time? Probably someone thought it would be fun to beat Babel's performance :)