llamafile is a Mozilla.ai project that packages LLMs into single-file executables by combining llama.cpp with Cosmopolitan Libc, enabling local inference across most operating systems and CPU architectures with no installation required. The project also includes whisperfile (speech-to-text via whisper.cpp) and diffusionfile (image generation via stable-diffusion.cpp). Version 0.10.0 introduced a major build system overhaul to track upstream llama.cpp more closely, adding GPU support (CUDA, ROCm, Metal, Vulkan), an interactive TUI, multimodal input, tool calling, and thinking-mode support.
- The build system uses Cosmopolitan Libc (cosmocc 4.0.2) to produce truly portable binaries in a single file.
Farid Zakaria writes about SELF, a prototype that replaces the ELF executable format with a SQLite database, arguing that ELF is already a database that reimplements many primitives by hand (string interning, indexes, b-tree pages, foreign keys). The prototype stamps "SELF" in SQLite's application_id field, registers binfmt_misc to recognize the magic, and runs a small C interpreter that reads loadable segments from the database, maps them into memory, relocates, and jumps to the entry point. Dynamic linking works either through glibc's rtld-audit interface or a fully SQL-based loader called self-ld.
This repository contains a version of the Netronic TinyBasic interpreter with the Basic IL in a readable and assemblable format. It includes fixes for the Interrupt Service Routine to prevent potential memory corruption issues.