Code Monkey home page Code Monkey logo

awesome-lisp-languages's Introduction

Awesome Lisp Languages

A list of lisp-flavored programming languages implemented on top of existing programming languages.

Why should I care as a lisp programmer?

If you already love s-expressions then lisp-flavored languages will make it nicer when you need to build on existing platforms. In case the target language does not support advanced features like macros and REPL-driven development, these can often be easily added by using the s-expressions layer.

The second point is about helping to spread lisp and its powerful ideas more. The example of Clojure and its relative popularity shows that being hosted on existing mainstream language and leveraging ecosystems of existing libraries is a key to broader adoption. Being constrained by existing platforms can help overcoming the lisp curse.

It also lowers the barrier for people to try lisp and learn about the ideas behind it. Traditionally to learn lisp one needs to learn and get used to very unfamiliar syntax while at the same time being exposed to a completely new environment and ecosystem. Taking the environment out of the equation can make the experience of trying out lisp more approachable.

Why should I care as a programmer in other language?

Learning about Lisp will make you a better programmer. You can pick any language below based on the language you are familiar with to get you started with the lisp syntax more easily.

In general when one learns any new programming language it opens new horizons and improves programming insight. Modern programming languages are converging and sometimes are being very similar to each other. The similarities can be missed because they are hidden behind a specific syntax.

If we translate the languages to a common syntax the similarities are more apparent and the different concepts stand out more. That way we can focus on the new innovative concepts and ideas to broaden our horizons.

Classification

  • Type-A: Plain mapping from s-expressions - no extra semantics
  • Type-B: Extra semantics
  • Type-C: Clojure-like - persistent data structures, namespaces and vars, protocols, etc.
  • Type-L: Common Lisp
  • Type-S: Scheme

Languages

Listed primarily by the language which can be used for interoperability / FFI.

Language section does not necessarily mean the language of the implementation. For example Ferret compiles into C++ but the compiler is written in Clojure. Or Carp interops with C but it is mostly written in Haskell. In case of SBCL it contains only small amounts of C, but it is implemented almost entirely in Common Lisp.

C/C++

  • C-Mera [Type-A] also includes extensions to generate code to run on CUDA, GLSL
  • Carp [Type-B] statically typed, no GC (Rust-like borrow checking)
  • Extempore [Type-S] designed for live coding and music performances, temporal scheduling based on audio card sample rate
  • Ferret [Type-C] aimed towards embedded systems
  • Janet [Type-B] embedable, large standard library, GC
  • PicoLisp [Type-B] compiled to bytecode and interpreted, C and Java interop, built-in database and GUI
  • Toccata [Type-C] Clojure-inspired, gradually typed, no nil values, reference counting, compiles into native binaries
  • Common Lisp
    • SBCL [Type-L] high performance native code compiler, native threading support, type inference engine
    • CLISP [Type-L] uses bytecode compiler, easily portable
    • Clasp [Type-L] compiled using LLVM, seamless integration with existing libraries
    • See list of additional implementations.
  • Scheme
    • Chez Scheme [Type-S] compiles to native binaries, among the fastest available Scheme implementations, R6RS
    • Chicken Scheme [Type-S] produces portable and efficient C, supports R5RS and R7RS (work in progress)
    • Guile [Type-S] embedable, useful for extending programs with scripting
    • Racket [Type-S] large standard library, powerful macro system, includes DrRacket IDE
    • See list of additional implementations.

C#

  • Clojure CLR [Type-C] great for game development with arcadia and unity

Erlang

Go

  • Joker [Type-C] interpreter, linter, great for scripting, Go interop is very limited
  • Zygo [Type-B] embedable, call into native Go using reflection, optional infix syntax

Java

  • ABCL [Type-L] CL interpreter and compiler, embedable using Java scripting API (JSR-223
  • Clojure [Type-C]
  • Kawa [Type-S] scheme implementation (R7RS)
  • PicoLisp [Type-B] compiled to bytecode and interpreted, C and Java interop, built-in database and GUI

JavaScript

  • ClojureScript [Typec-C]
  • Whalesong [Type-S] Racket to JavaScript compiler
  • Wisp [Type-C] Clojure-like, has protocols, no persistent data structures

Lua

  • Fennel [Type-A] full Lua compatibility, embedable, compiled code with no runtime dependency
  • Urn [?] focus on minimalism, should work with LuaJIT, influenced by Common Lisp and Clojure

Objective-C

  • nu [?] interpreted

OCaml

Python

  • Hy [Type-A] compiles to Python AST, use Python ML libraries, runs on PyPy
  • Pixie [Type-B] Clojure inspired, written in RPython, custom GC and JIT

Rust

  • Ketos [Type-B] scripting and extension language for Rust programs, compiled to bytecode
  • Rustly [Type-C] transpiler, only small subset of Clojure supported

Shell

  • Gherkin [Type-B] (dormant) implemented in Bash, shell interop

VHDL

  • Vhdl Lisp - alternative s-expression based notation to describe programmable integrated circuits (FPGAs)

WASM

  • clj-wasm [Type-A] Clojure-flavored WASM's text format
  • Arboreta WASM [?] Common Lisp tooling for WebAssembly
  • Schism [Type-S] self-hosting compiler from a subset of R6RS Scheme to WebAssembly

Misc

  • Bel - self-hosted lisp dialect, currently no implementation exists, see also markdown formatted mirror
  • Bigloo [Type-S] - compiles into native binaries, interop with C, JVM, .NET
  • Mal is an educational lisp with implementations in dozens of languages. It is a great resource for learning about lisp implementation.
  • A list of more Clojure-like languages.
  • Additional "write C in Lisp" projects (most of them not ready for a prime time).
  • See also list of languages implemented in Lisp.

Contribute

Anything incorrect? Is there an interested project that is missing? Open an issue or PR to request adding a project to the list.

awesome-lisp-languages's People

Contributors

dundalek avatar zitterbewegung avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.