News for hackers. Stuff that matters.
Re:Three bugs in the Go MySQL driver by Traubenfuchs on Thursday May 21, 2020 @02:45AM (#23255510)
One consequence of reinventing the wheel (go) is going through the same problems others stumbled over years ago.
Re:Three bugs in the Go MySQL driver by zkirill on Thursday May 21, 2020 @03:00AM (#23255593)
As someone who is currently transitioning from Go to Java/Kotlin I agree with you to an extent. However, I was surprised that I wasn't able to find anything in the Java/Kotlin universe that is comparable to Go's web request context cancellation.
Re:Three bugs in the Go MySQL driver by The_rationalist on Thursday May 21, 2020 @06:04AM (#23256631)
Re:Three bugs in the Go MySQL driver by apta on Thursday May 21, 2020 @06:36AM (#23256824)
Loom will have superior context cancellation and deadline handling than golang. https://cr.openjdk.java.net/~rpressler/loom/loom/sol1_part1....
Re:Three bugs in the Go MySQL driver by Traubenfuchs on Tuesday June 02, 2020 @04:30AM (#23388925)
I didn't read all of it, but I was wondering: In a virtual loom thread, am I allowed to call currentThread().sleep(...); or will it block the system thread? Or is there some magic like currentThread().sleepAndThen(..., ()->{}); ?
Re:Three bugs in the Go MySQL driver by diek on Thursday May 21, 2020 @03:29AM (#23255744)
CompletableFuture is the closest concept in Java, to my knowledge.

java.util.concurrent has a ton of great classes. If you need to do shared memory concurrency, it probably has something there to help you.