GloatHub
Skip to content
Initializing search
gloathub/gloat
Demo
REPL
Documentation
Examples
Blog
Projects
GloatHub
Read all about me!
Gloat compiles Clojure & YAMLScript to Go code, native binaries and Wasm
The Compilation Pipeline¶
.ys β<br>.clj β<br>.glj β<br>.go β<br>binary/wasm
Gloat takes your Clojure or YAMLScript source code and compiles it<br>through multiple stages to produce standalone executables, WebAssembly modules,<br>or shared libraries; for 20+ OS/Architecture combinations.
Each intermediate format can be output for inspection or further processing.
Key Features¶
π<br>Zero Dependencies
All tools (Go, Glojure, YAMLScript, Babashka, etc) auto-install on first<br>use.<br>No manual setup required.
π<br>Cross-Compile
Build for Linux, macOS, Windows, FreeBSD, and more.<br>Multiple architectures: amd64, arm64, 386.
πΈοΈ<br>WebAssembly
Compile to Wasm for browser or WASI environments.<br>Run your code anywhere.
π<br>Shared Libraries
Create .so/.dylib/.dll files with C headers.<br>Integrate with nearly any programming language via FFI.
π<br>Transparent Pipeline
Output any intermediate format (Clojure, Glojure, Go).<br>Understand and debug every step.
π¦<br>Portable Builds
Generate standalone Go project directories.<br>Build anywhere with just Make.
Quick Example¶
# Compile to native binary<br>gloat hello.ys
# Cross-compile for Windows<br>gloat app.clj -o app.exe -p windows/amd64
# Create WebAssembly module<br>gloat program.ys -o program.wasm
# Output intermediate formats<br>gloat code.ys -t clj # See generated Clojure<br>gloat code.ys -t glj # See generated Glojure<br>gloat code.ys -t go # See generated Go
# Create a Go build directory<br>gloat code.ys -o code/<br>make -C code/ build # Compile to binary
Get Started¶
Ready to compile your Clojure or YAMLScript code?
Try the Demo<br>Installation Guide<br>See Examples
Created by Ingy dΓΆt Net
Back to top