611
Hexed by async (fed.dyne.org)
you are viewing a single comment's thread
view the rest of the comments
[-] muntedcrocodile@lemm.ee 6 points 2 years ago

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

[-] grandma@sh.itjust.works 9 points 2 years ago

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

[-] muntedcrocodile@lemm.ee 1 points 2 years ago* (last edited 2 years ago)

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

[-] psivchaz@reddthat.com 8 points 2 years 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.

[-] Luvon@beehaw.org 4 points 2 years 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.

[-] Vent@lemm.ee 4 points 2 years 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.

[-] bitfucker@programming.dev 1 points 2 years ago
[-] entropicdrift@lemmy.sdf.org 1 points 2 years ago

TaskGroup in Python is great

[-] GissaMittJobb@lemmy.ml 3 points 2 years ago* (last edited 2 years ago)

Kotlin-style async is pretty neat, ngl.

this post was submitted on 24 Aug 2024
611 points (99.2% liked)

Programmer Humor

43371 readers
1 users here now

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

Rules:

founded 7 years ago
MODERATORS