Re:Zig, parser combinators, and why they're awesome
by lelanthran on Thursday March 11, 2021 @01:34PM
(#26427328)
Thanks, that's a good answer.
> For example, the copy ellision thing is something that required deliberate implementation; it doesn't just come for free if you're naively emitting C.
I don't know what copy elision is. Can you explain that too?
Re:Zig, parser combinators, and why they're awesome
by lhorie on Thursday March 11, 2021 @03:15PM
(#26428482)
You can read more about it here: https://github.com/ziglang/zig/issues/2765
Zig uses LLVM under the hood so it does benefit from LLVM upgrades. Also, there's devils in the details. For example, the copy ellision thing is something that required deliberate implementation; it doesn't just come for free if you're naively emitting C.