/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Asynchrony is not concurrency
(kristoff.it)
292 points
kristoff_it
| 3 comments |
18 Jul 25 19:21 UTC
|
HN request time: 0.001s
|
source
Show context
raluk
◴[
18 Jul 25 20:46 UTC
]
No.
44609651
[source]
▶
>>44608754 (OP)
#
One thing that most languages are lacking is expressing lazy return values. -> await f1() + await f2() and to express this concurently requres manually handing of futures.
replies(3):
>>44609880
#
>>44610056
#
>>44610348
#
sedatk
◴[
18 Jul 25 21:11 UTC
]
No.
44609880
[source]
▶
>>44609651
#
Which languages do have such a thing?
replies(2):
>>44610179
#
>>44610709
#
steveklabnik
◴[
18 Jul 25 22:57 UTC
]
No.
44610709
[source]
▶
>>44609880
#
Rust does this, if you don’t call await on them. You can then await on the join of both.
replies(1):
>>44610738
#
sedatk
◴[
18 Jul 25 23:01 UTC
]
No.
44610738
[source]
▶
>>44610709
#
Is the "join" syntax part of the language?
replies(2):
>>44611332
#
>>44613040
#
1.
tcfhgj
◴[
19 Jul 25 00:23 UTC
]
No.
44611332
[source]
▶
>>44610738
#
no
https://doc.rust-lang.org/std/future/macro.join.html
replies(1):
>>44612037
#
ID:
GO
2.
sedatk
◴[
19 Jul 25 02:30 UTC
]
No.
44612037
[source]
▶
>>44611332 (TP)
#
Then it doesn’t apply in this case.
replies(1):
>>44615353
#
3.
tcfhgj
◴[
19 Jul 25 13:34 UTC
]
No.
44615353
[source]
▶
>>44612037
#
why?
↑