Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> First things first, Zig does compile async fns to a state machine: https://github.com/ziglang/zig/issues/23446

Maybe I'm missing something, but that's still a proposal, which also assumes an implementation for the other proposal you linked and that also doesn't exist yet.

For now I would refrain from commenting on non-existing functionality.

> I still think sans-io at the language level might be the future, but this isn't a complete solution.

I'm not sure what about this is really at the language level (only stackless coroutines appear to require language level support, and it's still unclear if it's really possible to implement them). However I do agree that a sans-io, or at least dependency injection for I/O is a great improvement on the library side, and it's something I'd like to see in Rust too.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: