logoalt Hacker News

nrdslast Wednesday at 4:53 PM2 repliesview on HN

Zig is just doing vtable-based effect programming. This is the way to go for far more than async, but it also needs aggressive compiler optimization to avoid actual runtime dispatch.


Replies

F-W-Mtoday at 4:56 AM

I know what a vtable is, but what is vtable-based effect programming?

charlieflowersyesterday at 7:01 PM

Can you monomorphize the injected effect handlers using comptime, for io and allocators (and potentially more)?