Python application for multilingual programming
Project description
multilingual
Not yet another programming language. A multilingual one.
One semantic core. Many human languages.
Build software through human-language-first syntax with native support for AI, multimodal workflows, reactive interfaces, and portable execution.
Vision
multilingual is becoming a programming language for the age of human
language, AI, multimodal computing, and living interfaces.
Its purpose is bigger than keyword translation. The goal is to make it possible to express the same precise program semantics across human languages while also making modern software primitives feel native:
- structured data and pattern matching
- AI generation, extraction, planning, and tool use
- multimodal input and output
- reactive state and interfaces
- portable execution across environments
Read the language direction here:
- Vision: docs/vision.md
- Core 1.0: docs/spec/core_1_0.md
- 1.0 roadmap: docs/roadmaps/multilingual_1_0.md
Strategic Direction
The project is moving toward a clearer identity:
- one semantic programming model expressed through many human languages
- first-class semantics for AI, retrieval, tools, and multimodal workflows
- structured concurrency, observability, memory, and agent coordination
- reactive and distributed programs that span browser, device, edge, and cloud
- portable execution where semantics stay stable while backends adapt
The repository already contains early pieces of that future, but the current implementation is still a transitional platform between the historical multilingual compiler pipeline and the fuller Core 1.0 language model.
What Multilingual Is
- a human-language-first programming language
- a shared semantic model expressed through multiple language surfaces
- an AI-native language platform, not just a syntax experiment
- a research and implementation space for multilingual programming systems
Why Multilingual
- Human-language-first programming: code should not force people to abandon their language or mode of expression.
- Shared semantics: different human-language surfaces should express the same underlying program.
- AI-native direction: models, tools, retrieval, and semantic workflows are becoming first-class language concepts.
- Portable architecture: one language should move across runtimes and environments without losing meaning.
Pipeline Illustration
Current Platform
Today the repository already provides:
- multilingual frontends driven by the USM keyword model
- a shared parser, AST, and semantic-IR direction
- semantic analysis plus Python and WAT/WASM code generation
- Python execution support
- WAT/WASM generation and backend selection
- browser demos and DOM-oriented workflows
This is an active language platform in motion, not just a whitepaper.
Current Limitations
- the current semantic core is still thinner than the long-term Core 1.0 model
- some localized surfaces still feel less natural than they should
- parts of the implementation still reflect the historical compiler pipeline more than the future language experience
- AI-native, multimodal, reactive, concurrent, and distributed constructs are in mixed stages of design, prototyping, and rollout
- documentation still needs ongoing migration from "current compiler" wording toward "future language platform" wording
Details:
- Word order and naturalness: docs/word_order_and_naturalness.md
- Controlled language scope: docs/cnl_scope.md
- Current compatibility matrix: docs/compatibility_matrix.md
Quick Start
Source files now prefer the .multi extension. The legacy .ml extension
remains fully supported for compatibility. Running the current implementation
requires Python 3.12 or newer.
Try The Playground
You can try multilingual directly in your browser:
The playground lets you:
- write code in supported human languages
- run execution in Pyodide
- inspect generated Python
- inspect generated WAT/WASM output
- inspect generated Wasmtime bridge code
Install
PyPI package: https://pypi.org/project/multilingualprogramming/
Option 1:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install multilingualprogramming
Option 2:
pipx install multilingualprogramming
For local development from source:
pip install -r requirements.txt
pip install .
Optional runtime extras:
pip install "multilingualprogramming[wasm]"
pip install "multilingualprogramming[ai]"
pip install "multilingualprogramming[all]"
Hello World
# English
print("Hello world")
# French
afficher("Bonjour le monde")
# Spanish
imprimir("Hola mundo")
Use the REPL
multilingual
multilingual repl
multilingual repl --lang fr
multilingual repl --show-python
multilingual repl --show-wat
multilingual repl --show-rust
REPL commands:
:helpshow commands:language <code>switch language:pythontoggle generated Python display:wattoggle generated WAT display:rusttoggle generated Wasmtime bridge display:resetclear session state:kw [XX]show language keywords:ops [XX]show operators and symbols:qexit
Run a Program
multilingual hello_en.multi
multilingual run hello_en.multi
multilingual run hello_fr.multi --lang fr
multilingual run hello_en.multi --show-backend
Cross-Language Module Imports
You can import .multi and .ml modules across language surfaces in one program.
module_fr.multi:
soit valeur = 41
def incremente(x):
retour x + 1
main_en.multi:
import module_fr
print(module_fr.incremente(module_fr.valeur))
Run:
multilingual run main_en.multi --lang en
Roadmap
Near-term priorities:
- stabilize the Core 1.0 semantic model
- strengthen the semantic IR and capability-aware analysis pipeline
- ship more unmistakable language features such as
fn,var,enum,|>,par,spawn,memory, and observability primitives - continue building AI-native, multimodal, reactive, and distributed features on top of that core
See:
More Documentation
- Usage examples: USAGE.md
- Language design overview: docs/design.md
- Frontend contracts: docs/frontend_contracts.md
- Core spec draft: docs/spec/core_1_0.md
Architect and Creator
- John Samuel
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file multilingualprogramming-0.7.0.tar.gz.
File metadata
- Download URL: multilingualprogramming-0.7.0.tar.gz
- Upload date:
- Size: 311.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
844514e8bb5daaa0359df2eaf01d0c69e10bd00c4860ef5983c92d913bd470fa
|
|
| MD5 |
de58e488fe7d483c236dfb9e6ec81d6b
|
|
| BLAKE2b-256 |
e32654bdf652b1fdea641d655153d04748bcc065e64d80c5b6beaa61196e1674
|
Provenance
The following attestation bundles were made for multilingualprogramming-0.7.0.tar.gz:
Publisher:
release-pypi.yml on johnsamuelwrites/multilingual
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
multilingualprogramming-0.7.0.tar.gz -
Subject digest:
844514e8bb5daaa0359df2eaf01d0c69e10bd00c4860ef5983c92d913bd470fa - Sigstore transparency entry: 1614779412
- Sigstore integration time:
-
Permalink:
johnsamuelwrites/multilingual@8051315d4562148ce442c62be861f1389b933a60 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/johnsamuelwrites
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@8051315d4562148ce442c62be861f1389b933a60 -
Trigger Event:
push
-
Statement type:
File details
Details for the file multilingualprogramming-0.7.0-py3-none-any.whl.
File metadata
- Download URL: multilingualprogramming-0.7.0-py3-none-any.whl
- Upload date:
- Size: 358.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a8c71ebf7b4889f93eabcc4f0942bf9727f088a58693acfab29a1a6647eda5b
|
|
| MD5 |
a3256fda595bc934381b16872d7b66be
|
|
| BLAKE2b-256 |
8a0bf0174bfa1d598d303b7af4b4ec34d031e8668a00d1203745d07bc95b0970
|
Provenance
The following attestation bundles were made for multilingualprogramming-0.7.0-py3-none-any.whl:
Publisher:
release-pypi.yml on johnsamuelwrites/multilingual
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
multilingualprogramming-0.7.0-py3-none-any.whl -
Subject digest:
3a8c71ebf7b4889f93eabcc4f0942bf9727f088a58693acfab29a1a6647eda5b - Sigstore transparency entry: 1614779426
- Sigstore integration time:
-
Permalink:
johnsamuelwrites/multilingual@8051315d4562148ce442c62be861f1389b933a60 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/johnsamuelwrites
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@8051315d4562148ce442c62be861f1389b933a60 -
Trigger Event:
push
-
Statement type: