News for hackers. Stuff that matters.
Re:I Believe Zig Has Function Colors by ketralnis on Saturday April 09, 2022 @10:31AM (#30968356)
I think the x87 status/config registers you’re alluding to are a great example of power to the compiler that function colouring can potentially grant. “De-colouring” the function requires gating around preserving these registers but within that colour/monad there’s no need to preserve them. That’s an upside, not a downside
Re:I Believe Zig Has Function Colors by simulate-me on Saturday April 09, 2022 @02:50PM (#30970841)
The CPU can do this at runtime and will likely do a much better job than the compiler.