diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index e6eb25e..6f7e00d 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -28,16 +28,16 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: source: ./ destination: ./_site - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 deploy: environment: @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/rebuild-readme.yml b/.github/workflows/rebuild-readme.yml index 3c8e269..19db8af 100644 --- a/.github/workflows/rebuild-readme.yml +++ b/.github/workflows/rebuild-readme.yml @@ -9,7 +9,7 @@ jobs: - uses: denoland/setup-deno@v1 with: deno-version: v1.x - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Render template run: | make -B diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f4b9ac0..0aecdc0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,8 +2,24 @@ ## What and how to contribute -Please submit a pull request or create an issue to add a new language to the list. We are looking for language implementations that are either actively maintained or largely "done". The VM, bytecode compiler, and standard library (if any) must have a free (*libre*) license. They may have optional add-ons with any license. A Datalog implementation must be able to parse Datalog source code; it must not be just an [EDSL](https://en.wikipedia.org/wiki/Domain-specific_language#External_and_Embedded_Domain_Specific_Languages). +Please submit a pull request or create an issue to add a new language to the list. +We are looking for language implementations that are either actively maintained or largely "done". +The VM, bytecode compiler, and standard library (if any) must have a free (*libre*) license. +They may have optional add-ons with any license. +A Datalog implementation must be able to parse Datalog source code; +it must not be just an [EDSL](https://en.wikipedia.org/wiki/Domain-specific_language#External_and_Embedded_Domain_Specific_Languages). ## Do not edit `README.md` directly -`README.md` is automatically generated from `README.md.jinja2` and the data in [`data/projects.toml`](data/projects.toml). Do not edit `README.md` directly. To add a project or update a project's information, edit `data/projects.toml`. Edit `README.md.njk` to change information not derived from `data/projects.toml`. +`README.md` is automatically generated from `README.md.jinja2` and the data in [`data/projects.toml`](data/projects.toml). +Do not edit `README.md` directly. +To add a project or update a project's information, edit `data/projects.toml`. +Edit `README.md.njk` to change information not derived from `data/projects.toml`. + +## Descriptions + +Avoid marketing language in descriptions. +You are encouraged to list a few of the project's cool standout features in the description, +but don't call the project itself "fast" (relative to what?) or "revolutionary" (a matter of opinion). +Write without adjectives when possible. +If the project is faster than most implementations of the same language, say that. diff --git a/README.md b/README.md index b0c1308..2959f37 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Embedded scripting languages -The following is a list of reasonably mature open source [embedded scripting languages](https://en.wikipedia.org/wiki/Scripting_language) to use in your application. Stretching the definition of a scripting language, it also includes [Datalog](https://en.wikipedia.org/wiki/Datalog) implementations. Items with a strong copyleft license (like the GNU GPL) that will apply to the rest of your code are **emphasized** as a warning. +The following is a list of reasonably mature or actively developed open source [embedded scripting languages](https://en.wikipedia.org/wiki/Scripting_language) to use in your application. Stretching the definition of a scripting language, it also includes [Datalog](https://en.wikipedia.org/wiki/Datalog) implementations. Items with a strong copyleft license (like the GNU GPL) that will apply to the rest of your code are **emphasized** as a warning. To sort and filter the list interactively, visit the [webpage](https://dbohdan.github.io/embedded-scripting-languages/). To contribute, go to the [GitHub project](https://github.com/dbohdan/embedded-scripting-languages). @@ -18,126 +18,151 @@ To sort and filter the list interactively, visit the [webpage](https://dbohdan.g | Language | Project name/link | Implementated in | GC | License | Notes | |----------|-------------------|------------------|----|---------|-------| | Ada | [HAC](https://hacadacompiler.sourceforge.io/) | Ada | None (stack only) | MIT | HAC implements a subset of the Ada language. Thus, it can share sources with the embedding application. | -| AngelScript | [AngelScript](http://www.angelcode.com/angelscript/) | C++ | Ref. counting + cycle-detecting tracing GC | zlib | A statically typed curly brace language resembling C++ itself. | +| AngelScript | [AngelScript](http://www.angelcode.com/angelscript/) | C++ | Ref. counting + cycle-detecting tracing GC | Zlib | A statically typed curly brace language resembling C++ itself. | | Anko | [Anko](https://github.com/mattn/anko/) | Go | Go's GC | MIT | Scriptable interpreter with syntax similar to Go. | -| ArkScript | [ArkScript](https://github.com/SuperFola/Ark) | C++ | None (resource release is destruction + optional manual MM) | MPL 2.0 | A small functional Lisp-like programming language. Separate bytecode compiler and VM. | -| Awk | [Libmawk](http://repo.hu/projects/libmawk/) | C | Ref. counting | **GPL 2** | Implements Awk. A fork of mawk 1.3 restructured for embedding. | -| Awk, Basic, Pascal | [Libfawk](http://repo.hu/projects/libfawk/) | C | Ref. counting | 3-clause BSD | A multi-language VM. Includes compilers for three languages: Fawk (Awk dialect), Fbas (Basic dialect), and Fpas (Pascal dialect). | +| ArkScript | [ArkScript](https://github.com/SuperFola/Ark) | C++ | None (resource release is destruction + optional manual MM) | MPL-2.0 | A small functional Lisp-like programming language. Separate bytecode compiler and VM. | +| Asp | [Asp](https://www.asplang.org/) | C | Ref. counting inside a static memory area | MIT | Python-like. Targets embedded systems. Allows making blocking calls in scripts without blocking the main application. Runs compiled bytecode. Not related to Microsoft's Active Server Pages. | +| Awk | [Libmawk](http://repo.hu/projects/libmawk/) | C | Ref. counting | **GPL-2.0** | Implements Awk. A fork of mawk 1.3 restructured for embedding. | +| Awk, Basic, Pascal | [Libfawk](http://repo.hu/projects/libfawk/) | C | Ref. counting | BSD-3-Clause | A multi-language VM. Includes compilers for three languages: Fawk (Awk dialect), Fbas (Basic dialect), and Fpas (Pascal dialect). | | Basic | [MY-BASIC](https://github.com/paladin-t/my_basic) | C | Ref. counting + cycle-detecting tracing GC | MIT | A Basic dialect with prototype-based OOP. | -| Boron | [Boron](http://urlan.sourceforge.net/boron/) | C | Tracing | LGPL 3+ | An embeddable scripting language similar to Rebol. | -| C | [PicoC](https://github.com/zsaleeba/picoc) | C | None (manual MM) | 3-clause BSD | Statically typed. Interprets a subset of C. | -| C | [tcc](https://repo.or.cz/tinycc.git/) | C | None | LGPL 2 | A small C compiler that can be used as a library for a C JIT. [libtcc header](https://repo.or.cz/tinycc.git/blob/HEAD:/libtcc.h). [Embedding example](https://repo.or.cz/tinycc.git/blob/HEAD:/tests/libtcc_test.c). | +| Berry | [Berry](https://github.com/berry-lang/berry) | C | Tracing | MIT | Lightweight dynamically-typed embedded scripting language designed for lower-performance devices with limited memory. | +| Boron | [Boron](http://urlan.sourceforge.net/boron/) | C | Tracing | LGPL-3.0-or-later | An embeddable scripting language similar to Rebol. | +| C | [PicoC](https://github.com/zsaleeba/picoc) | C | None (manual MM) | BSD-3-Clause | Statically typed. Interprets a subset of C. | +| C | [tcc](https://repo.or.cz/tinycc.git/) | C | None | LGPL-2.0-only | A small C compiler that can be used as a library for a C JIT. [libtcc header](https://repo.or.cz/tinycc.git/blob/HEAD:/libtcc.h). [Embedding example](https://repo.or.cz/tinycc.git/blob/HEAD:/tests/libtcc_test.c). | | C#, other CLR languages | [Mono](http://www.mono-project.com/docs/advanced/embedding/scripting/) | C | Tracing | MIT and other | Implements the [CLR](https://en.wikipedia.org/wiki/Common_Language_Runtime). | -| ChaiScript | [ChaiScript](http://chaiscript.com/) | C++ | Ref. counting | 3-clause BSD | A header-only C++14 interpreter library. | -| Clojure | [sci](https://github.com/borkdude/sci) | Clojure | host VM's GC | EPL | An interpreter for a subset of Clojure for Clojure and ClojureScript. | -| Common Lisp | [Clasp](https://github.com/drmeister/clasp) | Common Lisp, C++ | MPS GC (Boehm-Weiser also supported) | LGPL 2+ | Full Common Lisp implementation well integrated with C++, using LLVM for the code generation, to integrate closely with C++ applications or libraries. | -| Common Lisp | [Embeddable Common Lisp](https://gitlab.com/embeddable-common-lisp/ecl) | Common Lisp, C | Boehm-Weiser GC | LGPL 2+ | Full Common Lisp implementation, available as a shared library `libecl.so` embeddable in any C, C++ or other application. | -| daScript | [daScript](https://dascript.org/) | C++ | None (region-based + manual MM?) | 3-clause BSD | A statically-typed [performance-oriented](https://dascript.org/#performance) scripting language. | -| Datalog | [AbcDatalog](http://abcdatalog.seas.harvard.edu/) | Java | JVM's GC | 3-clause BSD | Implements Datalog. | -| Datalog | [Cascalog](https://github.com/nathanmarz/cascalog) | Clojure | JVM's GC | Apache License 2.0 | Implements Datalog. | -| Datalog | [Datalog (c-cube)](https://github.com/c-cube/datalog) | OCaml | OCaml's GC | 2-clause BSD | Implements Datalog. | -| Datalog | [Datalog (fogfish)](https://github.com/fogfish/datalog) | Erlang | None (no collection inside interpreter state) | Apache License 2.0 | Implements Datalog. | -| Datalog | [Datalog (MITRE Corporation)](http://datalog.sourceforge.net/) | C | Tracing (Lua's GC) | LGPL 2+ | Implements Datalog. It is implemented on top of Lua 5.3 and can be extended with Lua functions. | -| Dhall | [Dhall](https://dhall-lang.org/) | Haskell | Haskell's GC | 3-clause BSD | A statically-typed functional configuration language. Not Turing-complete. Untrusted code: can't access the file system, can fetch Dhall libraries over HTTP(S) from static URLs (but libraries aren't allowed to access your data), can use up memory and CPU time for a DoS attack. Has a work-in-progress Clojure and Ruby implementation. | -| DWScript | [DWScript](https://bitbucket.org/egrange/dwscript/) | Object Pascal (Delphi 2009 or later) | Ref. counting + cycle-detecting tracing GC | MPL 1.1, GPL 3 (JavaScript code generator) | [Description](https://www.delphitools.info/dwscript). A statically typed Delphi/Free Pascal-like language. Can compile to JavaScript. | -| Dyon | [Dyon](https://github.com/pistondevelopers/dyon) | Rust | None (Rust-style [lifetimes](http://www.piston.rs/dyon-tutorial/lifetimes.html)) | Apache License 2.0 or MIT | Has optional, optimistic (succeed-by-default) static type checking. | +| ChaiScript | [ChaiScript](http://chaiscript.com/) | C++ | Ref. counting | BSD-3-Clause | A header-only C++14 interpreter library. | +| Clojure | [sci](https://github.com/borkdude/sci) | Clojure | host VM's GC | EPL-1.0 | An interpreter for a subset of Clojure for Clojure and ClojureScript. | +| Common Expression Language (CEL) | [cel-go](https://github.com/google/cel-go) | Go | Go's GC | Apache-2.0 | Rust implementation of CEL, a non-Turing-complete expression language. | +| Common Expression Language (CEL) | [cel-python](https://github.com/cloud-custodian/cel-python) | Python | Python's GC | Apache-2.0 | A non-Turing-complete expression language. | +| Common Expression Language (CEL) | [cel-rust](https://github.com/clarkmcc/cel-rust) | Rust | None | MIT | A non-Turing-complete expression language. | +| Common Lisp | [Clasp](https://github.com/drmeister/clasp) | Common Lisp, C++ | MPS GC (Boehm-Weiser also supported) | LGPL-2.0-or-later | Full Common Lisp implementation well-integrated with C++, using LLVM for code generation to integrate closely with C++ applications or libraries. | +| Common Lisp | [Embeddable Common Lisp](https://gitlab.com/embeddable-common-lisp/ecl) | Common Lisp, C | Boehm-Weiser GC | LGPL-2.0-or-later | Full Common Lisp implementation, available as a shared library `libecl.so` embeddable in any C, C++ or other application. | +| daScript | [daScript](https://dascript.org/) | C++ | None (region-based + manual MM?) | BSD-3-Clause | A statically-typed [performance-oriented](https://dascript.org/#performance) scripting language. | +| Datalog | [AbcDatalog](http://abcdatalog.seas.harvard.edu/) | Java | JVM's GC | BSD-3-Clause | Implements Datalog. | +| Datalog | [Cascalog](https://github.com/nathanmarz/cascalog) | Clojure | JVM's GC | Apache-2.0 | Implements Datalog. | +| Datalog | [Datalog (c-cube)](https://github.com/c-cube/datalog) | OCaml | OCaml's GC | BSD-2-Clause | Implements Datalog. | +| Datalog | [Datalog (fogfish)](https://github.com/fogfish/datalog) | Erlang | None (no collection inside interpreter state) | Apache-2.0 | Implements Datalog. | +| Datalog | [Datalog (MITRE Corporation)](http://datalog.sourceforge.net/) | C | Tracing (Lua's GC) | LGPL-2.0-or-later | Implements Datalog. It is implemented on top of Lua 5.3 and can be extended with Lua functions. | +| Dhall | [Dhall](https://dhall-lang.org/) | Haskell | Haskell's GC | BSD-3-Clause | A statically-typed functional configuration language. Not Turing-complete. Untrusted code: can't access the file system, can fetch Dhall libraries over HTTP(S) from static URLs (but libraries aren't allowed to access your data), can use up memory and CPU time for a DoS attack. Has a work-in-progress Clojure and Ruby implementation. | +| DWScript | [DWScript](https://bitbucket.org/egrange/dwscript/) | Object Pascal (Delphi 2009 or later) | Ref. counting + cycle-detecting tracing GC | MPL-1.1, GPL-3.0 (JavaScript code generator) | [Description](https://www.delphitools.info/dwscript). A statically typed Delphi/Free Pascal-like language. Can compile to JavaScript. | +| Dyon | [Dyon](https://github.com/pistondevelopers/dyon) | Rust | None (Rust-style [lifetimes](http://www.piston.rs/dyon-tutorial/lifetimes.html)) | Apache-2.0 or MIT | Features optional, optimistic (succeed-by-default) static type checking. | | Expr | [Expr](https://github.com/antonmedv/expr) | Go | Go's GC | MIT | Compiles and evaluates statically-typed expressions. | -| Falcon | [Falcon](http://falconpl.org/) | C++ | Tracing | **GPL 2** or custom | The GC is pluggable. | +| Falcon | [Falcon](https://github.com/falconpl/falcon) | C++ | Tracing | **GPL-2.0** or custom | The GC is pluggable. | +| fe | [fe](https://github.com/rxi/fe) | C | Tracing | MIT | Uses a fixed-size memory region. No `malloc`. | | Forth | [Atlast](https://www.fourmilab.ch/atlast/) | C | None (manual MM) | Public domain | A dialect of Forth originally developed at Autodesk. | -| Forth | [FTH](http://fth.sourceforge.net) | C | Tracing | 2-clause BSD | A dialect of Forth with objects, hashes, regular expressions, and other extensions. | +| Forth | [FTH](http://fth.sourceforge.net) | C | Tracing | BSD-2-Clause | A dialect of Forth with objects, hashes, regular expressions, and other extensions. | | Forth | [pForth](http://www.softsynth.com/pforth/) | C | None (manual MM) | Public domain | A dialect of Forth. | | GameMonkey Script | [GameMonkey Script](http://www.gmscript.com/) | C++ | Tracing | MIT | Comes with C bindings. Similar to Lua, multithreaded. | | Gentee | [Gentee](https://github.com/gentee/gentee/) | Go | Go's GC | MIT | Statically typed. | | gluon | [gluon](https://github.com/gluon-lang/gluon) | Rust | Tracing | MIT | Statically typed. Inspired by Lua, Haskell, and OCaml. Each executing gluon thread gets a separate heap. | +| Go | [Yaegi](https://github.com/traefik/yaegi) | Go | Go's GC | Apache-2.0 | An embedded complete Go interpreter, on top of the Go runtime. | | Gravity | [Gravity](https://github.com/marcobambini/gravity) | C | Tracing | MIT | A class-based concurrent scripting language with a Swift-like syntax. | -| Groovy | [Groovy](http://groovy-lang.org/) | Java | JVM's GC | Apache License 2.0 | A scripting language for the JVM. A large subset of Java is valid Groovy. [Integrating Groovy into applications](http://groovy-lang.org/integrating.html). | +| Groovy | [Groovy](http://groovy-lang.org/) | Java | JVM's GC | Apache-2.0 | A scripting language for the JVM. A large subset of Java is valid Groovy. [Integrating Groovy into applications](http://groovy-lang.org/integrating.html). | | Haxe | [HashLink](https://hashlink.haxe.org/) | C | Tracing (lazy sweep) | MIT | A bytecode interpreter and a baseline JIT compiler (x86/x86\_64 only) for [Haxe](https://haxe.org/). | | Haxe, others | [Neko](http://nekovm.org/) | C | Boehm | MIT | The NekoVM is a target for several compilers, including [Haxe](http://haxe.org/). | -| Io | [Io](https://github.com/stevedekorte/io) | C | Tracing | 3-clause BSD | A prototype-based OO language. | +| Interpreter | [Interpreter](https://github.com/Tyill/interpreter) | C++ | None | MIT | A small interpreter in one header and one source code file with optional extensions (arithmetic operations, containers, filesystem, and others). | +| Io | [Io](https://github.com/stevedekorte/io) | C | Tracing | BSD-3-Clause | A prototype-based OO language. | | Janet | [Janet](https://janet-lang.org/) | C | Tracing | MIT | A functional and imperative language with a Lisp syntax. | -| Java | [BeanShell](https://github.com/beanshell/beanshell/) | Java | JVM's GC | Apache License 2.0 | An small, embeddable Java source code interpreter. Understands Java code with certain extensions like method closures. | +| Java | [BeanShell](https://github.com/beanshell/beanshell/) | Java | JVM's GC | Apache-2.0 | An small, embeddable Java source code interpreter. Understands Java code with certain extensions like method closures. | | JavaScript | [Duktape](http://duktape.org/) | C | Ref. counting + cycle-detecting tracing GC | MIT | Implements JavaScript E5/E5.1. | -| JavaScript | [Espruino](https://github.com/espruino/Espruino) | C | Tracing | MPL 2.0 | Implements a subset of JavaScript ES5 in a way suitable for embedded hardware with 8+ KiB RAM. | +| JavaScript | [Espruino](https://github.com/espruino/Espruino) | C | Tracing | MPL-2.0 | Implements a subset of JavaScript ES5 in a way suitable for embedded hardware with 8+ KiB RAM. | | JavaScript | [Goja](https://github.com/dop251/goja) | Go | Go's GC | MIT | Implements ECMAScript 5.1. Better standard compliance and performance than otto. | -| JavaScript | [JerryScript](https://github.com/jerryscript-project/jerryscript) | C | Tracing | Apache License 2.0 | A full ECMAScript 5.1 interpreter written in C99 and optimized for low memory consumption. Uses CMake. | -| JavaScript | [jsish](http://jsish.org/) | C | Ref. counting | MIT | A JavaScript ES 5.2+ interpreter. Internally structured after Tcl with an extensive C API. Features include subinterpreters, introspection, SQLite bindings, and a web framework with WebSocket support. The code is valid C and C++. | +| JavaScript | [GraalJS](https://github.com/oracle/graaljs) | C++, C, Java | JVM's GC | UPL-1.0 | Implements ECMAScript 2022 for GraalVM (HotSpot JVM) using the Truffle framework. | +| JavaScript | [JerryScript](https://github.com/jerryscript-project/jerryscript) | C | Tracing | Apache-2.0 | A full ECMAScript 5.1 interpreter written in C99 and optimized for low memory consumption. Uses CMake. | +| JavaScript | [jsish](https://github.com/pcmacdon/jsish) | C | Ref. counting | MIT | A JavaScript ES 5.2+ interpreter. Internally structured after Tcl with an extensive C API. Features include subinterpreters, introspection, SQLite bindings, and a web framework with WebSocket support. The code is valid C and C++. | | JavaScript | [MuJS](https://mujs.com/) | C | Tracing | ISC | Implements JavaScript (ES5). Has a similar C interface to Lua. | -| JavaScript | [njs](https://nginx.org/en/docs/njs/) | C | None (no collection performed) | 2-clause BSD | Implements a subset of ES5.1 with some ES6 extensions. | +| JavaScript | [njs](https://nginx.org/en/docs/njs/) | C | None (no collection performed) | BSD-2-Clause | Implements a subset of ES5.1 with some ES6 extensions. | | JavaScript | [otto](https://github.com/robertkrimen/otto) | Go | Go's GC | MIT | Implements ES5 with [some limitations](https://github.com/robertkrimen/otto#caveat-emptor). | | JavaScript | [QuickJS](https://bellard.org/quickjs/) | C | Ref. counting + cycle-detecting tracing GC | MIT | A small embedded JavaScript interpreter that implements almost all of ES2019 and much of ES2020. | | Jinx | [Jinx](https://jamesboer.github.io/Jinx/) | C++17 | Ref. counting | MIT | Designed for use in realtime applications such as video games. | -| Jsonnet | [Jsonnet](https://jsonnet.org/) | C++ | Tracing | Apache License 2.0 | A functional configuration language that extends JSON. Untrusted code: can't access the file system or network, can use up memory and CPU time for a DoS attack. Has [bindings](https://jsonnet.org/ref/bindings.html) for C, C++, Go, Python, and other languages, as well as a separate native Go implementation. | -| Ketos | [Ketos](https://github.com/murarth/ketos) | Rust | None (no heap allocation)? | Apache License 2.0 | A functional Lisp. | -| LIL | [LIL](http://runtimeterror.com/tech/lil/) | C, Object Pascal (separate implementations) | None (no reference support) | zlib | A Tcl-like language incompatible with mainline Tcl. | -| Lily | [Lily](https://github.com/FascinatedBox/lily/) | C | Ref. counting + GC | MIT | A language focusing on expressiveness and safety. | +| Jsonnet | [Jsonnet](https://jsonnet.org/) | C++ | Tracing | Apache-2.0 | A functional configuration language that extends JSON. Untrusted code: can't access the file system or network, can use up memory and CPU time for a DoS attack. Has [bindings](https://jsonnet.org/ref/bindings.html) for C, C++, Go, Python, and other languages, as well as a separate native Go implementation. | +| Ketos | [Ketos](https://github.com/murarth/ketos) | Rust | None (no heap allocation)? | Apache-2.0 | A functional Lisp. | +| LIL | [LIL](http://runtimeterror.com/tech/lil/) | C, Object Pascal (separate implementations) | None (no reference support) | Zlib | A Tcl-like language incompatible with mainline Tcl. | +| Lily | [Lily](https://github.com/FascinatedBox/lily/) | C | Ref. counting + tracing GC | MIT | A language focused on expressiveness and safety. | | ljs | [ljs](https://github.com/mingodad/ljs) | C | Tracing | MIT | Lua 5.3, Lua 5.1, and LuaJIT with a C/C++/Java/JavaScript syntax. Can convert Lua source code to ljs. | | Lua | [Go-Lua](https://github.com/Shopify/go-lua) | Go | Go's GC | MIT | Implements a subset of Lua 5.2. | | Lua | [GopherLua](https://github.com/yuin/gopher-lua) | Go | Go's GC | MIT | Implements Lua 5.1 with the added support for Go's channels. Lacks the debug hooks and several functions from the C version. | | Lua | [Lua](http://lua.org/) | C | Tracing | MIT | The reference implementation of what is likely the world's most popular embedded scripting language. Allows you to precompile scripts to bytecode. Versions 5.1-5.3, which are the ones used today, are not fully compatible with each other. | | Lua | [LuaJ](https://sourceforge.net/projects/luaj/) | Java | JVM's GC | MIT | A Lua 5.2 spec-compliant interpreter written in Java for JME and JSE. Complies Lua directly to JVM bytecode. | | Lua | [LuaJIT](http://luajit.org/) | C | Tracing | MIT | Fully compatible with Lua 5.1. Has a built-in C FFI library. [Performance comparison](https://luajit.org/performance.html). | -| Lua | [Lua-ML](https://github.com/lindig/lua-ml) | OCaml | OCaml's GC | 2-clause BSD | Embeddable Lua 2.5 reimplementation that integrates with OCaml type and module system. It's possible to extend or even replace the standard library with your own modules. | +| Lua | [Lua-ML](https://github.com/lindig/lua-ml) | OCaml | OCaml's GC | BSD-2-Clause | Embeddable Lua 2.5 reimplementation that integrates with OCaml type and module system. It is possible to extend or even replace the standard library with custom modules. | | Lua | [Luau](https://luau-lang.org/) | C | Tracing | MIT | Roblox [fork of Lua 5.1](https://luau-lang.org/why) as a scripting language for games to support a gradual type system as well as limiting the set of standard libraries exposed to the users and implements extra sandboxing features to be able to run unprivileged code. Whenever possible, Luau aims to be backwards-compatible with Lua 5.1 and at the same time to incorporate features from later revisions of Lua. | -| Lua | [luerl](https://github.com/rvirding/luerl) | Erlang | Tracing | Apache License 2.0 | An implementation of Lua 5.2 in pure Erlang with some features like `goto` absent. | -| Lua | [MoonSharp](https://www.moonsharp.org/) | C# | CLR's GC | 3-clause BSD and other | CLR Based Lua implementation that is 99% compatible with Lua 5.2 | +| Lua | [luerl](https://github.com/rvirding/luerl) | Erlang | Tracing | Apache-2.0 | An implementation of Lua 5.2 in pure Erlang with some features like `goto` absent. | +| Lua | [MoonSharp](https://www.moonsharp.org/) | C# | CLR's GC | BSD-3-Clause and other | CLR Based Lua implementation that is 99% compatible with Lua 5.2 | +| Lua | [Ravi](https://github.com/dibyendumajumdar/ravi) | C | Tracing | MIT | “Ravi is a dialect of Lua with limited optional static typing and features a JIT compiler powered by MIR as well as support for AOT compilation to native code.” | +| Moirai | [Moirai](https://github.com/moirai-lang/moirai-kt) | Kotlin | JVM's GC | MIT | A scripting language that calculates the worst-case execution time (WCET) before executing each script. Optimized for multi-tenant microservices and serverless applications. | | Mond | [Mond](https://github.com/Rohansi/Mond/) | C# | CLR's GC | MIT | A dynamically typed scripting language with generators, async, remote debugging, and a binding API. | | Never | [Never](https://github.com/never-lang/never) | C | Tracing | MIT | A statically typed functional programming language. | +| Nickel | [Nickel](https://nickel-lang.org/) | Rust | Ref. counting | MIT | A configuration language with gradual typing and contracts. [Python bindings](https://github.com/tweag/nickel/tree/master/pyckel). | | Pascal | [Pascal Script](http://www.remobjects.com/ps.aspx) | Object Pascal | None (manual MM) | modified zlib/libpng-License with mandatory attribution | Statically typed. Implements "most of Object Pascal". Can't define new classes. | -| Pawn | [Pawn](http://www.compuphase.com/pawn/pawn.htm) | C | None (no heap allocation) | Apache License 2.0 with a clause to explicitly permit static linking | A curly-brace language with a small-footprint VM. Represents data as 4/8-byte "cells". Compiles to CPU-specific bytecode. [More](https://wiki.alliedmods.net/Pawn_Tutorial#Language_Paradigms). | -| Perl | [Perl](https://www.perl.org/) | C | Ref. counting | Artistic License or GPL 3 | [Embedding Perl in Another Application](https://perldoc.perl.org/perlembed) | -| PHP | [ephp](https://github.com/bragful/ephp) | Erlang | None (no collection inside interpreter state) | LGPL 2.1 | Implements a subset of PHP 5.5. | -| PHP | [PH7](https://github.com/symisc/PH7) | C | Ref. counting | **SPL** or proprietary | Implements a subset of PHP 5.3 with some changes like native UTF-8 support. | +| Pawn | [Pawn](http://www.compuphase.com/pawn/pawn.htm) | C | None (no heap allocation) | Apache-2.0 with a clause to explicitly permit static linking | A curly-brace language with a small-footprint VM. Represents data as 4/8-byte "cells". Compiles to CPU-specific bytecode. [More](https://wiki.alliedmods.net/Pawn_Tutorial#Language_Paradigms). | +| Perl | [Perl](https://www.perl.org/) | C | Ref. counting | Artistic-2.0 or GPL-3.0 | [Embedding Perl in Another Application](https://perldoc.perl.org/perlembed) | +| PHP | [ephp](https://github.com/bragful/ephp) | Erlang | None (no collection inside interpreter state) | LGPL-2.1-or-later | Implements a subset of PHP 5.5. | +| PHP | [PH7](https://github.com/symisc/PH7) | C | Ref. counting | **Symisc Public License** or proprietary | Implements a subset of PHP 5.3 with some changes like native UTF-8 support. | +| Pluto | [Pluto](https://github.com/PlutoLang/Pluto) | C++ | Tracing | MIT | A superset of Lua 5.4 (outside of incompatibilies caused by new syntax). Adds syntax like `!=`, `break`, and string interpolation; expands the standard library; somewhat improves performance. | | pocketlang | [pocketlang](https://github.com/ThakeeNathees/pocketlang) | C | Tracing | MIT | A small language syntactically similar to Ruby. [Embedding examples](https://github.com/ThakeeNathees/pocketlang/tree/master/tests/native/). [Performance comparison](https://github.com/ThakeeNathees/pocketlang#performance). | -| Prolog | [Erlog](https://github.com/rvirding/erlog) | Erlang | None () | Apache License 2.0 | Interprets a subset of standard Prolog. | +| Prolog | [Erlog](https://github.com/rvirding/erlog) | Erlang | None () | Apache-2.0 | Interprets a subset of standard Prolog. | | Prolog | [Golog](https://github.com/mndrix/golog) | Go | Go's GC | MIT | Implements a subset of standard Prolog. | | Python | [CircuitPython](https://github.com/adafruit/circuitpython) | C | Tracing | MIT | A fork of MicroPython, designed for API uniformity across many microcontrollers. | -| Python | [Jython](http://www.jython.org/) | Java | JVM's GC | PSFL (BSD-like) | An implementation of Python on the JVM. | -| Python | [MicroPython](https://github.com/micropython/micropython) | C | Tracing | MIT | Implements the Python 3.4 syntax and some of the core datatypes. | -| Python | [Python](https://www.python.org/) | C | Ref. counting + cycle-detecting tracing GC | PSFL (BSD-like) | [Embedding Python in Another Application](https://docs.python.org/3.5/extending/embedding.html). | +| Python | [gpython](https://github.com/go-python/gpython) | Go | Go's GC | BSD-3-Clause | Implements a subset of Python 3.4. | +| Python | [GraalPy](https://github.com/oracle/graalpython) | C, Java | JVM's GC | UPL-1.0 | Implements Python 3 for GraalVM (HotSpot JVM) using the Truffle framework. | +| Python | [Jython](http://www.jython.org/) | Java | JVM's GC | PSFL (BSD-like) | An implementation of Python 2 for the JVM. | +| Python | [MicroPython](https://github.com/micropython/micropython) | C | Tracing | MIT | Implements Python 3.4 syntax and some of the core datatypes. | +| Python | [PikaPython](https://github.com/pikasTech/PikaPython) | C | Ref. counting | MIT | Implements a variant of Python 3. The degree of compatibility with Python seems to be undocumented. Runs in as little as 4 KiB of RAM. Targets microcontrollers and Linux. | +| Python | [pocketpy](https://github.com/blueloveTH/pocketpy) | C++ | Tracing | MIT | Implements a subset of Python 3 (with [some differences](https://pocketpy.dev/features/differences/#different-behaviors)) in a single C++17 header file. | +| Python | [Python](https://www.python.org/) | C | Ref. counting + cycle-detecting tracing GC | PSFL (BSD-like) | ["Embedding Python in Another Application"](https://docs.python.org/3/extending/embedding.html). | | QuakeC | [gmqcc/qcvm](https://github.com/graphitemaster/gmqcc) | C++ | None (no dynamic memory allocation) | MIT | A QuakeC compiler and VM. | | Quirrel | [Quirrel](https://github.com/GaijinEntertainment/quirrel) | C++ | Ref. counting | MIT | A fork of Squirrel with [new features](https://quirrel.io/doc/reference/diff_from_original.html). | -| Rebol | [Rebol](https://github.com/Oldes/Rebol3) | C | Tracing | Apache License 2.0 | Relative Expression Based Object Language | -| Red | [Red](https://github.com/red/red) | Rebol, Red, Red/System | Tracing | 3-clause BSD, BSL | A descendant of Rebol. Embeddable via [libRed](https://github.com/red/docs/blob/master/en/libred.adoc). Features a cross-platform native GUI system. Intended to have low memory usage. | +| Rebol | [Rebol](https://github.com/Oldes/Rebol3) | C | Tracing | Apache-2.0 | Relative Expression Based Object Language | +| Red | [Red](https://github.com/red/red) | Rebol, Red, Red/System | Tracing | BSD-3-Clause, BSL-1.0 | A descendant of Rebol. Embeddable via [libRed](https://github.com/red/docs/blob/master/en/libred.adoc). Features a cross-platform native GUI system. Intended to have low memory usage. | | Rexx | [NetRexx](http://www.netrexx.org/) | Java | JVM's GC | ICU (BSD-like) | | | Rexx | [ooRexx](http://www.oorexx.org/) | C++ | Tracing | CPL | Implements Rexx extended with objects. | -| Rhai | [Rhai](https://github.com/jonathandturner/rhai) | Rust | None (Rust-style lifetimes) | MIT or Apache License 2.0 | An embedded scripting language for Rust inspired by ChaiScript. | +| Rhai | [Rhai](https://github.com/jonathandturner/rhai) | Rust | None (Rust-style lifetimes) | MIT or Apache-2.0 | An embedded scripting language for Rust inspired by ChaiScript. | | Ring | [Ring](https://github.com/ring-lang/ring) | C | Tracing | MIT | An embeddable applications programming language with a large standard library and GIL-less multithreading. | | Ruby | [JRuby](http://www.jruby.org/) | Java | JVM's GC | Choice of EPL, GPL, and LGPL | An implementation of Ruby on the JVM. | | Ruby | [mruby](https://github.com/mruby/mruby) | C | Tracing | MIT | A lightweight implementation of Ruby. Has a compile-time package manager. | -| Ruby | [mruby/c](https://github.com/mrubyc/mrubyc) | C | Ref. counting | 3-clause BSD | An even smaller implementation of Ruby for microcontrollers with limited memory. | -| Ruby | [Ruby](https://www.ruby-lang.org/en/) | C | Tracing | Choice of 2-clause BSD, Ruby license, GPL 2 | An embeddable object-oriented scripting language. [Running Ruby in C](https://silverhammermba.github.io/emberb/embed/). | -| Scheme | [Animula](https://gitlab.com/hardenedlinux/animula) | C | Tracing | Compiler **GPL 3+** while VM is LGPL 3+ | An optimizing compiler and VM for embedded systems. R7RS. | -| Scheme | [Chibi Scheme](https://github.com/ashinn/chibi-scheme) | C | Tracing | 3-clause BSD | Implements R7RS small. | -| Scheme | [CHICKEN Scheme](https://call-cc.org/) | C | Tracing | 3-clause BSD | Implements R5RS (with some [changes](http://wiki.call-cc.org/man/4/Supported%20language)). R7RS support is a work in progress. [Examples of embedding CHICKEN](https://wiki.call-cc.org/embedding). | -| Scheme | [GNU Guile](https://www.gnu.org/software/guile/) | C | [Boehm](https://www.gnu.org/software/guile/manual/html_node/Conservative-GC.html) | LGPL 3+ | ["Guile mostly implements R6RS."](https://www.gnu.org/software/guile/manual/guile.html#R6RS-Support) | +| Ruby | [mruby/c](https://github.com/mrubyc/mrubyc) | C | Ref. counting | BSD-3-Clause | An even smaller implementation of Ruby for microcontrollers with limited memory. | +| Ruby | [Ruby](https://www.ruby-lang.org/en/) | C | Tracing | Choice of BSD-2-Clause, Ruby license, GPL-2.0 | An embeddable object-oriented scripting language. [Running Ruby in C](https://silverhammermba.github.io/emberb/embed/). | +| Ruby | [TruffleRuby](https://github.com/oracle/truffleruby) | C, Java | JVM's GC | UPL-1.0 | Implements Ruby for GraalVM (HotSpot JVM) using Truffle. | +| Rune | [Rune](https://github.com/rune-rs/rune) | Rust | Ref. counting | MIT or Apache-2.0 | An embeddable dynamic programming language. Asynchronous-first and [const-evaluation](https://rune-rs.github.io/#const-evaluation). | +| Scheme | [Animula](https://gitlab.com/hardenedlinux/animula) | C | Tracing | Compiler: **GPL-3.0-or-later**, VM: LGPL-3.0-or-later | An optimizing compiler and VM for embedded systems. R7RS. | +| Scheme | [Chibi Scheme](https://github.com/ashinn/chibi-scheme) | C | Tracing | BSD-3-Clause | Implements R7RS small. | +| Scheme | [CHICKEN Scheme](https://call-cc.org/) | C | Tracing | BSD-3-Clause | Implements R5RS (with some [changes](http://wiki.call-cc.org/man/4/Supported%20language)). R7RS support is a work in progress. See [examples of embedding CHICKEN](https://wiki.call-cc.org/embedding). | +| Scheme | [GNU Guile](https://www.gnu.org/software/guile/) | C | [Boehm](https://www.gnu.org/software/guile/manual/html_node/Conservative-GC.html) | LGPL-3.0-or-later | ["Guile mostly implements R6RS."](https://www.gnu.org/software/guile/manual/guile.html#R6RS-Support) | | Scheme | [Kawa](https://www.gnu.org/software/kawa/) | Java | JVM's GC | MIT | R7RS. Supports the javax.script API. [Evaluating Scheme expressions from Java](https://www.gnu.org/software/kawa/Evaluating-Scheme-expressions-from-Java.html). | -| Scheme | [s7](https://ccrma.stanford.edu/software/snd/snd/s7.html) | C | Tracing | 3-clause BSD | Implements a subset of R5RS/R7RS. Descended from TinyScheme. | -| Scheme | [TinyScheme](http://tinyscheme.sourceforge.net/) | C | Tracing? | 3-clause BSD | Implements a subset of R5RS. | +| Scheme | [s7](https://ccrma.stanford.edu/software/snd/snd/s7.html) | C | Tracing | BSD-3-Clause | Implements a subset of R5RS/R7RS. Descended from TinyScheme. | +| Scheme | [Steel](https://github.com/mattwparas/steel) | Rust | Ref. counting + tracing GC | Apache-2.0 or MIT | Aims for eventual R5RS and R7RS language compliance, with extensions inspired by Racket. | +| Scheme | [TinyScheme](http://tinyscheme.sourceforge.net/) | C | Tracing? | BSD-3-Clause | Implements a subset of R5RS. | | SGScript | [SGScript](https://github.com/snake5/sgscript) | C | Ref. counting + tracing CG | MIT | [Features](http://www.sgscript.org/pages/advdocs/sgscript.docs.htm#Why-SGScript) include a built-in data serialization format, coroutines, class-based OOP, sandboxed evaluation, a built-in debugger and profiler. | +| shell | [sh](https://github.com/mvdan/sh) | Go | Go's GC | MIT | Implements POSIX shell, Bash, and mksh in pure Go. There are caveats with compatibility. See the [readme](https://github.com/mvdan/sh#caveats) and issues like [mvdan/sh#221](https://github.com/mvdan/sh/issues/221). | | Shine | [Shine](https://github.com/richardhundt/shine) | C | Tracing | MIT | A language based on Lua with additional safety and expressiveness features implemented as a fork of LuaJIT. | -| SquiLu | [SquiLu](https://github.com/mingodad/squilu) | C++ | Ref. counting | MIT, some extensions LGPL or GPL | A fork of [Squirrel](http://squirrel-lang.org/). Changes the syntax to accept a subset of JavaScript and C/C++. Implements Lua's features like string pattern matching and global table manipulation functions. Adds extensions for database access (SQLite3, MySQL, PostgreSQL), sockets, and other features. | +| simpleeval | [simpleeval](https://github.com/danthedeckie/simpleeval) | Python | Python's GC | MIT | Evaluates expressions in a subset of Python. | +| Snek | [Snek](https://github.com/keith-packard/snek) | C | Tracing | **GPL-3.0-or-later** | A Python-inspired language. Targets "processors too small to run MicroPython". | +| SquiLu | [SquiLu](https://github.com/mingodad/squilu) | C++ | Ref. counting | MIT, some extensions LGPL or GPL | A fork of [Squirrel](http://squirrel-lang.org/). Changes the syntax to accept a subset of JavaScript and C/C++. Implements Lua's features like string pattern matching and global table manipulation functions. It adds extensions for database access (SQLite3, MySQL, PostgreSQL), sockets, and other features. | | Squirrel | [Squirrel](http://squirrel-lang.org/) | C++ | Ref. counting | MIT | A language inspired by Lua and JavaScript/Python. Has a Lua-like C++ API. Differentiates itself from Lua with the use of reference counting in place of Lua's tracing GC, a curly-brace syntax, built-in class-based OOP, and zero-indexed arrays. | -| Starlark | [Starlark (Go)](https://github.com/google/starlark-go/) | Go | Go's GC | 3-clause BSD | A small dialect of Python for configuration. Not Turing-complete. Untrusted code: can't access the file system and network, can use up memory and CPU to perform a DoS attack. [Spec](https://github.com/bazelbuild/starlark). [Python bindings](https://github.com/caketop/python-starlark-go). | -| Starlark | [Starlark (Java)](https://github.com/bazelbuild/bazel/tree/master/src/main/java/net/starlark/java) | Java | JVM's GC | Apache License 2.0 | Starlark for the JVM. The original implementation. | -| Starlark | [Starlark (Rust)](https://github.com/google/starlark-rust/) | Rust | ? | Apache License 2.0 | Starlark in Rust. [Python bindings](https://github.com/inducer/starlark-pyo3). | -| Tcl | [Jim Tcl](http://jim.tcl-lang.org/) | C | Tracing | 2-clause BSD | Largely compatible with Tcl 8.5 with its own additions. | +| Starlark | [Starlark (Go)](https://github.com/google/starlark-go/) | Go | Go's GC | BSD-3-Clause | A small dialect of Python for configuration. Not Turing-complete. Untrusted code: can't access the file system and network, can use up memory and CPU to perform a DoS attack. [Spec](https://github.com/bazelbuild/starlark). [Python bindings](https://github.com/caketop/python-starlark-go). | +| Starlark | [Starlark (Java)](https://github.com/bazelbuild/bazel/tree/master/src/main/java/net/starlark/java) | Java | JVM's GC | Apache-2.0 | Starlark for the JVM. The original implementation. | +| Starlark | [Starlark (Rust)](https://github.com/facebookexperimental/starlark-rust) | Rust | ? | Apache-2.0 | Starlark in Rust. [Python bindings](https://github.com/inducer/starlark-pyo3). | +| Tcl | [Jim Tcl](http://jim.tcl-lang.org/) | C | Tracing | BSD-2-Clause | Largely compatible with Tcl 8.5 with its own additions. | | Tcl | [JTcl](https://github.com/jtcl-project/jtcl) | Java | Ref. counting | Various BSD-like | Tcl 8.4 with some 8.5 features for the JVM. | -| Tcl | [Molt](https://github.com/wduquette/molt) | Rust | Ref. counting | 3-clause BSD | A minimal Tcl implementation for Rust applications and libraries. | -| Tcl | [Picol](https://chiselapp.com/user/dbohdan/repository/picol/) | C | None (no reference support) | 2-clause BSD | A header-only library interpreter for a limited dialect of Tcl. | -| Tcl | [Tcl](http://tcl-lang.org/) | C | Ref. counting | Tcl license (BSD-like) | An embeddable general-purpose scripting language with a rich C API. Has a cross-platform GUI toolkit called [Tk](https://wiki.tcl-lang.org/477). [How to embed Tcl in C applications](https://wiki.tcl-lang.org/2074). | -| Umka | [Umka](https://github.com/vtereshkov/umka-lang) | C | Ref. counting | 2-clause BSD | Statically typed. | +| Tcl | [Molt](https://github.com/wduquette/molt) | Rust | Ref. counting | BSD-3-Clause | A minimal Tcl implementation designed for Rust applications and libraries. | +| Tcl | [Picol](https://chiselapp.com/user/dbohdan/repository/picol/) | C | None (no reference support) | BSD-2-Clause | A header-only library interpreter for a limited dialect of Tcl. | +| Tcl | [Tcl](http://tcl-lang.org/) | C | Ref. counting | Tcl license (BSD-like) | An embeddable general-purpose scripting language with a rich C API. Includes a cross-platform GUI toolkit called [Tk](https://wiki.tcl-lang.org/477). See ["How to embed Tcl in C applications"](https://wiki.tcl-lang.org/2074). | +| Toy | [Toy](https://github.com/Ratstail91/Toy) | C | Ref. counting | Zlib | Has an optional type system. [Embedding Toy](https://toylang.com/deep-dive/embedding-toy). | +| Umka | [Umka](https://github.com/vtereshkov/umka-lang) | C | Ref. counting | BSD-2-Clause | Statically typed. | | Wirefilter | [Wirefilter](https://github.com/cloudflare/wirefilter) | Rust | None (no dynamic memory allocation) | MIT | An expression language for Wireshark-like filters. | | Wren | [Wren](https://github.com/munificent/wren) | C | Tracing | MIT | A small class-based performance-oriented scripting language. [Performance comparison](https://wren.io/performance.html). | -| zygomys | [zygomys](https://github.com/glycerine/zygomys) | Go | Go's GC | 2-clause BSD | An embedded Lisp for Go. Inspired by Clojure, but more oriented towards imperative programming. Has an infix syntax layer that looks like a subset of Go. | +| ZetScript | [ZetScript](https://zetscript.org) | C++ | Ref. counting | MIT | Comes with an API for C++ interop. | +| zygomys | [zygomys](https://github.com/glycerine/zygomys) | Go | Go's GC | BSD-2-Clause | An embedded Lisp for Go. Inspired by Clojure, but more oriented towards imperative programming. Has an infix syntax layer that looks like a subset of Go. | ## See also -* [cwal: Scripting Engine Without A Language](https://fossil.wanderinghorse.net/r/cwal/home). -* [Game scripting languages benchmarked](https://github.com/r-lyeh/scriptorium). -* [Languages that compile to JavaScript](https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS). -* [Languages that compile to Lua](https://github.com/hengestone/lua-languages). -* [miniKanren](http://minikanren.org/#implementations) logic programming language implementations. -* [sol](https://github.com/ThePhD/sol2) — C++ bindings for Lua. +- [cwal: Scripting Engine Without A Language](https://fossil.wanderinghorse.net/r/cwal/home). +- [Game scripting languages benchmarked](https://github.com/r-lyeh/scriptorium). +- [Languages that compile to JavaScript](https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS). +- [Languages that compile to Lua](https://github.com/hengestone/lua-languages). +- [miniKanren](http://minikanren.org/#implementations) logic programming language implementations. +- [sol](https://github.com/ThePhD/sol2) — C++ bindings for Lua. ## Contributing diff --git a/README.md.njk b/README.md.njk index 85a3db5..da25025 100644 --- a/README.md.njk +++ b/README.md.njk @@ -1,6 +1,6 @@ # Embedded scripting languages -The following is a list of reasonably mature open source [embedded scripting languages](https://en.wikipedia.org/wiki/Scripting_language) to use in your application. Stretching the definition of a scripting language, it also includes [Datalog](https://en.wikipedia.org/wiki/Datalog) implementations. Items with a strong copyleft license (like the GNU GPL) that will apply to the rest of your code are **emphasized** as a warning. +The following is a list of reasonably mature or actively developed open source [embedded scripting languages](https://en.wikipedia.org/wiki/Scripting_language) to use in your application. Stretching the definition of a scripting language, it also includes [Datalog](https://en.wikipedia.org/wiki/Datalog) implementations. Items with a strong copyleft license (like the GNU GPL) that will apply to the rest of your code are **emphasized** as a warning. To sort and filter the list interactively, visit the [webpage](https://dbohdan.github.io/embedded-scripting-languages/). To contribute, go to the [GitHub project](https://github.com/dbohdan/embedded-scripting-languages). @@ -18,12 +18,12 @@ To sort and filter the list interactively, visit the [webpage](https://dbohdan.g ## See also -* [cwal: Scripting Engine Without A Language](https://fossil.wanderinghorse.net/r/cwal/home). -* [Game scripting languages benchmarked](https://github.com/r-lyeh/scriptorium). -* [Languages that compile to JavaScript](https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS). -* [Languages that compile to Lua](https://github.com/hengestone/lua-languages). -* [miniKanren](http://minikanren.org/#implementations) logic programming language implementations. -* [sol](https://github.com/ThePhD/sol2) — C++ bindings for Lua. +- [cwal: Scripting Engine Without A Language](https://fossil.wanderinghorse.net/r/cwal/home). +- [Game scripting languages benchmarked](https://github.com/r-lyeh/scriptorium). +- [Languages that compile to JavaScript](https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS). +- [Languages that compile to Lua](https://github.com/hengestone/lua-languages). +- [miniKanren](http://minikanren.org/#implementations) logic programming language implementations. +- [sol](https://github.com/ThePhD/sol2) — C++ bindings for Lua. ## Contributing diff --git a/data/projects.toml b/data/projects.toml index 517bb07..9e68922 100644 --- a/data/projects.toml +++ b/data/projects.toml @@ -3,7 +3,7 @@ url = "http://abcdatalog.seas.harvard.edu/" lang = "Datalog" impl_in = "Java" gc = "JVM's GC" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "Implements Datalog." [AngelScript] @@ -11,7 +11,7 @@ url = "http://www.angelcode.com/angelscript/" lang = "AngelScript" impl_in = "C++" gc = "Ref. counting + cycle-detecting tracing GC" -license = "zlib" +license = "Zlib" notes = "A statically typed curly brace language resembling C++ itself." [Animula] @@ -19,7 +19,7 @@ url = "https://gitlab.com/hardenedlinux/animula" lang = "Scheme" impl_in = "C" gc = "Tracing" -license = "Compiler **GPL 3+** while VM is LGPL 3+" +license = "Compiler: **GPL-3.0-or-later**, VM: LGPL-3.0-or-later" notes = "An optimizing compiler and VM for embedded systems. R7RS." [Anko] @@ -35,9 +35,17 @@ url = "https://github.com/SuperFola/Ark" lang = "ArkScript" impl_in = "C++" gc = "None (resource release is destruction + optional manual MM)" -license = "MPL 2.0" +license = "MPL-2.0" notes = "A small functional Lisp-like programming language. Separate bytecode compiler and VM." +[Asp] +url = "https://www.asplang.org/" +lang = "Asp" +impl_in = "C" +gc = "Ref. counting inside a static memory area" +license = "MIT" +notes = "Python-like. Targets embedded systems. Allows making blocking calls in scripts without blocking the main application. Runs compiled bytecode. Not related to Microsoft's Active Server Pages." + [Atlast] url = "https://www.fourmilab.ch/atlast/" lang = "Forth" @@ -51,15 +59,23 @@ url = "https://github.com/beanshell/beanshell/" lang = "Java" impl_in = "Java" gc = "JVM's GC" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "An small, embeddable Java source code interpreter. Understands Java code with certain extensions like method closures." +[Berry] +url = "https://github.com/berry-lang/berry" +lang = "Berry" +impl_in = "C" +gc = "Tracing" +license = "MIT" +notes = "Lightweight dynamically-typed embedded scripting language designed for lower-performance devices with limited memory." + [Boron] url = "http://urlan.sourceforge.net/boron/" lang = "Boron" impl_in = "C" gc = "Tracing" -license = "LGPL 3+" +license = "LGPL-3.0-or-later" notes = "An embeddable scripting language similar to Rebol." [Cascalog] @@ -67,9 +83,33 @@ url = "https://github.com/nathanmarz/cascalog" lang = "Datalog" impl_in = "Clojure" gc = "JVM's GC" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "Implements Datalog." +["cel-go"] +url = "https://github.com/google/cel-go" +lang = "Common Expression Language (CEL)" +impl_in = "Go" +gc = "Go's GC" +license = "Apache-2.0" +notes = "Rust implementation of CEL, a non-Turing-complete expression language." + +["cel-python"] +url = "https://github.com/cloud-custodian/cel-python" +lang = "Common Expression Language (CEL)" +impl_in = "Python" +gc = "Python's GC" +license = "Apache-2.0" +notes = "A non-Turing-complete expression language." + +["cel-rust"] +url = "https://github.com/clarkmcc/cel-rust" +lang = "Common Expression Language (CEL)" +impl_in = "Rust" +gc = "None" +license = "MIT" +notes = "A non-Turing-complete expression language." + [CircuitPython] url = "https://github.com/adafruit/circuitpython" lang = "Python" @@ -83,7 +123,7 @@ url = "http://chaiscript.com/" lang = "ChaiScript" impl_in = "C++" gc = "Ref. counting" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "A header-only C++14 interpreter library." ["Chibi Scheme"] @@ -91,7 +131,7 @@ url = "https://github.com/ashinn/chibi-scheme" lang = "Scheme" impl_in = "C" gc = "Tracing" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "Implements R7RS small." ["CHICKEN Scheme"] @@ -99,23 +139,23 @@ url = "https://call-cc.org/" lang = "Scheme" impl_in = "C" gc = "Tracing" -license = "3-clause BSD" -notes = "Implements R5RS (with some [changes](http://wiki.call-cc.org/man/4/Supported%20language)). R7RS support is a work in progress. [Examples of embedding CHICKEN](https://wiki.call-cc.org/embedding)." +license = "BSD-3-Clause" +notes = "Implements R5RS (with some [changes](http://wiki.call-cc.org/man/4/Supported%20language)). R7RS support is a work in progress. See [examples of embedding CHICKEN](https://wiki.call-cc.org/embedding)." [Clasp] url = "https://github.com/drmeister/clasp" lang = "Common Lisp" impl_in = "Common Lisp, C++" gc = "MPS GC (Boehm-Weiser also supported)" -license = "LGPL 2+" -notes = "Full Common Lisp implementation well integrated with C++, using LLVM for the code generation, to integrate closely with C++ applications or libraries." +license = "LGPL-2.0-or-later" +notes = "Full Common Lisp implementation well-integrated with C++, using LLVM for code generation to integrate closely with C++ applications or libraries." [daScript] url = "https://dascript.org/" lang = "daScript" impl_in = "C++" gc = "None (region-based + manual MM?)" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "A statically-typed [performance-oriented](https://dascript.org/#performance) scripting language." ["Datalog (c-cube)"] @@ -123,7 +163,7 @@ url = "https://github.com/c-cube/datalog" lang = "Datalog" impl_in = "OCaml" gc = "OCaml's GC" -license = "2-clause BSD" +license = "BSD-2-Clause" notes = "Implements Datalog." ["Datalog (fogfish)"] @@ -131,7 +171,7 @@ url = "https://github.com/fogfish/datalog" lang = "Datalog" impl_in = "Erlang" gc = "None (no collection inside interpreter state)" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "Implements Datalog." ["Datalog (MITRE Corporation)"] @@ -139,7 +179,7 @@ url = "http://datalog.sourceforge.net/" lang = "Datalog" impl_in = "C" gc = "Tracing (Lua's GC)" -license = "LGPL 2+" +license = "LGPL-2.0-or-later" notes = "Implements Datalog. It is implemented on top of Lua 5.3 and can be extended with Lua functions." [Dhall] @@ -147,7 +187,7 @@ url = "https://dhall-lang.org/" lang = "Dhall" impl_in = "Haskell" gc = "Haskell's GC" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "A statically-typed functional configuration language. Not Turing-complete. Untrusted code: can't access the file system, can fetch Dhall libraries over HTTP(S) from static URLs (but libraries aren't allowed to access your data), can use up memory and CPU time for a DoS attack. Has a work-in-progress Clojure and Ruby implementation." [Duktape] @@ -163,7 +203,7 @@ url = "https://bitbucket.org/egrange/dwscript/" lang = "DWScript" impl_in = "Object Pascal (Delphi 2009 or later)" gc = "Ref. counting + cycle-detecting tracing GC" -license = "MPL 1.1, GPL 3 (JavaScript code generator)" +license = "MPL-1.1, GPL-3.0 (JavaScript code generator)" notes = "[Description](https://www.delphitools.info/dwscript). A statically typed Delphi/Free Pascal-like language. Can compile to JavaScript." [Dyon] @@ -171,15 +211,15 @@ url = "https://github.com/pistondevelopers/dyon" lang = "Dyon" impl_in = "Rust" gc = "None (Rust-style [lifetimes](http://www.piston.rs/dyon-tutorial/lifetimes.html))" -license = "Apache License 2.0 or MIT" -notes = "Has optional, optimistic (succeed-by-default) static type checking." +license = "Apache-2.0 or MIT" +notes = "Features optional, optimistic (succeed-by-default) static type checking." ["Embeddable Common Lisp"] url = "https://gitlab.com/embeddable-common-lisp/ecl" lang = "Common Lisp" impl_in = "Common Lisp, C" gc = "Boehm-Weiser GC" -license = "LGPL 2+" +license = "LGPL-2.0-or-later" notes = "Full Common Lisp implementation, available as a shared library `libecl.so` embeddable in any C, C++ or other application." [ephp] @@ -187,7 +227,7 @@ url = "https://github.com/bragful/ephp" lang = "PHP" impl_in = "Erlang" gc = "None (no collection inside interpreter state)" -license = "LGPL 2.1" +license = "LGPL-2.1-or-later" notes = "Implements a subset of PHP 5.5." [Erlog] @@ -195,7 +235,7 @@ url = "https://github.com/rvirding/erlog" lang = "Prolog" impl_in = "Erlang" gc = "None ()" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "Interprets a subset of standard Prolog." [Espruino] @@ -203,7 +243,7 @@ url = "https://github.com/espruino/Espruino" lang = "JavaScript" impl_in = "C" gc = "Tracing" -license = "MPL 2.0" +license = "MPL-2.0" notes = "Implements a subset of JavaScript ES5 in a way suitable for embedded hardware with 8+ KiB RAM." [Expr] @@ -215,19 +255,27 @@ license = "MIT" notes = "Compiles and evaluates statically-typed expressions." [Falcon] -url = "http://falconpl.org/" +url = "https://github.com/falconpl/falcon" lang = "Falcon" impl_in = "C++" gc = "Tracing" -license = "**GPL 2** or custom" +license = "**GPL-2.0** or custom" notes = "The GC is pluggable." +[fe] +url = "https://github.com/rxi/fe" +lang = "fe" +impl_in = "C" +gc = "Tracing" +license = "MIT" +notes = "Uses a fixed-size memory region. No `malloc`." + [FTH] url = "http://fth.sourceforge.net" lang = "Forth" impl_in = "C" gc = "Tracing" -license = "2-clause BSD" +license = "BSD-2-Clause" notes = "A dialect of Forth with objects, hashes, regular expressions, and other extensions." ["GameMonkey Script"] @@ -286,6 +334,32 @@ gc = "Go's GC" license = "MIT" notes = "Implements Lua 5.1 with the added support for Go's channels. Lacks the debug hooks and several functions from the C version." +[gpython] +url = "https://github.com/go-python/gpython" +lang = "Python" +impl_in = "Go" +gc = "Go's GC" +license = "BSD-3-Clause" +notes = "Implements a subset of Python 3.4." + +[GraalJS] +url = "https://github.com/oracle/graaljs" +lang = "JavaScript" +impl_in = "C++, C, Java" +gc = "JVM's GC" +license = "UPL-1.0" +notes = "Implements ECMAScript 2022 for GraalVM (HotSpot JVM) using the Truffle framework." + + +[GraalPy] +url = "https://github.com/oracle/graalpython" +lang = "Python" +impl_in = "C, Java" +gc = "JVM's GC" +license = "UPL-1.0" +notes = "Implements Python 3 for GraalVM (HotSpot JVM) using the Truffle framework." + + [Gravity] url = "https://github.com/marcobambini/gravity" lang = "Gravity" @@ -299,7 +373,7 @@ url = "http://groovy-lang.org/" lang = "Groovy" impl_in = "Java" gc = "JVM's GC" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "A scripting language for the JVM. A large subset of Java is valid Groovy. [Integrating Groovy into applications](http://groovy-lang.org/integrating.html)." ["GNU Guile"] @@ -307,7 +381,7 @@ url = "https://www.gnu.org/software/guile/" lang = "Scheme" impl_in = "C" gc = "[Boehm](https://www.gnu.org/software/guile/manual/html_node/Conservative-GC.html)" -license = "LGPL 3+" +license = "LGPL-3.0-or-later" notes = "[\"Guile mostly implements R6RS.\"](https://www.gnu.org/software/guile/manual/guile.html#R6RS-Support)" [HAC] @@ -326,12 +400,20 @@ gc = "Tracing (lazy sweep)" license = "MIT" notes = "A bytecode interpreter and a baseline JIT compiler (x86/x86\\_64 only) for [Haxe](https://haxe.org/)." +[Interpreter] +url = "https://github.com/Tyill/interpreter" +lang = "Interpreter" +impl_in = "C++" +gc = "None" +license = "MIT" +notes = "A small interpreter in one header and one source code file with optional extensions (arithmetic operations, containers, filesystem, and others)." + [Io] url = "https://github.com/stevedekorte/io" lang = "Io" impl_in = "C" gc = "Tracing" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "A prototype-based OO language." [Janet] @@ -347,7 +429,7 @@ url = "https://github.com/jerryscript-project/jerryscript" lang = "JavaScript" impl_in = "C" gc = "Tracing" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "A full ECMAScript 5.1 interpreter written in C99 and optimized for low memory consumption. Uses CMake." ["Jim Tcl"] @@ -355,7 +437,7 @@ url = "http://jim.tcl-lang.org/" lang = "Tcl" impl_in = "C" gc = "Tracing" -license = "2-clause BSD" +license = "BSD-2-Clause" notes = "Largely compatible with Tcl 8.5 with its own additions." [Jinx] @@ -375,7 +457,7 @@ license = "Choice of EPL, GPL, and LGPL" notes = "An implementation of Ruby on the JVM." [jsish] -url = "http://jsish.org/" +url = "https://github.com/pcmacdon/jsish" lang = "JavaScript" impl_in = "C" gc = "Ref. counting" @@ -387,7 +469,7 @@ url = "https://jsonnet.org/" lang = "Jsonnet" impl_in = "C++" gc = "Tracing" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "A functional configuration language that extends JSON. Untrusted code: can't access the file system or network, can use up memory and CPU time for a DoS attack. Has [bindings](https://jsonnet.org/ref/bindings.html) for C, C++, Go, Python, and other languages, as well as a separate native Go implementation." [JTcl] @@ -404,7 +486,7 @@ lang = "Python" impl_in = "Java" gc = "JVM's GC" license = "PSFL (BSD-like)" -notes = "An implementation of Python on the JVM." +notes = "An implementation of Python 2 for the JVM." [Kawa] url = "https://www.gnu.org/software/kawa/" @@ -419,7 +501,7 @@ url = "https://github.com/murarth/ketos" lang = "Ketos" impl_in = "Rust" gc = "None (no heap allocation)?" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "A functional Lisp." [Libfawk] @@ -427,7 +509,7 @@ url = "http://repo.hu/projects/libfawk/" lang = "Awk, Basic, Pascal" impl_in = "C" gc = "Ref. counting" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "A multi-language VM. Includes compilers for three languages: Fawk (Awk dialect), Fbas (Basic dialect), and Fpas (Pascal dialect)." [Libmawk] @@ -435,7 +517,7 @@ url = "http://repo.hu/projects/libmawk/" lang = "Awk" impl_in = "C" gc = "Ref. counting" -license = "**GPL 2**" +license = "**GPL-2.0**" notes = "Implements Awk. A fork of mawk 1.3 restructured for embedding." [LIL] @@ -443,16 +525,16 @@ url = "http://runtimeterror.com/tech/lil/" lang = "LIL" impl_in = "C, Object Pascal (separate implementations)" gc = "None (no reference support)" -license = "zlib" +license = "Zlib" notes = "A Tcl-like language incompatible with mainline Tcl." [Lily] url = "https://github.com/FascinatedBox/lily/" lang = "Lily" impl_in = "C" -gc = "Ref. counting + GC" +gc = "Ref. counting + tracing GC" license = "MIT" -notes = "A language focusing on expressiveness and safety." +notes = "A language focused on expressiveness and safety." [ljs] url = "https://github.com/mingodad/ljs" @@ -491,8 +573,8 @@ url = "https://github.com/lindig/lua-ml" lang = "Lua" impl_in = "OCaml" gc = "OCaml's GC" -license = "2-clause BSD" -notes = "Embeddable Lua 2.5 reimplementation that integrates with OCaml type and module system. It's possible to extend or even replace the standard library with your own modules." +license = "BSD-2-Clause" +notes = "Embeddable Lua 2.5 reimplementation that integrates with OCaml type and module system. It is possible to extend or even replace the standard library with custom modules." [Luau] url = "https://luau-lang.org/" @@ -507,7 +589,7 @@ url = "https://github.com/rvirding/luerl" lang = "Lua" impl_in = "Erlang" gc = "Tracing" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "An implementation of Lua 5.2 in pure Erlang with some features like `goto` absent." [MicroPython] @@ -516,15 +598,23 @@ lang = "Python" impl_in = "C" gc = "Tracing" license = "MIT" -notes = "Implements the Python 3.4 syntax and some of the core datatypes." +notes = "Implements Python 3.4 syntax and some of the core datatypes." + +[Moirai] +url = "https://github.com/moirai-lang/moirai-kt" +lang = "Moirai" +impl_in = "Kotlin" +gc = "JVM's GC" +license = "MIT" +notes = "A scripting language that calculates the worst-case execution time (WCET) before executing each script. Optimized for multi-tenant microservices and serverless applications." [Molt] url = "https://github.com/wduquette/molt" lang = "Tcl" impl_in = "Rust" gc = "Ref. counting" -license = "3-clause BSD" -notes = "A minimal Tcl implementation for Rust applications and libraries." +license = "BSD-3-Clause" +notes = "A minimal Tcl implementation designed for Rust applications and libraries." [Mond] url = "https://github.com/Rohansi/Mond/" @@ -547,7 +637,7 @@ url = "https://www.moonsharp.org/" lang = "Lua" impl_in = "C#" gc = "CLR's GC" -license = "3-clause BSD and other" +license = "BSD-3-Clause and other" notes = "CLR Based Lua implementation that is 99% compatible with Lua 5.2" [mruby] @@ -563,7 +653,7 @@ url = "https://github.com/mrubyc/mrubyc" lang = "Ruby" impl_in = "C" gc = "Ref. counting" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "An even smaller implementation of Ruby for microcontrollers with limited memory." [MuJS] @@ -606,12 +696,20 @@ gc = "Tracing" license = "MIT" notes = "A statically typed functional programming language." +[Nickel] +url = "https://nickel-lang.org/" +lang = "Nickel" +impl_in = "Rust" +gc = "Ref. counting" +license = "MIT" +notes = "A configuration language with gradual typing and contracts. [Python bindings](https://github.com/tweag/nickel/tree/master/pyckel)." + [njs] url = "https://nginx.org/en/docs/njs/" lang = "JavaScript" impl_in = "C" gc = "None (no collection performed)" -license = "2-clause BSD" +license = "BSD-2-Clause" notes = "Implements a subset of ES5.1 with some ES6 extensions." [ooRexx] @@ -643,7 +741,7 @@ url = "http://www.compuphase.com/pawn/pawn.htm" lang = "Pawn" impl_in = "C" gc = "None (no heap allocation)" -license = "Apache License 2.0 with a clause to explicitly permit static linking" +license = "Apache-2.0 with a clause to explicitly permit static linking" notes = "A curly-brace language with a small-footprint VM. Represents data as 4/8-byte \"cells\". Compiles to CPU-specific bytecode. [More](https://wiki.alliedmods.net/Pawn_Tutorial#Language_Paradigms)." [Perl] @@ -651,7 +749,7 @@ url = "https://www.perl.org/" lang = "Perl" impl_in = "C" gc = "Ref. counting" -license = "Artistic License or GPL 3" +license = "Artistic-2.0 or GPL-3.0" notes = "[Embedding Perl in Another Application](https://perldoc.perl.org/perlembed)" [pForth] @@ -667,15 +765,23 @@ url = "https://github.com/symisc/PH7" lang = "PHP" impl_in = "C" gc = "Ref. counting" -license = "**SPL** or proprietary" +license = "**Symisc Public License** or proprietary" notes = "Implements a subset of PHP 5.3 with some changes like native UTF-8 support." +[PikaPython] +url = "https://github.com/pikasTech/PikaPython" +lang = "Python" +impl_in = "C" +gc = "Ref. counting" +license = "MIT" +notes = "Implements a variant of Python 3. The degree of compatibility with Python seems to be undocumented. Runs in as little as 4 KiB of RAM. Targets microcontrollers and Linux." + [PicoC] url = "https://github.com/zsaleeba/picoc" lang = "C" impl_in = "C" gc = "None (manual MM)" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "Statically typed. Interprets a subset of C." [Picol] @@ -683,9 +789,17 @@ url = "https://chiselapp.com/user/dbohdan/repository/picol/" lang = "Tcl" impl_in = "C" gc = "None (no reference support)" -license = "2-clause BSD" +license = "BSD-2-Clause" notes = "A header-only library interpreter for a limited dialect of Tcl." +[Pluto] +url = "https://github.com/PlutoLang/Pluto" +lang = "Pluto" +impl_in = "C++" +gc = "Tracing" +license = "MIT" +notes = "A superset of Lua 5.4 (outside of incompatibilies caused by new syntax). Adds syntax like `!=`, `break`, and string interpolation; expands the standard library; somewhat improves performance." + [pocketlang] url = "https://github.com/ThakeeNathees/pocketlang" lang = "pocketlang" @@ -694,13 +808,21 @@ gc = "Tracing" license = "MIT" notes = "A small language syntactically similar to Ruby. [Embedding examples](https://github.com/ThakeeNathees/pocketlang/tree/master/tests/native/). [Performance comparison](https://github.com/ThakeeNathees/pocketlang#performance)." +[pocketpy] +url = "https://github.com/blueloveTH/pocketpy" +lang = "Python" +impl_in = "C++" +gc = "Tracing" +license = "MIT" +notes = "Implements a subset of Python 3 (with [some differences](https://pocketpy.dev/features/differences/#different-behaviors)) in a single C++17 header file." + [Python] url = "https://www.python.org/" lang = "Python" impl_in = "C" gc = "Ref. counting + cycle-detecting tracing GC" license = "PSFL (BSD-like)" -notes = "[Embedding Python in Another Application](https://docs.python.org/3.5/extending/embedding.html)." +notes = "[\"Embedding Python in Another Application\"](https://docs.python.org/3/extending/embedding.html)." ["gmqcc/qcvm"] url = "https://github.com/graphitemaster/gmqcc" @@ -726,12 +848,20 @@ gc = "Ref. counting" license = "MIT" notes = "A fork of Squirrel with [new features](https://quirrel.io/doc/reference/diff_from_original.html)." +[Ravi] +url = "https://github.com/dibyendumajumdar/ravi" +lang = "Lua" +impl_in = "C" +gc = "Tracing" +license = "MIT" +notes = "“Ravi is a dialect of Lua with limited optional static typing and features a JIT compiler powered by MIR as well as support for AOT compilation to native code.”" + [Rebol] url = "https://github.com/Oldes/Rebol3" lang = "Rebol" impl_in = "C" gc = "Tracing" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "Relative Expression Based Object Language" [Red] @@ -739,7 +869,7 @@ url = "https://github.com/red/red" lang = "Red" impl_in = "Rebol, Red, Red/System" gc = "Tracing" -license = "3-clause BSD, BSL" +license = "BSD-3-Clause, BSL-1.0" notes = "A descendant of Rebol. Embeddable via [libRed](https://github.com/red/docs/blob/master/en/libred.adoc). Features a cross-platform native GUI system. Intended to have low memory usage." [Rhai] @@ -747,7 +877,7 @@ url = "https://github.com/jonathandturner/rhai" lang = "Rhai" impl_in = "Rust" gc = "None (Rust-style lifetimes)" -license = "MIT or Apache License 2.0" +license = "MIT or Apache-2.0" notes = "An embedded scripting language for Rust inspired by ChaiScript." [Ring] @@ -763,15 +893,23 @@ url = "https://www.ruby-lang.org/en/" lang = "Ruby" impl_in = "C" gc = "Tracing" -license = "Choice of 2-clause BSD, Ruby license, GPL 2" +license = "Choice of BSD-2-Clause, Ruby license, GPL-2.0" notes = "An embeddable object-oriented scripting language. [Running Ruby in C](https://silverhammermba.github.io/emberb/embed/)." +[Rune] +url = "https://github.com/rune-rs/rune" +lang = "Rune" +impl_in = "Rust" +gc = "Ref. counting" +license = "MIT or Apache-2.0" +notes = "An embeddable dynamic programming language. Asynchronous-first and [const-evaluation](https://rune-rs.github.io/#const-evaluation)." + [s7] url = "https://ccrma.stanford.edu/software/snd/snd/s7.html" lang = "Scheme" impl_in = "C" gc = "Tracing" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "Implements a subset of R5RS/R7RS. Descended from TinyScheme." [sci] @@ -779,7 +917,7 @@ url = "https://github.com/borkdude/sci" lang = "Clojure" impl_in = "Clojure" gc = "host VM's GC" -license = "EPL" +license = "EPL-1.0" notes = "An interpreter for a subset of Clojure for Clojure and ClojureScript." [SGScript] @@ -790,6 +928,14 @@ gc = "Ref. counting + tracing CG" license = "MIT" notes = "[Features](http://www.sgscript.org/pages/advdocs/sgscript.docs.htm#Why-SGScript) include a built-in data serialization format, coroutines, class-based OOP, sandboxed evaluation, a built-in debugger and profiler." +[sh] +url = "https://github.com/mvdan/sh" +lang = "shell" +impl_in = "Go" +gc = "Go's GC" +license = "MIT" +notes = "Implements POSIX shell, Bash, and mksh in pure Go. There are caveats with compatibility. See the [readme](https://github.com/mvdan/sh#caveats) and issues like [mvdan/sh#221](https://github.com/mvdan/sh/issues/221)." + [Shine] url = "https://github.com/richardhundt/shine" lang = "Shine" @@ -798,13 +944,29 @@ gc = "Tracing" license = "MIT" notes = "A language based on Lua with additional safety and expressiveness features implemented as a fork of LuaJIT." +[simpleeval] +url = "https://github.com/danthedeckie/simpleeval" +lang = "simpleeval" +impl_in = "Python" +gc = "Python's GC" +license = "MIT" +notes = "Evaluates expressions in a subset of Python." + +[Snek] +url = "https://github.com/keith-packard/snek" +lang = "Snek" +impl_in = "C" +gc = "Tracing" +license = "**GPL-3.0-or-later**" +notes = 'A Python-inspired language. Targets "processors too small to run MicroPython".' + [SquiLu] url = "https://github.com/mingodad/squilu" lang = "SquiLu" impl_in = "C++" gc = "Ref. counting" license = "MIT, some extensions LGPL or GPL" -notes = "A fork of [Squirrel](http://squirrel-lang.org/). Changes the syntax to accept a subset of JavaScript and C/C++. Implements Lua's features like string pattern matching and global table manipulation functions. Adds extensions for database access (SQLite3, MySQL, PostgreSQL), sockets, and other features." +notes = "A fork of [Squirrel](http://squirrel-lang.org/). Changes the syntax to accept a subset of JavaScript and C/C++. Implements Lua's features like string pattern matching and global table manipulation functions. It adds extensions for database access (SQLite3, MySQL, PostgreSQL), sockets, and other features." [Squirrel] url = "http://squirrel-lang.org/" @@ -819,7 +981,7 @@ url = "https://github.com/google/starlark-go/" lang = "Starlark" impl_in = "Go" gc = "Go's GC" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "A small dialect of Python for configuration. Not Turing-complete. Untrusted code: can't access the file system and network, can use up memory and CPU to perform a DoS attack. [Spec](https://github.com/bazelbuild/starlark). [Python bindings](https://github.com/caketop/python-starlark-go)." ["Starlark (Java)"] @@ -827,31 +989,39 @@ url = "https://github.com/bazelbuild/bazel/tree/master/src/main/java/net/starlar lang = "Starlark" impl_in = "Java" gc = "JVM's GC" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "Starlark for the JVM. The original implementation." ["Starlark (Rust)"] -url = "https://github.com/google/starlark-rust/" +url = "https://github.com/facebookexperimental/starlark-rust" lang = "Starlark" impl_in = "Rust" gc = "?" -license = "Apache License 2.0" +license = "Apache-2.0" notes = "Starlark in Rust. [Python bindings](https://github.com/inducer/starlark-pyo3)." +[Steel] +url = "https://github.com/mattwparas/steel" +lang = "Scheme" +impl_in = "Rust" +gc = "Ref. counting + tracing GC" +license = "Apache-2.0 or MIT" +notes = "Aims for eventual R5RS and R7RS language compliance, with extensions inspired by Racket." + [Tcl] url = "http://tcl-lang.org/" lang = "Tcl" impl_in = "C" gc = "Ref. counting" license = "Tcl license (BSD-like)" -notes = "An embeddable general-purpose scripting language with a rich C API. Has a cross-platform GUI toolkit called [Tk](https://wiki.tcl-lang.org/477). [How to embed Tcl in C applications](https://wiki.tcl-lang.org/2074)." +notes = 'An embeddable general-purpose scripting language with a rich C API. Includes a cross-platform GUI toolkit called [Tk](https://wiki.tcl-lang.org/477). See ["How to embed Tcl in C applications"](https://wiki.tcl-lang.org/2074).' [tcc] url = "https://repo.or.cz/tinycc.git/" lang = "C" impl_in = "C" gc = "None" -license = "LGPL 2" +license = "LGPL-2.0-only" notes = "A small C compiler that can be used as a library for a C JIT. [libtcc header](https://repo.or.cz/tinycc.git/blob/HEAD:/libtcc.h). [Embedding example](https://repo.or.cz/tinycc.git/blob/HEAD:/tests/libtcc_test.c)." [TinyScheme] @@ -859,15 +1029,31 @@ url = "http://tinyscheme.sourceforge.net/" lang = "Scheme" impl_in = "C" gc = "Tracing?" -license = "3-clause BSD" +license = "BSD-3-Clause" notes = "Implements a subset of R5RS." +[Toy] +url = "https://github.com/Ratstail91/Toy" +lang = "Toy" +impl_in = "C" +gc = "Ref. counting" +license = "Zlib" +notes = "Has an optional type system. [Embedding Toy](https://toylang.com/deep-dive/embedding-toy)." + +[TruffleRuby] +url = "https://github.com/oracle/truffleruby" +lang = "Ruby" +impl_in = "C, Java" +gc = "JVM's GC" +license = "UPL-1.0" +notes = "Implements Ruby for GraalVM (HotSpot JVM) using Truffle." + [Umka] url = "https://github.com/vtereshkov/umka-lang" lang = "Umka" impl_in = "C" gc = "Ref. counting" -license = "2-clause BSD" +license = "BSD-2-Clause" notes = "Statically typed." [Wirefilter] @@ -886,10 +1072,26 @@ gc = "Tracing" license = "MIT" notes = "A small class-based performance-oriented scripting language. [Performance comparison](https://wren.io/performance.html)." +["Yaegi"] +url = "https://github.com/traefik/yaegi" +lang = "Go" +impl_in = "Go" +gc = "Go's GC" +license = "Apache-2.0" +notes = "An embedded complete Go interpreter, on top of the Go runtime." + +[ZetScript] +url = "https://zetscript.org" +lang = "ZetScript" +impl_in = "C++" +gc = "Ref. counting" +license = "MIT" +notes = "Comes with an API for C++ interop." + [zygomys] url = "https://github.com/glycerine/zygomys" lang = "zygomys" impl_in = "Go" gc = "Go's GC" -license = "2-clause BSD" +license = "BSD-2-Clause" notes = "An embedded Lisp for Go. Inspired by Clojure, but more oriented towards imperative programming. Has an infix syntax layer that looks like a subset of Go." diff --git a/render-template.ts b/render-template.ts index 8bdbc93..8780250 100755 --- a/render-template.ts +++ b/render-template.ts @@ -1,4 +1,4 @@ -#! /usr/bin/env -S deno run --allow-read --check +#! /usr/bin/env -S deno run --allow-env --allow-read --check import markdownTOC from "npm:markdown-toc@1"; import nunjucks from "npm:nunjucks@3";