On Wed, Jan 18, 2012 at 1:50 AM, ushac <[email protected]> wrote:

> I haven't tried C# unsafe, but it definitely looks better than JNI. In
> fact, Oracle has openly admitted that JNI was intentionally designed
> to be hard to use in order to push people to write pure Java.
>

Yeah, I don't buy that, it sounds a lot like post rationalization to me.

First, JNI is pretty straightforward to use and the API is pretty easy.

Second, JNI has been slow for a very long time (or to be more precise,
what's slow is crossing the boundary between Java and C, and it's no longer
as true today as it was then) but I very much doubt it was by design. I
think Sun simply observed they couldn't make it fast and decided to claim
that it was intentional, which went along with their message of trying to
encourage people to use Java.

-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to