News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by ad404b8a372f2b9 on Saturday May 15, 2021 @01:04PM (#27166934)
That's not a solution if you end up with Javascript in the end. (Also Dash is absolutely terrible, horrible documentation, horrible code.)
Re:Modern Javascript: Everything you missed over the last 10... by dragonwriter on Saturday May 15, 2021 @01:27PM (#27167127)
> That's not a solution if you end up with Javascript in the end. (

It is, just as using compile-to-(or interpreted-by-a-runtime-in-)-native-code languages is a solution to “I don’t like raw x86_64 machine code for desktop applications”, even if you end up running machine code in the end.

> Also Dash is absolutely terrible, horrible documentation, horrible code.

“X is not a choice people can make” is a different claim than “One example of X is not something I personally would recommend”.

Re:Modern Javascript: Everything you missed over the last 10... by ad404b8a372f2b9 on Saturday May 15, 2021 @04:45PM (#27168850)
The issue is that writing code that goes through a JS-transpiler is more complicated than just writing Javascript, unless the language you choose is Javascript-adjacent, whereas writing code that compiles to machine code is infinitely less complicated than just writing machine code.

As to your second point, that's why I put it in parentheses, of course it doesn't refute your claim but if you use as example a technology that has awful documentation because of this two-language paradigm, and leads to garbage code both at the Python stage and the Javascript stage, to me it doesn't paint a good picture of the whole concept.

Re:Modern Javascript: Everything you missed over the last 10... by vbsteven on Saturday May 15, 2021 @01:13PM (#27166995)
Why is that not a solution? The concept of compiling/transpiling a language into the target language for the runtime is everywhere.

Even native languages like C/C++/Rust compile their language into binary format that the platform can run. It just so happens that the web runtime format is JS instead of binary machine instructions.

Re:Modern Javascript: Everything you missed over the last 10... by HideousKojima on Saturday May 15, 2021 @01:22PM (#27167082)
Because debugging your transpiled JavaScript becomes a nightmare in a language you already hate
Re:Modern Javascript: Everything you missed over the last 10... by dragonwriter on Saturday May 15, 2021 @01:40PM (#27167254)
> Because debugging your transpiled JavaScript becomes a nightmare in a language you already hate

That’s what sourcemaps are for; you don’t have to debug compiled instead of source format on the web just like you don't on other platforms.