Reference

Supported Languages

OtherFunc supports five esoteric and unusual programming languages. Each reference page documents the complete set of built-in commands, functions, and operators available in that language.

Brainfuck

Tape-based esoteric language with 8 commands. Simple, Turing complete, and notoriously unreadable. 30,000 cells of u8 memory with wrapping arithmetic.

Forth

Stack-based language with 64 built-in primitives including strings, HTTP outbound, and KV storage. Supports word definitions, control flow, loops, variables, constants, and memory access. i64 cells.

APL

Array-oriented language subset with Unicode glyphs and ASCII aliases. 17 scalar functions, 7 structural functions, and 4 operators. Right-to-left evaluation, 1-indexed arrays, and scalar extension.

Lisp

Bytecode-compiled Scheme-like Lisp with symbol interning and lexical addressing. 10 special forms and 21 built-in functions covering arithmetic, lists, and I/O. Tail call optimization via dedicated VM opcode.

BASIC

Bytecode-compiled line-number BASIC with classic GOTO, GOSUB, FOR/NEXT. f64 numbers, string variables, and 14 built-in functions including HTTP outbound, secrets, and KV storage.

API

The OtherFunc HTTP API lets you execute code ad-hoc, create and manage saved functions, and invoke published functions by slug. See the API Reference for endpoints, examples, and error handling.

MCP Server

The OtherFunc MCP server lets AI assistants create, manage, and execute functions directly via Model Context Protocol. See the MCP Reference for setup, configuration, and the full list of tools.

Architecture

Each interpreter is written in Rust and compiled to WebAssembly.

Every interpreter implements a shared Interpreter trait with a single method: execute(code, input) → Result<output, error>. The interpreters are independently usable as CLI tools or as library crates.