3 ms·
That would only work for data known at compile-time...
by 1980phipsi 3y ago
That would only work for data known at compile-time...
- wredue 3y agoAny language that reifies types at compile time should have reasonably similar performance characteristics given similar code. Zig, though, should still end up being easier to make faster simply because it’s not RAII heavy, and doesn’t push you over in to dynamic dispatch whenever it feels like it. The reason I responded to you though, is because comptime is not strictly for performing business logic at comptime. Most comptime uses are for the reification of code.
- insanitybit 3y agoWhat is the connection between RAII and dynamic dispatch?
- wredue 3y agoI don’t believe I implied that there was one? Dynamic dispatch is slow for usually no reason. RAII encourages patterns that are slow.
- insanitybit 3y agoAh I misread :) Apologies