News for hackers. Stuff that matters.
Re:Show HN: Scala-ts – Scala to TypeScript compiler by clhodapp on Friday December 09, 2016 @11:40PM (#13144060)
Reflection APIs and compiler internals actually tend to be quite similar. In the case of Scala in particular, the reflection API was literally produced by scooping out part of the compiler into a separate library and trying to polish (or hide) the rough edges. The effort wasn't entirely successful in producing an easy-to-use API, but the in-development successor project, scala.meta, is still very compiler-y (just because, again, compiler internals tend to look a lot like reflection APIs).

Further, it is my belief that your project actually was a compiler, whether you thought of it as that or not!

Re:Show HN: Scala-ts – Scala to TypeScript compiler by lmm on Saturday December 10, 2016 @04:57AM (#13144934)
It's a compiler but not a Scala compiler. Rather it's a compiler for a smaller language, whether one thinks of and names that language or not.

(I actually recommend pushing that line of thought all the way through, and using something like thrift (with Scrooge) for this kind of problem. The thrift compiler is a compiler and the thrift IDL is a defined and specified language rather than an ad-hoc subset of Scala)