Why in javascript??? Ugh. Maybe it's great, but javascript sucks and should never be used for a compiler.
- It was for my conference talk for a JavaScript audience.
- JavaScript is the language I use for 99% of my work.
- JavaScript has a much larger audience.
- I'm a maintainer of a JavaScript compiler (http://babeljs.io/) and I want more people to be able to contribute.
- JavaScript is totally fine for a compiler.
Also, hating on programming languages is dumb.
It's not like they're saying javascript should be used for all compilers. Even so, there are several javascript-based compilers and transpilers in widespread use today, so even javascript hackers should be able to apply the concepts of compilers in their work.