In Part 1 of this series, two example transpilers were reviewed: TypeScript and Fable. In this second article, Babel and Nim are reviewed.
The Babel website includes a page of basic examples, linked to a “Try it Out” page that shows how Babel transforms pieces of code.
Here are a few links for further exploration of the Nim language:
- Nim provides specific information and instructions for each of the backends to which it compiles.
- A third party has developed a self-described “rudimentary” Read Evaluate Print Loop (REPL) for Nim on github to allow previewing post-compilation code in real-time.
- Nim also includes a since-deprecated built-in REPL called “nim secret”, put out of use due to its inability to incorporate C’s stdlib.
Blogger Dennis Felsing has provided an excellent, feature-by-feature overview of Nim’s capabilities.