Re:Zig: Upcoming Release Postponed Two More Weeks and Lacks ...
by anonymoushn on Wednesday July 19, 2023 @11:41AM
(#36788227)
Zig's async, like Lua's, lets people write libraries that are generic over async-ness by default. "dump my registers and jump to another stack" is also a legitimate move in assembly (though that's now how this implementation actually works).
[ Parent
| on HN ]
Re:Zig: Upcoming Release Postponed Two More Weeks and Lacks ...
by formerly_proven on Wednesday July 19, 2023 @12:03PM
(#36788619)
I understand the technical reasons (caused by cultural reasons) why Python ended up with colored async but man oh man was it a bad choice for a high-overhead language to do that…
Re:Zig: Upcoming Release Postponed Two More Weeks and Lacks ...
by DaiPlusPlus on Wednesday July 19, 2023 @02:24PM
(#36790968)
(you’re referring to this article [1], right?)
What alternative approach would you have preferred Python do? While I’m not a fan of the coloured-function approach either, I can’t think of a better alternative that checks-off the most boxes (Java’s Loom looks interesting but in-a-way it seems too-good-to-be-true to me, while low-cost approaches like Zig’s would introduce too much complexity for novice users and people wanting something that just-works)
[1]: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-...