Daniel Urban
Daniel Urban
@jdegoes Yes, it may be possible with `Promise`. But then the next question is: is `Promise` a primitive? (If not, then implementing it would surely need what's called above `ForeignClass`;...
Okay, but AFAICT, `IORef` still needs `sync`, so it needs `ForeignClass`. BTW, I don't see this as a big problem, but it makes me question this specific layering of typeclasses....
Strangely, the original stacktrace already seems to be incorrect: ```scala package com.example object Bar { def self(x: Any): Bar.type = this def void(): Unit = throw new Exception def main(args:...
Hm, I'm wondering if the `NativePRNGNonBlocking` part is still relevant? I'm trying to find some up to date info on it, and it seems to be solved even on Linux:...
Uhh, `NativePRNGNonBlocking` _also_ seems to have a [lock](https://github.com/openjdk/jdk/blob/16c3d53b1bb60b1c1570731041f564bf13b45098/src/java.base/unix/classes/sun/security/provider/NativePRNG.java#L547)... See also https://bugs.openjdk.org/browse/JDK-8278371.
I thought about that, but it seems like a can of worms (although if someone wants to open it, I definitely won't stop them): - What to do on exotic...
Oh, right, here it's possible to just fall back to `blocking`... that sounds good to me. A possible (but somewhat convoluted, maybe even fragile) third option: 3. When creating the...
Also, there is a JDK built-in `SecureRandom` called `Windows-PRNG`, which uses a Windows API call to get random numbers. Which sounds good, but I could not find any info on...
I'm wondering if a `syncStep`-like construct would make sense here: "run this without rescheduling until you can, then return the rest (if any) in an `F[A]`"?
I don't know... yes, if you want no rescheduling, you probably absolutely need it. So you're probably right.