Category:Janet: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
{{stub}}{{language|Janet}}
{{stub}}{{language|Janet}}


Janet is a C based, Clojure-like lisp for scripting and prototyping.
Janet is a lisp dialect meant for small systems and embedded usage.
There is no regexp built into the language, instead there is PEG, Parsing expression grammar.


From the website [https://janet-lang.org https://janet-lang.org]
From the website [https://janet-lang.org https://janet-lang.org]

Revision as of 11:52, 8 March 2024

This page is a stub. It needs more information! You can help Rosetta Code by filling it in!
Language
Janet
This programming language may be used to instruct a computer to perform a task.
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using Janet.

Janet is a lisp dialect meant for small systems and embedded usage. There is no regexp built into the language, instead there is PEG, Parsing expression grammar.

From the website https://janet-lang.org

Janet is a functional and imperative programming language. It runs on Windows, Linux, macOS, BSDs, and should run on other systems with some porting. The entire language (core library, interpreter, compiler, assembler, PEG) is less than 1MB. You can also add Janet scripting to an application by embedding a single C source file and a single header.

Features

   Minimal setup - one binary and you are good to go!
   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