3 ms·
The jai, zig, etc. approach is compile-time metaprogramming; make the compiler available to program, make the build system plugging into the compiler. Then I t
by mjburgess 3y ago
The jai, zig, etc. approach is compile-time metaprogramming; make the compiler available to program, make the build system plugging into the compiler.
Then I think you can do it. The compile-time is "a Wirth" and the runtime is "a Wirth".
You get 95% the benefits of a python, since 95% of the dynamics you want are actually just static transformations of the program.
- 7thaccount 3y agoI don't see how you can get 95% of the benefits of Python by programming in Zig. When I looked into Zig, it was like coding in C. Not as many built-in data structures and you have to manually manage memory and all that. Zig seems like an attempt for a better C.
- mjburgess 3y agofor most applications you dont need gc, you can just have a one-off temporary allocator. you only really need the malloc model, or the gc model, of memory management for long running apps for python-style apps, theyre all die quickly