I am making a programming language for games, and would like to get some feedback.
It is statically typed, with automatic and manual memory management. Compiles into C.
I am making a programming language for games, and would like to get some feedback.
It is statically typed, with automatic and manual memory management. Compiles into C.
Wow, that’s an ambitious project! I do not question your motives, it’s probably quite fun to design a new language, but what is your motivation? What do you feel is lacking in other languages such as Lua, Zig, Rust, C etc (I do not keep tabs on new languages so there’s probably newer and more hyped languages out there). What are the problems you are solving with Kedr that others fail to solve?
How I see the current situation.
Lua is good while the game is small. Zero build time and hot reload would still be its advantages over Kedr. For bigger games, the type system and performance become more important, and Lua is no longer viable. Teal pushes the boundary slightly.
Zig and Rust have facilities to make low-level programming safer. But game logic is more about high level, which was never a goal for them.
C++ was a proper language for games at first. It is fast and has objects. Natural improvement could be a language with the same strengths, automatic memory management and more safety. Since such language wasn’t available, C# served as a temporary replacement. Temporary, because it has GC and runtime.
That is where Kedr comes in.
Some languages almost fit, like Swift or Nim. But there are risks. For example, what if reference counting ends up taking too much time? In Kedr any type can be switched into manual mode, just for this case, because it is made for games specifically.