Gloat compiles Clojure and YAMLScript to Go code, native binaries and WASM

adityaathalye1 pts0 comments

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&para;

πŸš€<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&para;

# 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&para;

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

gloat code clojure compile yamlscript wasm

Related Articles