Follow

Are there any flavors that aim to transpile to other programming languages? Seems like it'd be handy to have a way to make libraries than can be reused in other langs. Lisp just seems like a simple enough set of syntax for transpiling.

· · Web · 7 · 1 · 4

Ty for the responses! It looks like wax (recommended by @technicat) seems to be closest to what I was looking for. It remains to be seen if the constrained environment would lead to usable code still. github.com/LingDong-/wax/blob/

@mauve Embeddable Common Lisp: ecl.common-lisp.dev/main.html It compiles to C code.

There's also Lisp-Flavored Erlang which compiles to Erlang before compiling to byte code to run on the Beam virtual machine.

@mauve Sorry. You said transpilation. Many of those out there that I know of only transpile to another language for intermediary code.

@mauve Anyway, check out this post emacs.ch/@ramin_hal9001/111106 by @ramin_hal9001 about ECL compiling to C++ code and the following one in the thread with a link to the blog post that goes into more detail.

> "Are there any #lisp flavors that aim to transpile to other programming languages?"

@mauve as @jotaemei mentioned, ECL is one that uses C and C++ as a target language, but does not necessarily generate human-readable code. There is also Chicken Scheme which also uses C as a target language.

Then there is Gambit Scheme which is similar to Chicken, but supports C and JavaScript as target languages, with an experimental Python back-end as well.

If you are looking for a Lisp-like that generates code that is more human readable, there is the Wax language, which provides a way to declare data structures for imparative and object-oriented languages. It supports Python, JavaScript, Java, C# C, C++, Lua, and WebAssembly.

Sign in to participate in the conversation
Mauvestodon

Escape ship from centralized social media run by Mauve.