Re: Creating a JavaVM with JNI & Re:JavaBridge
Re: Creating a JavaVM with JNI & Re:JavaBridge
- Subject: Re: Creating a JavaVM with JNI & Re:JavaBridge
- From: Phil <email@hidden>
- Date: Mon, 7 Mar 2005 20:53:20 +1300
On Sun, 6 Mar 2005 17:23:30 -0800, Byron Wright
<email@hidden> wrote:
> I think the question is, what does Java provide you with that Cocoa
> can't?If it's only a few library calls and If it's simple enough to
> rewrite in Cocoa I would do that rather. Perhaps there is a Carbon or
> even a C library out that could provide you with the same
> functionality? There is a pretty big overhead your application will
> have if you have to use the Java Bridge because it has to instantiate
> the JVM also.
Hi Byron,
The library in my case is kxml2. Not for XML parsing (that I can
handle in Cocoa), but kxml2 can encode/decode WBXML messages with
multiple code-pages and SyncML push-model parsing.
If you're unaware, WBXML is basically XML compressed using binary
tokens. Multiple code-pages adds a level of complexity in that the
token mappings change, depending on the document. And the push-model
parsing lets you use it as an enumerator and just call next() (or
similar) to get the next command to process.
All of this happens deep down in the application, so things like
bindings won't go near it. And I wouldn't expect the application
itself to be run for long periods of time (over 30 minutes).
>From what I can see, starting with the Bridge would make it a lot
easier to switch to JNI if things got sticky. Going for JNI first
would be a lot of work to start with, as well as if I had to change
later.
-Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden