"Third Hand" Languages(jonbeebe.net) |
"Third Hand" Languages(jonbeebe.net) |
This is in contrast to Haskell, which undergoes a fair amount of static analysis and optimization before code generation ever happens. Also, GHC doesn't only output C, and doesn't even translate Haskell directly to C. Instead, Haskell is transformed into C-- code, and GHC can be made to target C to be compiled by GCC, as you say, or the LLVM intermediate representation, or, most commonly, machine code directly.
Yes, JS sucks. It's also getting less sucky, because it won't go away. Kind of obvious at this point.