ldionne/dyno
View on GitHub ↗ ★ 1,047 C++
Runtime polymorphism done right
4 mentions on Hacker News by 4 people: 2 stories, 2 comments · first 2020-09-28 · latest 2026-09-06
20082026
-
Ah. Dyno ( https://github.com/ldionne/dyno ) is good at this stuff. If you have types Base, Child1, Child2, you can just return a Dyno object that can be any of these, expressed as a tagged union and not a Box-equivalent, and then do…
comment by quotemstr · 2026-09-06 · in Visualizing Rust's Vtables: How dyn Trait Works In Memory -
▲ 3
Dyno: Runtime Polymorphism Done Rightstory by davikr · 2022-08-19 · 0 comments
-
▲ 2
Dyno: Runtime Polymorphism Done Rightstory by aw1621107 · 2020-10-13 · 0 comments
-
…is still very much a WIP :) I guess I should also mention my inspiration, the C++ dyno library ( https://github.com/ldionne/dyno ) I don't really see how this is relevant to typeclasses though ^^
comment by alexnask · 2020-09-28 · in Zig's New Relationship with LLVM