Installer Amalgame

Essaie immédiatement avec l'IDE Docker clé en main, ou installe le compilateur amc nativement selon ton système.

Dernière version stable : v0.8.90 (voir toutes les versions)

🐳 Docker — l'IDE complet, zéro installation

La façon la plus rapide d'essayer Amalgame : une seule commande démarre un VS Code dans le navigateur avec le compilateur, l'extension (coloration syntaxique, LSP, débogueur), un projet d'exemple prêt à lancer et la documentation — tout est pré-câblé, rien à configurer.

docker run --rm -p 8080:8080 ghcr.io/amalgame-lang/amalgame-ide:latest

Ouvre ensuite localhost:8080 — tu arrives sur l'exemple MyFirstApp avec le guide épinglé dans la barre latérale ; appuie sur F5 pour le compiler et le déboguer immédiatement.

  • Port déjà occupé ? Mappe n'importe quel port hôte libre, par ex. -p 8888:8080, puis ouvre localhost:8888.
  • Multi-arch : tourne nativement sur Intel/AMD (amd64) et sur Apple Silicon / Raspberry Pi 64-bit (arm64).
  • Conserver ton travail : monte un dossier, par ex. -v "$PWD/work:/home/coder/work".
  • Exposer au-delà de localhost ? Définis -e PASSWORD=… (l'authentification est désactivée par défaut pour un usage local).

Binaire pré-compilé

L'installation native la plus rapide. Télécharge l'archive correspondant à ton OS, extrais et place amc dans ton PATH.

🐧 Linux

🍎 macOS

🪟 Windows

🥧 Raspberry Pi (ARM64)

Sur un Raspberry Pi avec un OS 64-bit (uname -maarch64), le one-liner installe la build native linux-arm64. Le 32-bit (armv7l/armv6l) n'est pas supporté — reflashe un OS 64-bit.

sudo apt install -y build-essential libgc-dev libssl-dev curl
curl -fsSL https://raw.githubusercontent.com/amalgame-lang/Amalgame/main/install/install.sh | sh
amc --version

🥧 Débutant sur le Pi ? Le guide pratique Raspberry Pi vous mène de la carte SD vierge jusqu'au clignotement d'une LED, à la lecture d'un bouton et au dialogue avec des capteurs I²C — pas à pas.

Compilation depuis les sources

Si tu veux bootstrap toi-même ou si aucun binaire n'est dispo pour ton OS.

Linux

sudo apt install gcc libgc-dev libcurl4-openssl-dev
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
gcc -O2 -Iruntime snapshot/amc_lib.c -lgc -lm -lcurl -o snapshot/amc
./build_amc.sh
./amc --version

macOS

brew install bdw-gc curl
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
GC_PREFIX=$(brew --prefix bdw-gc)
CURL_PREFIX=$(brew --prefix curl)
gcc -O2 -Iruntime -I"$GC_PREFIX/include" -I"$CURL_PREFIX/include" \
    -L"$GC_PREFIX/lib" -L"$CURL_PREFIX/lib" \
    snapshot/amc_lib.c -lgc -lm -lcurl -o amc
./amc --version

Windows (MSYS2 MINGW64)

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gc mingw-w64-x86_64-curl
git clone https://github.com/amalgame-lang/Amalgame.git && cd Amalgame
gcc -O2 -Iruntime snapshot/amc_lib.c -lgc -lm -lcurl -lws2_32 -o amc.exe
./amc.exe --version

Installer Mosaic (le framework web)

Mosaic est le framework web d'Amalgame — un binaire, N sites, HTTPS/ACME automatique, sessions, auth (Basic/JWT), reverse proxy. Une fois amc en place, il s'installe comme un jeu de packages.

amc package add web net-http tls      # framework + HTTP/1.1 + TLS
amc package add net-proxy             # (optionnel) reverse proxy

Un serveur minimal :

import Amalgame.Web

WebApp.New()
    .Get("/", ctx => HttpResponse.New().Html("<h1>Bonjour Mosaic</h1>"))
    .ServeHttps(443, "/etc/ssl/cert.pem", "/etc/ssl/key.pem")

Référence complète (auth, sessions, CORS/CSRF, rate-limit, fichiers statiques, TLS/ACME, reverse proxy) : la doc Mosaic et la référence de configuration.

Installer Pollen (le bus de workflows)

Pollen est le moteur de workflows P2P décentralisé d'Amalgame — un bus de messages TCP/UDP qui exécute de l'automatisation distribuée sur plusieurs machines, avec un éditeur de workflows visuel. Il s'installe depuis les sources :

curl -sSL https://raw.githubusercontent.com/amalgame-lang/pollen/main/install.sh | bash

Plus dans le dépôt Pollen.

Et après ?

Vérifie l'installation avec amc --version, puis suis le tour pour découvrir le langage.