Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by nrds

4 days ago

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.

2 comments

nrds

Reply

F-W-M  8 hours ago

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

charlieflowers  18 hours ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities