okr765
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jaromil@fed.dyne.org to Programmer Humor@lemmy.ml · 9 months ago

Hexed by async

fed.dyne.org

message-square
25
fedilink
613

Hexed by async

fed.dyne.org

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

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

    • psivchaz@reddthat.com
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      9 months ago

      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.

      • Vent@lemm.ee
        link
        fedilink
        arrow-up
        4
        ·
        9 months ago

        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.

      • Luvon@beehaw.org
        link
        fedilink
        arrow-up
        4
        ·
        9 months ago

        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.

      • bitfucker@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        Then Promise.all is for you!

        • entropicdrift@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          9 months ago

          TaskGroup in Python is great

    • grandma@sh.itjust.works
      link
      fedilink
      arrow-up
      9
      ·
      9 months ago

      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
        9 months ago

        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
      9 months ago

      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: !programmerhumor@lemmy.ml

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.

  • 91 users / day
  • 522 users / week
  • 1.57K users / month
  • 10.1K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.18K Posts
  • 16.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org