(no title)
v_iter
|
1 month ago
So, the point of this language is to be able to write code with high productivity, but with the benefit of compiling it to a low level language? Overall it seems like the language repeats what ZIG does, including the C ABI support, manual memory management with additional ergonomics, comptime feature. The biggest difference that comes to mind quickly is that the creator of Zen-C states that it can allow for the productivity of a high level language.
messe|1 month ago
The Zig equivalent of the above comptime block just be:
Notice that there's no code generation step, the value is passed seamlessly from compile time to runtime code.thomasmg|1 month ago
I'm writing my own programming language that tries "Write like a high-level language, run like C.", but it does not have manual memory management. It has reference counting with lightweight borrowing for performance sensitive parts: https://github.com/thomasmueller/bau-lang
jhgb|1 month ago
afreire|1 month ago
johnisgood|1 month ago
the__alchemist|1 month ago
kuon|1 month ago
echelon|1 month ago
pjmlp|1 month ago
forgotpwd16|1 month ago
imtringued|1 month ago
In that sense Zen-C changed too many things at once for no good reason. If it was just C with defer, there would have been an opportunity to include defer in the next release of the C standard.