Many languages, one interface

Switch the language under one idea; every language is the same element.

Framework decisions behind it: D1, D22 to D31.

One idea, fifteen languages

Every program adds up the squares of the odd numbers from 1 to 10, which is 165. The element, the toolbar and the way a run is shown are the same; each language brings its own compiler or interpreter, as WebAssembly or JavaScript, and its own language server. A language downloads only when you press Run.

The language switcher needs JavaScript.

Every language on this site

Ready-made packages from playgroundkit/languages, read from the directory this site serves. Use a name or an alias as the element's language.

LanguageVersionWhat it doesOutputs
agda2.8.0Agda: a dependently typed language and proof assistant. Agda 2.8.0 runs in your browser as WebAssembly: it type-checks the module, shows the goals and normalises expressions, with part of the standard library.Check, Goals, Normal formtext
calculusalso nd0.9.0Natural deduction and sequent calculi given as rule files, by deduxit: proofs as trees or Fitch proofs, built step by step.Verdict, Proof, Step by step, Drawing, Fitch proof, Exporttext, tree, drawing, code
effekt0.82.0Effekt: a language with lexical effect handlers and a type system that tracks effects. The compiler and the language server run in your browser as JavaScript.Outputtext
gleam1.19.2Gleam, compiled in your browser by its own compiler: type errors with their places, hover, completion, the generated JavaScript and Erlang. The program runs as JavaScript, with the standard library.Output, JavaScript, Erlangtext, code
haskellalso hs9.14.1Haskell: GHC 9.14 compiled to WebAssembly runs in your browser. It compiles your program and runs it in its bytecode interpreter.Output, Compiletext
javascriptalso js6.0.3JavaScript with TypeScript's language service: syntax errors, hover, completion and inlay hints. The program runs in your browser.Outputtext
kokaalso kk3.3.0Koka: a functional language with effect types and handlers. The compiler and the language server run in your browser as WebAssembly.Output, Compilertext
lambdaalso lambda-calculus0.9.0Untyped, simply typed and System F λ-terms by deduxit: types, normal forms, reduction steps, typing derivations, and the terms of a type.Result, Countermodel, Reduction, Typing, Drawing, Exporttext, graph, table, code, tree, drawing
linear-logicalso ll0.9.0Linear logic by deduxit: classical, intuitionistic, affine, Mix, cyclic and the Lambek calculus, propositional and first-order. Proofs as trees, step by step, proof nets, λ-terms.Verdict, Proof, Step by step, Proof net, λ-term, Drawing, Exporttext, tree, drawing, code
logicalso fol0.9.0Ordinary logic by deduxit: classical, intuitionistic and minimal, propositional and first-order, with equality. Proofs as trees, step by step, countermodels, truth tables and tableaux.Verdict, Proof, Countermodel, Step by step, Truth table, Tableau, Drawing, Exporttext, tree, graph, table, drawing, code
lua5.5.1Lua 5.5 in your browser: run by Lua itself on WebAssembly, parsed by it for the editor, with the bytecode listing.Output, Bytecodetext, code
ocamlalso ml5.5.2OCaml in the page: a toplevel with effect handlers, Check and QCheck, and Merlin's types, errors and completion.Output, Checkscode, text, verdicts
oxcamlalso ox5.2.0minus39OxCaml in the page: a toplevel with modes, unboxed types and effect handlers, and Merlin's types, modes, errors and completion.Output, Checkscode, text, verdicts
prologalso swipl8.3.1Prolog, run by SWI-Prolog 10 on WebAssembly in your browser: write queries as ?- Goal. and see every answer. Checked as you type.Output, Prooftext, code, table, tree
pythonalso py, python3314.0.8Python 3.14, run by Pyodide and checked by ty, Astral's type checker, in your browser. The standard library only.Outputtext
rocqalso coq, v0.2.4Rocq 9.1.0 (formerly Coq), checked in your browser by coq-lsp's WebAssembly build: the messages of Compute, Check and Print, errors, and the goals at the cursor.Goals, Outputtext
rustalso rs1.100.1Rust, checked by rust-analyzer in your browser: diagnostics, hover, completion and macro expansion, against the standard library's own sources. There is nothing to run.Expand macrocode, text
schemealso r7rs, chibi0.12Scheme (R7RS-small), run by Chibi-Scheme built to WebAssembly in your browser, with its standard libraries. Macro expansion, and syntax errors and unbound names as you type.Output, Expandedtext, code
smlalso standard-ml1.6.11Standard ML, interpreted by SOSML in your browser: each declaration's bindings and types as a toplevel prints them, with errors, hover (types) and completion.Output, Typestext, code
sqlalso sqlite3.54.1SQLite in your browser, as WebAssembly: run a script and read each query's result as a table; diagnostics from SQLite's own parser, and hover and completion from the tables the script creates.Output, Schematext, table, tree
typescriptalso ts6.0.3TypeScript, type-checked by its own language service in your browser, with the transpiled JavaScript. The program runs there too.Output, JavaScripttext, code
typstalso typ0.15.1Typst, compiled in your browser: the document as pages, errors and warnings with ranges, hover and completion from Typst's own IDE library, and the headings as an outline.Document, Outlinedrawing, text, tree