happyborg,
@happyborg@fosstodon.org avatar

Async Rust is a Bad Language by Matt Kline.

Very good intro and thought provoking article on #concurrency and #parallelism, and their use in #Rust.

It champions #TonyHoare's #CSP model of concurrency which takes me back. Back to the time I failed to get funding for a start-up to build an #Occam compiler targeting i386. Which was largely a ploy to get the UK government to buy me some neat kit 🤷‍♂️

Anyway, here's the article:
https://bitbashing.io/async-rust.html

#Rustlang #async

argv_minus_one,
@argv_minus_one@mstdn.party avatar

@happyborg

Also, although GC isn't necessarily any slower than heap allocation, heap allocation is slow, and most other languages allocate all of their futures on the heap. #Rust is one of very few languages with unboxed futures.

Is that worth the complexity? I dunno. But it should be kept in mind when discussing async Rust, at any rate.

argv_minus_one,
@argv_minus_one@mstdn.party avatar

@happyborg

GC isn't a silver bullet either, I should note. It has the rather serious problem that it doesn't free non-memory resources (e.g. file handles) in a timely fashion, so you still need some other mechanism to do so, like Java's try-with-resources.

And although GC isn't necessarily any slower than heap allocation, heap allocation is slow, and most other languages with async box all of their futures. Which, again, is slow. #Rust is one of very few languages with unboxed futures.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • provamag3
  • megavids
  • tester
  • lostlight
  • All magazines