Skip to content
Jennifer Programming Language
Jennifer

Jennifer Programming Language

Jennifer is an interpreted programming language written in (Tiny)Go.

It is batteries-included: 43 built-in libraries and 72 bundled modules - nearly 2,300 functions, constants, and types. Query a database with the SQL library (MySQL/MariaDB/Galera and PostgreSQL, parameterized and injection-safe) or map rows to structs with the ORM. Read and write JSON, YAML, TOML, and XML; match text with regular expressions. The web works both ways: an HTTP/S client and a REST layer to call out, a built-in HTTP server and web framework to serve. Email is a complete stack - SMTP to send, POP3 / IMAP to receive; caches and stores come through Redis and memcached clients. Cryptography covers AES-256-GCM, Ed25519, HKDF / PBKDF2 / Argon2id / scrypt, and JWT. Wire your program into AI agents with the Model Context Protocol: expose your own functions as tools / resources / prompts to a host (Claude, an IDE, ...), or call another MCP server as a client - validated end to end against the official MCP SDK. Lightweight concurrency is built into the language via spawn and the task library. Niche needs are covered too - WebDAV files, strict SemVer, S3 object storage, vCard / iCalendar, MQTT, AMQP and ZeroMQ messaging, ACME certificate issuance, TOTP two-factor codes. The interpreter and its built-in libraries ship as one self-contained static binary - about 17 MB with everything, about 5 MB for the embeddable build - with no separate runtime and no dependency tree to install. The modules ship as plain .j source files (installed beside the binary and resolved through the module path), readable and editable with no compile step. Reaching past the built-ins is opt-in: third-party decks (Jennifer's packages) from the registry are vendored into your project's own tree - no global install, no daemon - with the jvc package manager to resolve and pin them, and imported as import "@scope/package/";.

It also suits teaching and learning: an interactive REPL, an easy-to-read grammar, and token and AST dumps show what an interpreter does at each stage, plus a built-in linter and profiler and full test support. Its strict, explicit design (conditions must be bool, conversions are spelled out, names never shadow, errors are positioned) turns a mistake into a clear message instead of silent misbehavior.

Source files use the .j extension. Whitespace is not significant anywhere; statements end with ;.

jennifer
use io;
use time;

def start as time.Time init time.now();
io.printf("hello, world\n");
def gap as time.Duration init time.sub(time.now(), $start);
io.printf("ran for %d ms\n", time.milliseconds($gap));

Two binaries: jennifer and jennifer-tiny

Jennifer ships as two binaries built from the same source:

  • jennifer - standard Go build with every host feature; the default.
  • jennifer-tiny - TinyGo build, smaller and embeddable. It has no os/exec, no network stack and no sql (TinyGo runtime gaps); calls into those surfaces throw an error pointing at jennifer. Use it when binary size matters (embedded systems, minimal containers, small scripting hosts).

Write Jennifer with your editor and an AI assistant

Syntax highlighting ships in editors/ (a Vim / Neovim drop-in, a VS Code extension, a Sublime Text syntax, a TextMate grammar for other TextMate-based editors, a highlight.js definition). JENNIFER.md is a language reference for AI coding assistants: drop it into your project and point the assistant at it ("we code in Jennifer, see JENNIFER.md") so it writes correct .j from the start. See Editor & AI support.

What's in this site

  • Getting started - install the interpreter and run your first program.
  • Editor & AI support - highlighting and the drop-in JENNIFER.md for AI-assisted coding.
  • Language reference - syntax, types, functions, control flow, imports, style.
  • Libraries - per-library reference plus an alphabetical cheatsheet of every builtin.
  • Modules - the bundled modules written in Jennifer (import "name.j";): formats, mail, stores, web, and protocol clients, each with its own reference page.
  • Technical reference - implementation details for the lexer, parser, interpreter, and CLI.
  • Project - roadmap, milestones, design stances, glossary.

Status

Pre-1.0. The version stays at 0.x.y while the language settles; breaking changes can happen at a release and are listed in its release notes and in docs/milestones.md; what is coming is in the roadmap. From 1.0.0 on, semver applies and a breaking change needs a major bump.

Source

Source, issues, and pull requests live at https://github.com/jennifer-language/jennifer.

License: LGPL-3.0-only.

Manual

Download the whole manual as a single PDF, with a clickable outline (the H1/H2/H3 headings) in your PDF reader's bookmark panel. It is regenerated from these pages on every build.