[HN Gopher] Building a shared vision for Async Rust
       ___________________________________________________________________
        
       Building a shared vision for Async Rust
        
       Author : todsacerdoti
       Score  : 94 points
       Date   : 2021-03-18 15:41 UTC (7 hours ago)
        
 (HTM) web link (blog.rust-lang.org)
 (TXT) w3m dump (blog.rust-lang.org)
        
       | pornel wrote:
       | I like the approach that steps back and looks at usage scenarios.
       | Not everything has to be solved by changing the language itself;
       | it may be a matter of better tooling or teaching materials.
       | 
       | For example, the recent "async doesn't work" blog post was
       | centered around confusion between `fn()` pointer and `Fn()`
       | trait, and misuse of temporary `&mut` where `Arc<Mutex>` was
       | required. If the compiler was smart enough to suggest these
       | fixes, then the whole blog post could have been "async works
       | fine, just needed a couple of lines changed as indicated".
        
       | davidhyde wrote:
       | > "the curse of knowledge: the folks working on Async Rust tend
       | to be experts in Async Rust. We've gotten used to the workarounds
       | required to be productive, and we know the little tips and tricks
       | that can get you out of a jam"
       | 
       | I like the format of the github Rustlings repo for exposing
       | common beginner pitfalls and pointing developers in the right
       | direction. For the uninitiated, Rustlings is a repo containing a
       | collection of broken code examples that the developer has to fix
       | along their journey to enlightenment. I feel that it would be
       | beneficial to have an "Advanced Rustlings", say Rusteenager ;),
       | for more advanced topics like tricky borrow checker situations
       | and async rust. These examples would be similar to the PR's
       | mentioned in the blog post but may get better exposure imo.
        
       | claudiojulio wrote:
       | This is bullshit because of this
       | article:[https://theta.eu.org/2021/03/08/async-rust-2.html].
       | Everyone is aware of the problems of async. What we need is
       | solutions and not those stories to distract. We want profound
       | changes.
       | 
       | Automatically translated.
        
         | steveklabnik wrote:
         | This was pretty heavily discussed on the reddit when it was
         | posted:
         | https://www.reddit.com/r/rust/comments/m1t1lk/why_asynchrono...
         | 
         | (And, as linked to in those comments, HN as well)
        
         | dochtman wrote:
         | Actually, the effort that started towards this blog post
         | started weeks ago, easily several weeks before the blog post
         | you're referencing.
        
       ___________________________________________________________________
       (page generated 2021-03-18 23:01 UTC)