• @vext01
    link
    English
    76 months ago

    Exactly.

    Also every time I’ve used async stuff, I’ve pined for proper threads. Continuation spaghetti isn’t my bag.

    • @kunaltyagi@programming.dev
      link
      fedilink
      English
      36 months ago

      Which language? Usually there’s a thread pool where multiple tasks are run in parallel. CPython is a special case due to gil, but we have pypy which has actual parallelism

      • @vext01
        link
        English
        16 months ago

        I’ve only ever used it in those lua microcontrollers and in Rust with the async keyword.

        In lua I doubt they use proper threading due to the GIL. Rust probably can do async with threads, but it just wasn’t fun to work with.

        • @kunaltyagi@programming.dev
          link
          fedilink
          English
          16 months ago

          Tokio has support for multiple threaded async in rust. As for micro controller, I don’t think you can have multiple threads in flight anyways, so that’s the best you’ll get