Kotlin as a Language for Frontend Development
summary
Kotlin compiles to ES5 JavaScript, emits source maps for debugger-friendly debugging, and supports three interop paths: the unsafe js("...") snippets, the flexible Dynamic type, and typed external declarations (plus a TypeScript-def converter). Generated code focuses on runtime speed and is currently larger than hand-written JS, but a Kotlin-specific JS optimizer in master shrinks the runtime from about 1+MB to roughly 66KB before bundling; webpack integration and incremental compilation work continue.
AI-written summary · about
