Search the web
Sign In
New User? Sign Up
lisa-its · XML Internationalization Tag Set
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Localization Directives - Working Example   Message List  
Reply | Forward Message #151 of 191 |
Re: Localization Directives - Working Example

Hello Group/Tim,

>________________________________________________________________________
>
>Message: 2
> Date: 21 Jan 2002 11:26:09 +0000
> From: Tim Foster <tim.foster@...>
>Subject: Re: Localization Directives - Working Example
>
>Hi All,
>
>On Sun, 2002-01-20 at 05:24, John Wm. Wicks wrote:
>
>>Yes but Java has it's own limitations, performance is still it's weakest
>>link. I've used a Java based IDE called Eclipse and it's unacceptably
>>slow on my Pentium 450. Since the primary role of this interface is
>>filtering and parsing I'd hate to see it bogged down by the overhead of
>>a completely Java implementation.
>>
>
>Swing is still the slowest part of java I believe, so comparing a
>heavyweight gui app to a file parsing library isn't fair. Along with
>that, j2se 1.4 brings noticable performance improvements.
>
Heavyweight ?? It's the minimal functional IDE.

>
>See also :
>http://www.javaworld.com/javaworld/jw-02-1998/jw-02-jperf.html
>(this is quite old - things have improved since then)
>
>We're using java for our internal parsing needs, and it's very fast
>indeed. (our localisation filters are implemented using javacc) and
>there's all the gains of using java and a decent compiler compiler : see
>attached BNF generated for us by javacc.
>
But it's always going to be slower than a C++ solution correct or no.
I'm not all that familiar with the javacc or Java for that matter, is
this a native compilation ?? Do you still need JVM ?? If it is native
compilation, i.e. a standalone Win32 executable then what's the
difference between this an a C++ solution. So say Okapi is implemented
as a pure Java solution if I write a native Win32 application in C++ how
do I use the Java filters ?? JNI, RMI, Java IDL. On a Windows platform
we'd use the COM based interface by passing Java altogether since it's
not needed. If say another individual develops a Java UI client they'd
use the Java Okapi API interface, COM would probably drop out of the
picture for a shared library solution.

>
>I would maintain that using components across architectures is easier
>without the overhead of JNI (it is a bit of a pain to program) - and to
>simply implement in plain java. This way, the creator of the component
>doesn't have to worry about which architecture they need to target their
>code to - it just works.
>
Maybe I'm alittle rusty and things may have changed somewhat but you
still have to debug on all platforms correct. My experience with Java in
the past involved writing/rewriting classes because the functionality
across JVM's wasn't consistent. No I wasn't using any MS specific
extensions.

>
>What happens if I want to run the code on an SGI system ? Or MacOS X, or
>(etc. etc.) will the c++ source code for the filters always be available
>and guaranteed to port from system to system ? How many translators have
>compilers installed ? :-)
>
Well C++ can be compiled on all these platforms very nicely. I believe
the porting will be part of the Okapi tasks and the source is freely
available via SourceForge so unless they die out it should be there for
some time. Yves would know more about the "future" of Okapi than I though.

>
>Of couse, you may still want to use COM, in which case, a single JNI
>wrapper for the java classes would be the right approach, but in
>general, JNI accesses should be as few as possible.
>
And mind you I'm not saying that COM itself hasn't been ported to other
platforms, Sun, I think, purchased Chilisoft's ASP implementation of it
and its available for the Linux platform, Groove uses COM and it
supports Linux/Mac/Windows. COM just happens to be how Okapi exposes the
API interface to C++/Windows developers currently, it could just as
easily been exposed as a CORBA interface. You see what we're getting at,
Okapi could expose the API in pure C if need be. If you use a pure Java
implementation somewhere along the line every application that uses the
API has to have Java installed whether they needed Java for the rest of
the application or not.

>
>You may have gathered, this is a somewhat pro-Java stance, but I make no
>apologies for where my loyalties lie - I truely believe this is the way
>things should be.
>
Believe me I really wanted to use the Eclipse platform for an
application suite I'm developing so I don't mind the pro-Java stance I
'm just being realistic about all aspects and from my experience the
"write once, run everywhere" mantra just didn't work out that way. As I
said things may have changed somewhat but I make no apologies for my
past experience(s).

This is an interesting thread, I look forward to your replies...

John




Mon Jan 21, 2002 11:18 pm

john_wicks
Offline Offline
Send Email Send Email

Forward
Message #151 of 191 |
Expand Messages Author Sort by Date

Hello, One of the possible output of ITS is the definition of localization directives as a specific XML namespace, so any XML document can safely be marked up...
Yves Savourel
yves_savourel
Offline Send Email
Jan 17, 2002
9:12 pm

Yves, this message came through empty at my end. Did anyone else get content? (new exercise in content mismanagement?) Bye, Sue Ellen ... From: "Yves Savourel"...
sewright
sellenwright
Offline Send Email
Jan 17, 2002
9:49 pm

... Hi Sue Ellen, It came through correctly to me and it looks fine on the Group page. (http://groups.yahoo.com/group/lisa-its/message/139) Maybe some...
Yves Savourel
yves_savourel
Offline Send Email
Jan 17, 2002
9:56 pm

Hi there, Most interesting Yves - I've read through the Okapi docs and it sounds like a great project. Have you given any thought towards a Java-based version...
Tim Foster
timatsun
Offline Send Email
Jan 18, 2002
12:18 pm

... Hi Tim, Definitely: the aim is to define generic interfaces that could be implemented in any language capable of implementing such interface. Just like SAX...
Yves Savourel
yves_savourel
Offline Send Email
Jan 18, 2002
1:06 pm

Hi Yves, Yep - JNI could help a little, but you'd still be tied you to whatever architecture the COM components are compiled for (win32 - right ?) JNI provides...
Tim Foster
timatsun
Offline Send Email
Jan 18, 2002
2:46 pm

Thanks indeed! This is relevant to several discussions I'm involved in. No idea why it got scalped in transmission -- I rarely have such episodes in this...
sewright
sellenwright
Offline Send Email
Jan 17, 2002
10:50 pm

Hi all, the same thing happened to me as to Sue Ellen, so the problem isn't unique to her machine or service. -Arle...
arle lommel
fenevad@...
Send Email
Jan 18, 2002
12:05 am

Hello Group/Tim, ... Heavyweight ?? It's the minimal functional IDE. ... But it's always going to be slower than a C++ solution correct or no. I'm not all that...
John Wm. Wicks
john_wicks
Offline Send Email
Jan 21, 2002
11:15 pm

Hello Group/Tim, ... Just one other note, according to the docs over at Sun, the J2SE HotSpot VM is only supported on the following platforms.. Solaris...
John Wm. Wicks
john_wicks
Offline Send Email
Jan 22, 2002
8:35 am

Hello Yves/Tim, ... Yves, so should I hold off doing the FilterBaseFactory classes in C++ or will this be part of the C++ wrapper you mentioned or another...
John Wm. Wicks
john_wicks
Offline Send Email
Jan 22, 2002
6:44 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help