Attempting to compile the most Julia code possible into a single binary, without requiring libjulia, via StaticCompiler.jl
// momentum
// why it's here
- Created 4 weeks ago and already shipping
- Built almost entirely by one person
- Health 100/100 with only 7 stars
// how to help
// readme
StaticRuntime
This experimental package attempts to allow the compilation of as much generic Julia code as possible into a single binary, without requiring libjulia, using StaticCompiler.jl (and in turn GPUCompiler.jl), and to a lesser extent StaticTools.jl.
The approach involves (1) liberal use of @device_override to avoid un-StaticCompiler-able code (as in StaticCompiler.jl, but defined again here so as to not pollute the default StaticCompiler method table), (2) custom compiler passes, GPUCompiler params and LLVM IR transformations, to improve inference and avoid some edge cases that cannot be overridden, and (3) a minimal runtime, including a small optional garbage collector (written in pure Julia), linkers, IO handling, and anything else we need to compile into the binary.
The code and documentation in this package is (unlike StaticCompiler and StaticTools) almost entirely LLM-generated, specifically via Claude code, primarily running Sonnet 5.5. Iβm not yet sure how far weβll be able to get, but itβs worth a try.