Blitzen said:
There is a relatively small, simple text-manipulation library written
in C (called liblouis) that does string manipulation with lots of
conditionals. Someone has written Java bindings for it - if that's the
case, does that mean it will work in Javascript? If not, what all may
be involved in writing Javacript bindings for either a Java or C
library?
What do you mean by that exactly? Unless directly patching the JS
engine and using it in a non-so-natively-browser environment, your
only option is to write an embedded applet for HTML page with some
public methods in it so JavaScript could intercommunicate with it -
wherever JVM would be available which is about 4% worldwide but may be
up to 100% your own office-wide. Even in the last case you don't get
any substantial benefits from using Java because it would be run just
like any other equal rights object's process, say an animagif sequence
frame change on the page. Thread resource management doesn't do any so
good because the max you can get is 100% of those rather humble
resources given to your applet by the OS dispatcher. The failure to
realize that ended up some really cool (S)FTP clients and some really
interesting encryption systems like BouncyCastle. So unless I
misinterpreted your question, please stay server-side and RMI with
JavaScript with the always possible JS-disabled situation fall back.