Personal Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jaromil@fed.dyne.org to Programmer Humor@lemmy.ml · před 1 rokem

Hexed by async

fed.dyne.org

external-link
message-square
24
link
fedilink
619
external-link

Hexed by async

fed.dyne.org

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

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

    • psivchaz@reddthat.com
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      před 1 rokem

      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
        ·
        před 1 rokem

        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
        ·
        před 1 rokem

        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
        ·
        před 1 rokem

        Then Promise.all is for you!

        • entropicdrift@lemmy.sdf.org
          link
          fedilink
          arrow-up
          1
          ·
          před 1 rokem

          TaskGroup in Python is great

    • grandma@sh.itjust.works
      link
      fedilink
      arrow-up
      9
      ·
      před 1 rokem

      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
        před 1 rokem

        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
      před 1 rokem

      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.

  • 126 users / day
  • 857 users / week
  • 3.66K users / month
  • 8.86K users / 6 months
  • 1 local subscriber
  • 38K subscribers
  • 1.68K Posts
  • 28.5K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org