I built a scripting language that compiles to self-contained binaries
Hey! I've been building Funxy — a statically typed scripting language. Write scripts, ship native binaries. Write a script, ship a binary import "lib/http" ( httpGet ) import "lib/json" ( jsonDecode ) import "lib/term" ( green , red , table ) response = "https://api.example.com/services" | >> httpGet services = response .body | >> jsonDecode rows = [] for s in services { status = if s .healthy { green ( "●" ) } else { red ( "●" ) } rows = rows ++ [[ s .name , status , s .version ]] } table ([ "Service" , "Status" , "Version" ], rows ) funxy build healthcheck.lang -o healthcheck scp healthcheck prod:~/ ssh prod './healthcheck' That's it. Script → binary. ~25 MB, zero deps on the target. Embed static files with --embed , cross-compile with --host . One-liners funxy -pe '1 + 2 * 3' # 7 echo '{"name":"Alice"}' | funxy -pe 'stdin |>> jsonDecode |> \x -> x.name' # Alice cat data.txt | funxy -lpe 'stringToUpper(stdin)' # per line -e eval, -p print, -l line mode. All stdlib auto-imported, pipe
Continue reading on Dev.to DevOps
Opens in a new tab



