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.
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.
| Language | Version | What it does | Outputs |
|---|---|---|---|
agda | 2.8.0 | Agda: 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 nd | 0.9.0 | Natural 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 |
effekt | 0.82.0 | Effekt: 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 |
gleam | 1.19.2 | Gleam, 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 hs | 9.14.1 | Haskell: GHC 9.14 compiled to WebAssembly runs in your browser. It compiles your program and runs it in its bytecode interpreter. | Output, Compiletext |
javascriptalso js | 6.0.3 | JavaScript with TypeScript's language service: syntax errors, hover, completion and inlay hints. The program runs in your browser. | Outputtext |
kokaalso kk | 3.3.0 | Koka: a functional language with effect types and handlers. The compiler and the language server run in your browser as WebAssembly. | Output, Compilertext |
lambdaalso lambda-calculus | 0.9.0 | Untyped, 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 ll | 0.9.0 | Linear 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 fol | 0.9.0 | Ordinary 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 |
lua | 5.5.1 | Lua 5.5 in your browser: run by Lua itself on WebAssembly, parsed by it for the editor, with the bytecode listing. | Output, Bytecodetext, code |
modal-logicalso modal | 0.9.0 | Modal logic by deduxit, the systems K to S5: derivations in labelled calculi, and Kripke countermodels. | Verdict, Proof, Countermodel, Drawing, Exporttext, tree, graph, table, drawing, code |
ocamlalso ml | 5.5.2 | OCaml in the page: a toplevel with effect handlers, Check and QCheck, and Merlin's types, errors and completion. | Output, Checkscode, text, verdicts |
oxcamlalso ox | 5.2.0minus39 | OxCaml 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 swipl | 8.3.1 | Prolog, 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, python3 | 314.0.8 | Python 3.14, run by Pyodide and checked by ty, Astral's type checker, in your browser. The standard library only. | Outputtext |
rocqalso coq, v | 0.2.4 | Rocq 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 rs | 1.100.1 | Rust, 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, chibi | 0.12 | Scheme (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-ml | 1.6.11 | Standard 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 sqlite | 3.54.1 | SQLite 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 ts | 6.0.3 | TypeScript, type-checked by its own language service in your browser, with the transpiled JavaScript. The program runs there too. | Output, JavaScripttext, code |
typstalso typ | 0.15.1 | Typst, 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 |