Well, if you insist on living in a state of sin, at least expose the C/C++
code via CORBA, so you have a little platform independence - you can run the
servlet and C++ code on different platforms if need be, instead of porting
the native code to each new platform.
As for relative speeds, I think that misses the point somewhat. However, I
don't wish to pick that particular scab in this forum - that's what
slashdot.org is for :-)
On Thursday 14 June 2001 02:50, Endre St�lsvik wrote:
> On Wed, 13 Jun 2001, Mark Galbreath wrote:
> | Hmmm....Seems we have yet another example of the shortcomings of C++ in
> | the Internet Age.
> |
> | Why waste your time? You can process anything with Java that you can
> | with C++, and a lot easier. Me thinks you are not very familiar with the
> | Java Foundation Classes. I don't know what you want to do with the user
> | information, but essentially you are going to be parsing text. Java is
> | lightyears ahead of C/C++ for parsing text and processing strings. But
> | if you insist, just have the servlet write the post data to a file and
> | use C++ to read the file (damn, it's been a long time since I used
> | fprint()!).
>
> It's not that bad an idea. C++ is _way_ faster, still.
>
> You approach is probably about the worst way of doing it. Any idea I can
> possibly think of would be faster, except having for example a windows box
> reboot and have the handle program "startup" on restart on every request.
>
> ;-D
>
> JNI is ideal for this.
>
> --
> Mvh,
> Endre
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html