mdedetrich commented on PR #2156:
URL: https://github.com/apache/pekko/pull/2156#issuecomment-3261796596

   > Kotlin's coroutines are fake, even worse than Java 21's virtual threads. I 
added this API quite cautiously. You see, I didn't add toOutputStream to Sink. 
If other libraries had these features, a new user might see that Pekko Stream 
doesn't have this feature and choose another library.
   
   I don't know what you mean by fake, but coroutines are by far the best 
implementation of an async concurrent primitive out of any of the JVM 
languages. Its performance is far higher than Loom as coroutines just compile 
do jump statements in JVM bytecode, it supports cancellation of resources and 
to boot it's also supported on all other kotlin platforms (native/js) with zero 
performance overhead.
   
   Loom on the hand only works on newer JVMs and is slower, the only good thing 
about it is that it uses the same programming model as threads but that is also 
what makes it slow (i.e. it needs to maintain stack traces).
   
   Akka/Pekko actors are ironically faster than Loom as a concurrency primitive 
as you only pass around pure values.
   
   > 
   > It seems you're planning to build a Kotlin-specific DSL for Pekko. While 
that's great, it also presents significant challenges, as it will have to 
compete with Kotlin's Flow API. It's a real challenge to have something that 
others don't have, and to be superior to others.
   
   I am planning to build a kotlin but what I am saying is not specifically 
because of this, it's an issue with Java as a language.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to