News for hackers. Stuff that matters.
Re:Bugs that the Rust compiler catches for you by melissalobos on Thursday May 05, 2022 @07:22PM (#31279448)
https://actix.rs/

Look at the first example. It can be very similar.

Re:Bugs that the Rust compiler catches for you by jay_kyburz on Thursday May 05, 2022 @07:39PM (#31279523)
Haha, I think you might need to have another look at Python.
Re:Bugs that the Rust compiler catches for you by gpm on Thursday May 05, 2022 @08:23PM (#31279759)
Note that their example is something like making a hello world web server using twisted (or whatever the current async framework is) in python...

Strange example, but I suppose making the corresponding python more complex is one way to make them equivalent.

Re:Bugs that the Rust compiler catches for you by code_biologist on Thursday May 05, 2022 @08:54PM (#31279973)
For reference I'd say the "current async framework" is either Starlette [1] (low level) or FastAPI [2] (high level) for web stuff, and trio [3] for more stupidproof general async than twisted. IMHO of course!

[1] https://www.starlette.io/ [2] https://fastapi.tiangolo.com/ [3] https://trio.readthedocs.io/en/stable/

Re:Bugs that the Rust compiler catches for you by gpm on Thursday May 05, 2022 @08:56PM (#31279988)
Thanks, I appreciate it :)