by VectorLock · 7y ago · 0 comments
People are using a variety languages that compile to JS on the frontend for many years. Elm, TypeScript, ClojureScript, Reason, Scala.js, Fable, etc. In fact even modern JS is often compiled into backward compatible legacy-JS these days.
WebAssembly is porting the C machine model to the web, so for the foreseeable future JS is still going to be a better runtime for most GCd languages.
Actually, it seems there are some Python transpilers as well, though they don't seem as supported as what I listed.
Anyways, my point is there's quite a lot of options on top of JavaScript. And for web dev, transpilers are the way to go, because bundle size matters for page loads, so options like this, where you compile the whole interpreter into a bundle aren't valid for that. For example, I use ClojureScript for web dev, and it works great. There are options to escape the shackles of having to write JS.
I worked with a researcher a few years ago who used it to do somewhat complex frontend presentations.
But why? Just learn a little javascript. Its fun.
It’s learn webpack, learn parcel, learn react, learn vue, learn typescript, learn redux, learn npm, learn yarn etc etc.
If it was python, at least it wouldn’t change every three months.
If I remember correctly, ActiveState was the one offering it.