Show HN: The Mog Programming Language
Mog is a newly introduced statically typed, compiled, and embedded programming language explicitly designed for Large Language Models (LLMs) to write. Its entire specification is compact, fitting within 3,200 tokens, making it easily manageable within an AI's context window. An AI agent can write a Mog program, compile it, and then dynamically load it for use as a plugin, script, or hook. A key feature is its capability-based permissions system, allowing the host to precisely control which functions a Mog program can access, thus ensuring secure execution. Mog compiles directly to native code, offering low-latency execution without interpreter overhead, JIT compilation, or process startup costs. The compiler, written in safe Rust, is auditable for security, providing a robust toolchain for agents to extend their capabilities with self-generated code. Mog is MIT licensed and open for contributions.