Why I like JavaScript as a compilation target (2023)
Summary
The author argues that JavaScript is a practical compilation target for language implementations, highlighting its ubiquity, accessible debugging, and strong FP-friendly features. The post walks through translating functional constructs (functions, closures, ADTs, pattern matching) to JavaScript and discusses interop via FFI, presenting JS as a viable intermediate representation for compilers and interpreters.