Re:BuckleScript: write JavaScript faster, safer and smaller
by eru on Monday January 23, 2017 @12:14PM
(#13463721)
Our bearded forefathers wrote C because assembly had some issues. They still compile to assembly.
Haskell compiled to C for the longest time (and quite a few other compilers use that trick). That didn't make Haskell a bandaid around C, did it?
Re:BuckleScript: write JavaScript faster, safer and smaller
by elbear on Saturday January 21, 2017 @04:21PM
(#13452226)
WebAssembly is a work in progress. I think they had their first release some time ago, but I don't know how long it will be before it's safe for languages to target it for compilation.
My opinion on the matter is that Javascript sucks. We all know it sucks too, which is why things like Elm, CoffeeScript, ClojureScript, TypeScript, BuckleScript, Scala.js, etc. exist. We want to fix Javascript because we understand that it sucks; therefore, we tend to embrace these various attempts to make it less stupid. The solution to the problem, in my mind, isn't yet another Javascript transpiler though, but rather native support for superior languages.
I'd like to see an API built into browsers to make them language agnostic. I think that would go a long way towards making web programming less lame. It may also give us a chance to clean up the DOM.