Myra is a minimal systems programming language that combines readability and simplicity, inspired by Oberon. With just 45 keywords and 9 built-in types, it ensures clean, efficient code that compiles to native executables and can seamlessly integrate with C++. Experience a powerful tool designed for modern programming.
Myra is a minimalistic systems programming language inspired by Oberon, designed for efficient compilation to native executables via C++23. It emphasizes clean and readable code, enabling seamless access to the extensive C/C++ ecosystem. Myra features a streamlined syntax with only 45 keywords and 9 built-in types, promoting simplicity while maintaining the strong structural qualities reminiscent of Pascal.
Myra enables developers to write beautifully structured code. Here's a simple example of a Hello World program:
module exe HelloWorld;
import Console;
begin
Console.PrintLn('Hello from Myra!');
end.
Myra supports various built-in types such as BOOLEAN, CHAR, INTEGER, FLOAT, and STRING. Additionally, features like record inheritance and method binding allow for creating complex data structures with ease.
One of Myra's defining capabilities is its seamless integration with C++. Here’s a brief illustration of how Myra can call C++ functions directly:
module exe CppDemo;
import Console;
#include_header '<cmath>'
#startcpp header
inline int Square(int x) {
return x * x;
}
#endcpp
begin
Console.PrintLn('Square(7) = {}', Square(7));
Console.PrintLn('sqrt(16) = {}', std::sqrt(16.0));
end.
Myra comes with an integrated source-level debugger to help track down issues through breakpoints, local variable inspections, and more:
myra debug
Myra provides a full user experience through clearly defined commands, extensive documentation, and an active community on platforms such as Discord and Reddit. Whether for systems programming or other applications, Myra stands out as a powerful yet simple language that embraces modern programming practices.
Link does not work - 404
Link didn't work for me either -- is your repo public? If it's private, people will get 404s.
I love Oberon btw -- hoping to get a chance to see your project!
Good!
Sign in to comment.