Show HN: Myra – Oberon-inspired language, transpiles to C++23 via Zig

  • Posted 3 days ago by tinyBigGAMES
  • 4 points
https://github.com/tinyBigGAMES/Myra
Ever dreamed of having your own programming language stripped of all the accumulated complexity? Something minimal and focused, just the essential tools you actually need. Inspired by Oberon, I wanted seamless access to the entire C/C++ ecosystem. No wrapper libraries. No tedious bindings. No friction. Just point it at any C or C++ library and use it. Mix both languages freely in the same source file if you want. For the longest time, it was just a dream. So, I built it.

Myra transpiles to C++23 and compiles to native executables via Zig's bundled clang. It has 45 keywords and 9 built-in types. The core philosophy is "if it's not Myra, it's C++." You can mix in C++ two ways: inline within expressions and statements, call std::cout << "hello", use static_cast<int>(x), invoke raylib or ImGui directly, or use #startcpp / #endcpp blocks for unrestricted C++ like #include directives. No FFI layer, no marshalling.

Ships self-contained: Zig toolchain, LLDB debugger, raylib, and a preconfigured VSCodium. Unzip and it works.

First public alpha. Happy to answer questions about the design, the transpilation approach, or the journey to get here.

0 comments