News for hackers. Stuff that matters.
Re:Java's Magic Sauce by jontro on Sunday July 29, 2018 @07:33PM (#17640998)
Did you read the article? The point is that they have done this in java 9 with http://openjdk.java.net/jeps/193
Re:Java's Magic Sauce by sreque on Sunday July 29, 2018 @08:02PM (#17641136)
I read it, thanks. That wasn't the point of the article at all. Also, Variable handles only represent a small part of what unsafe is used for.
Re:Java's Magic Sauce by cogman10 on Sunday July 29, 2018 @10:14PM (#17641581)
Right, and they are just one example of unsafe apis moved into the public jdk.

Oracle took a fairly measured approach here, they saw what was used and made public apis that are either clones of the private ones or that better capture common usage.

That it took so long isn't great, but they are certainly going the right way.

Re:Java's Magic Sauce by didibus on Monday July 30, 2018 @12:01AM (#17641947)
I think OP means, how in C#, you have the unsafe keyword, which restricts unsafe usage to particular unsafe code blocks, and allows any unsafe operation to be contained.
Re:Java's Magic Sauce by _asummers on Sunday July 29, 2018 @10:43PM (#17641690)
From the HN comment guidelines:

> Please don't insinuate that someone hasn't read an article. "Did you even read the article? It mentions that" can be shortened to "The article mentions that."

Re:Java's Magic Sauce by bbeonx on Sunday July 29, 2018 @11:22PM (#17641806)
Yeah, come on man. Did you even read the guidelines? :)
Re:Java's Magic Sauce by jontro on Friday August 03, 2018 @05:56PM (#17683959)
Sorry about that