[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-java
Subject:    Re: [press@apache.org: PRESS RELEASE: ASF Reaches Agreement with
From:       Anthony Green <green () redhat ! com>
Date:       2002-03-30 13:55:47
[Download RAW message or body]

On Fri, 2002-03-29 at 16:21, Bill Huey wrote:
> Last time I looked, I didn't think that the Boehm GC was terribly
> modern and support either generational or incremental collection.:

Well, it's a conservative collector (and does support incremental
collection).  We currently require the use of a conservative collector.

> > Yes.  We also have a unique, and much faster native code interface
> > called CNI if you can afford to lose portability.
> 
> At what price ? 

Portability.

> The JNI layer is heavy weight for a reason. And that's
> to provide direct access directly invoke methods so that stuff like
> RMI, etc... can happen in terms of the JVM itself so that it's transparent
> to runtime typing system.

The JNI layer is heavy weight because it's designed to support multiple
implementation schemes.  While we do support JNI just fine, CNI is
specifically tailored for use with gcj and g++.  We have a program,
gcjh, which is somewhat like javah in that it creates C headers from
Java code.  However, if you're using CNI, it will create C++ headers for
those Java classes. They look almost identical to the Java classes.  You
simply implement your native methods in natural C++.  You can directly
manipulate data members, call other methods with zero overhead, etc. 
It's quite nice.  But if you want portability, you can still use JNI.

> What about class reflection ?

Yes, that all works, including method invocation.

AG



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic