also Kotlin 1.3.40 plugin for IJ includes the new ...
# arrow
b
also Kotlin 1.3.40 plugin for IJ includes the new type inference engine. Time to see if I can crash the GC!
p
...
open Apply.kt
and then uncomment TupleTest.kt
😂 1
I'm curious but don't have the time to test it myself
s
What's happens there with the current version Arrow has?
p
Apply causes a GC loop
so it grows to maximum memory and then GCs and tries again
TupleTest just freezes IJ IIRC, maybe crashes it?
s
Funny
b
Well... GC is working and I'm running
TupleTest
. Heap tops out at 2GB and has successfully reclaimed heap space several times now
well, compiling in an effort to run
TupleTest
very slow compilation speed
😞 1
p
@Bob Glamm you only give 2GB to IJ? So brave 😄 I have 8 IIRC
b
Actually I have allocated 6, but it appears throughout that entire process IJ only used 2
also sadface on analysis:
Copy code
Error:Kotlin: [Internal Error] org.jetbrains.kotlin.util.KotlinFrontEndException: Exception while analyzing expression at (178,56) in /Users/glammr1/workspace/arrow/modules/core/arrow-extras-extensions/build/generated/source/kaptKotlin/main/extension/arrow/data/extensions/sum/divide/DivideSumInstance.kt
	at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.logOrThrowException(ExpressionTypingVisitorDispatcher.java:241)
	at org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.lambda$getTypeInfo$0(ExpressionTypingVisitorDispatcher.java:212)
	at org.jetbrains.kotlin.util.PerformanceCounter.time(PerformanceCounter.kt:91)
...
oh wait
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
so nvm, it's still broken. I'll see if the new type inference engine helps with day-to-day Kotlin development
😞 1
s
Arrow should be part of Kotlins CI... Pushing the compiler to the limit