/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Asynchrony is not concurrency
(kristoff.it)
292 points
kristoff_it
| 2 comments |
18 Jul 25 19:21 UTC
|
HN request time: 0.535s
|
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
#
1.
Twey
◴[
18 Jul 25 21:47 UTC
]
No.
44610179
[source]
▶
>>44609880
#
I suppose Haskell does, as `(+) <$> f1 <*> f2`.
replies(1):
>>44612756
#
ID:
GO
2.
raluk
◴[
19 Jul 25 05:12 UTC
]
No.
44612756
[source]
▶
>>44610179 (TP)
#
In there is also ApplicativeDo that works nicely with this.
do x <- f1 y <- f2 return $ x + y
this is evaluated as applicative in same way.
↑