|
|
|
|
|
by Spex_guy
1650 days ago
|
|
It's true that language specific IRs are more powerful, but that isn't the problem in this example. Interfaces aren't part of Zig at the language level, nor are object lifetimes over which to make the vtables immutable. Having a memory model where memory is not innately typed is what makes this problem difficult to optimize, the IR has very little to do with it. |
|
This is intriguing. Do you have examples of systems where memory is typed? Or some ideas?