3 ms·
Transpilation platforms. There's a lot of new programming languages being written, but few people want to use a programming language without many libraries. One
by bshanks 6y ago
Transpilation platforms. There's a lot of new programming languages being written, but few people want to use a programming language without many libraries. One solution to this is to host the new language on an existing platform/library ecosystem, e.g. JVM, BEAM, Lua, C, but this requires choosing a platform and tying the language to that platform (and accepting the design choices of that platform's major implementations, e.g. in some cases, the platform implementation may have slow startup time, which makes it hard to use your new language for quick scripting from the commandline).
Instead, one could imagine a programming language platform designed to transpile the new language to multiple underlying platforms. Like LLVM IR, this transpilation platform could be a nexus that supports many different frontends and many different backends. Such a transpilation platform would make it easier for new languages to be useful sooner.
- bshanks 6y agoI should be clearer about how a "transpilation platform" would differ from something like LLVM IR. First, a transpilation platform is focused on interoperability between the source high-level language and the target platform, including high-level language constructs like passing hashtables back and forth. Second, where feasible a transpilation platform attempts to output human-readable high-levl code in the high-level target language.