Comment on Why are so many new programming languages being developed?
insomniac_lemon@lemmy.cafe 1 week ago
The interop languages (things that compile to C/C++/JS) can break the typical dilemma of inefficient-but-easy (interpreted) vs. difficult-but-fast (compiled, required low-level). Difference being lots of syntax options (Syntactic sugar, UFCS) and the compiler able to handle low-level stuff combined with leaning on a library (be it the standard library, Godot/Raylib bindings, or some fantasy console like WASM-4) it can look/feel like scripting, aside from handling types which is a safety/performance thing anyhow.
At least that is my experience with Nim-lang, which makes much more sense to me than other newer languages (particularly ones with a higher learning curve). Some of that might just be preference though, like how Zig has C-like syntax and Nim uses whitespace.
A specific example of flexibility, Nim has a subset called nimscript that can be used for interpreted code. This is what’s used for a Godot project called Enu that has in-game scripting (simple DSL, hot-code reloading) for block placement, entity behavior, and color usage.
crunchpaste@lemmy.dbzer0.com 1 week ago
Nice to see nim mentioned. Quite like it as in principle but I thought it was on life support.