Show HN: The Mog Programming Language

AI writes its own plugins; name memes, mod warning, and 'why not Deno or Mojo' vibes

TLDR: Mog is a new, compact language for AI-written plugins that promises speed and tight safety controls. The crowd laughed at the name, argued it should just be TypeScript in Deno, confused it with Mojo, and watched a mod threaten bans over bots—making performance vs. practicality the showdown to watch.

Mog just strutted onto Hacker News claiming it’s a tiny language made for AI to write its own add‑ons—compiled to fast machine code, with strict “only-what-you-allow” permissions, and a Rust toolchain for safety. Translation: bots can write code to extend themselves, and the host keeps them on a leash. That serious pitch met unserious energy immediately. One commenter joked we’ve “brought mogging to programming,” while another saw the “brainrotty” name and assumed “AI slop” before admitting the site owned it—cue a flurry of memes about the slang meaning of “mog” (look it up).

The hottest fight? Deno/TypeScript loyalists vs. Mog’s promise. A top reply asked, in plain terms: if TypeScript in Deno already gives a hardened sandbox, good types, and zero fuss for large language models, what does Mog do better for agents? Others kept mixing it up with Mojo (“How is this different?”), adding to the identity crisis. Then the plot twist: HN’s moderator dropped in with a stern “no AI-generated posting” warning, threatening bans—suddenly the thread felt like a courtroom drama.

Between the name jokes, the Deno challenge, and the mod hammer, Mog still found fans who like its “small spec for bots,” native speed, and strict permissions. But the vibe is clear: the community wants receipts—show why this beats familiar tools, or be mogged by your own memes.

Key Points

  • Mog is a statically typed, compiled, embedded language designed for LLM-authored agent code, with a 3,200-token spec.
  • Agents compile Mog programs and dynamically load them as plugins, scripts, or hooks.
  • The host enforces capability-based permissions, controlling which functions agent-written Mog code can call.
  • Mog compiles to native code, avoiding interpreter overhead and JIT; the compiler is written in safe Rust for auditability.
  • Examples demonstrate agent hooks, async/await with retry logic, f-strings, and native tensor support via a radix-2 FFT.

Hottest takes

"we've brought mogging to the programming world" — ar_lan
"What does Mog offer that's meaningfully superior?" — steve_adams_86
"If you keep running these bots we will ban your main" — dang
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.