News for hackers. Stuff that matters.
Re:Why Discord is switching from Go to Rust by winrid on Tuesday February 04, 2020 @04:57PM (#22241466)
The idea is that that call is still less expensive than going over the wire and MUCH less expensive than having the GC go through that heap now and then.
Re:Why Discord is switching from Go to Rust by stingraycharles on Tuesday February 04, 2020 @05:04PM (#22241532)
Yes sorry I should have elaborated, those Critical JNI calls avoid locking the GC and in general are much more lightweight. This is available for normal JNI devs as well, its just not documented. They were primarily intended for some internal things that Sun needed.

I’m now guessing that this might actually have been those Unsafe classes as an intended use case. It makes total sense and I can see how that will be very fast.