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

> Do you also count heap allocations as side effects to be externalized?

I’ve gone back and forth on heap. I admire Zig’s handling of allocation failures, but I’d also like to use Rust’s alloc lib. I’m currently leaning towards allocation and printing to stderr being available under any context.

> Async/await in Rust is just stackless coroutines

Yup, it was actually through Rust’s async that I learned about stackless coroutines. There’s a really fun rust crate [0] that implements effects with Rust’s nightly coroutine feature.

[0]: https://github.com/rosefromthedead/effing-mad



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

Search: