https://kotlinlang.org logo
#coroutines
Title
# coroutines
r

Ryan Smith

02/12/2023, 4:47 PM
Ironically the example code from the "Coroutines are light-weight" section of the coroutine basics docs causes an OOM exception on play.kotlinlang.org. Is there a specific place to report such a thing for play.kotlinlang.org? A particular project on YouTrack maybe?
😄 2
t

Timo Gruen

02/13/2023, 7:45 AM
The funny thing is: if you slightly lower the iterations (e.g. to 80_000) it works just fine. Guess they are having very limited machines memory wise
p

phldavies

02/13/2023, 10:20 AM
Looks like only 32MB of heap available
r

Ryan Smith

02/13/2023, 11:09 PM
I can understand why it would have limited memory and it's certainly not a super urgent issue. My thinking for even brining it up is that newcomers who might choose to tinker through the coroutines guide in Kotlin Playground rather than firing up IntelliJ might find it to be a barrier.
l

louiscad

02/14/2023, 10:38 PM
Did any of you report it on kotl.in/issue?
r

Ryan Smith

02/18/2023, 3:17 PM
I have not, this is exactly what I was asking for thank you!
l

louiscad

02/18/2023, 3:20 PM
Link the report here after please, I'll tumb it up 👍🏼
r

Ryan Smith

02/18/2023, 3:20 PM
Thanks, writing it now and I'll link it after!
Went with "Bug" because it was the default. "Performance Problem" seems like it could be appropriate as well, but I figured whoever triages the ticket will correct the issue type if needed.
l

louiscad

02/18/2023, 3:30 PM
It's bug IMO, because it's a snippet presented on the home page.
p

phldavies

02/18/2023, 3:31 PM
It's also presented as an example of how lightweight coroutines are, for the example to fail due to resource usage is certainly ironic.
r

Ryan Smith

02/18/2023, 3:33 PM
Right, and while it's not a huge deal I thought it worth mentioning since it could be a barrier to newcomers who might elect to use Kotlin Playground over firing up IntelliJ while following the coroutines guide.
Which apparently I already said earlier in the thread 🤦 at least I'm consistent I guess
4 Views