blugatch.tube
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jaromil@fed.dyne.org to Programmer Humor@lemmy.ml · 11 个月前

Hexed by async

fed.dyne.org

external-link
message-square
24
link
fedilink
614
external-link

Hexed by async

fed.dyne.org

Jaromil@fed.dyne.org to Programmer Humor@lemmy.ml · 11 个月前
message-square
24
link
fedilink
  • 🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕠𝕕𝕚𝕝𝕖@lemm.ee
    link
    fedilink
    English
    arrow-up
    7
    ·
    11 个月前

    I hate asyncs, but I don’t mind the way Python does it.

    • psivchaz@reddthat.com
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      11 个月前

      I like async but dislike await. I spend entirely too much time on everything I build trying to maximize how much I can do in parallel because I find it tremendously satisfying.

      • Luvon@beehaw.org
        link
        fedilink
        arrow-up
        4
        ·
        11 个月前

        Await is usually there either because the performance doesn’t matter and the legibility is much higher with it, and/or because there are a series of asynchronous actions that depend on each other and await lets you write them as if they are sync because related to each other they are.

      • Vent@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        11 个月前

        You probably already know this, or are talking about another language, but JavaScript is inherently single threaded, so unless you’re running blocking I/O in parallel, you won’t actually see any performance boost. Service workers get their own thread though.

      • bitfucker@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        11 个月前

        Then Promise.all is for you!

        • entropicdrift@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          11 个月前

          TaskGroup in Python is great

    • grandma@sh.itjust.works
      link
      fedilink
      arrow-up
      9
      ·
      11 个月前

      I hate python async with a burning passion but I’ll admit most of it is a consequence of skill issues

      • 🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕠𝕕𝕚𝕝𝕖@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        11 个月前

        What do u hate about it so much? I find it a very intuitive way to do async. Especially with asynchronous loops.

    • GissaMittJobb@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      11 个月前

      Kotlin-style async is pretty neat, ngl.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 109 users / day
  • 765 users / week
  • 2.92K users / month
  • 9.3K users / 6 months
  • 1 local subscriber
  • 37.4K subscribers
  • 1.82K Posts
  • 39.6K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org