Get the latest tech news

Janet: Lightweight, Expressive, Modern Lisp


Janet is a functional and imperative programming language. It runs on Windows, Linux, macOS, FreeBSD and *nix.

The few features that are not standard C (dynamic library loading, compiler specific optimizations), are fairly straightforward. Builtin support for threads, networking, and an event loop First class closures Garbage collection First class green threads (continuations) Mutable and immutable arrays (array/tuple) Mutable and immutable hashtables (table/struct) Mutable and immutable strings (buffer/string) Macros Tail call optimization Direct interop with C via abstract types and C functions Dynamically load C libraries Lexical scoping REPL and interactive debugger Parsing Expression Grammars built in to the core library 500+ functions and macros in the core library Export your projects to standalone executables with a companion build tool, jpm Add to a project with just janet.c and janet.h If you are looking to explore, you can print a list of all available macros, functions, and constants by entering the command(doc) into the REPL.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of lightweight

lightweight

Photo of Janet

Janet

Photo of Expressive

Expressive

Related news:

News photo

Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work

News photo

Early Google Photos code might've shown off its 'Expressive' new look

News photo

Google XR glasses hands-on: Lightweight but with a limited field of view