On 6 February 2014 08:58, Francis Tyers <[email protected]> wrote:
> El dj 06 de 02 de 2014 a les 00:31 +0100, en/na Mikel Artetxe va
> escriure:
> > 2.- Try to use the existing code of CG and HFST in Android through the
> > NDK.
>
> Moreover, it would only serve for Android and not for Desktop (so no
> > Apertium-Caffeine, Apertium-OmegaT etc.).
>
Why would that be Android specific? The API would be the same across
platforms.
I have bundled C/C++ binaries with Java code across Windows, Linux, OS X,
without problems. It's just a matter of making a static binary or library
for the target platform.
> > 3.- Port CG and HFST to Java (it seems like the latter is already
> > done, right?). The advantages are clear, and the only disadvantage
> > would be having to actually do (and maintain) it.
>
> The question is CG. There is a C library for vislcg, and as far as I
> know the code is very portable, and I think it has been used inside Java
> before. I think writing a runtime for it would be too much work for a
> GSOC project, but I think, given some effort it could be included and in
> a way that doesn't require calling a C binary directly.
The way I see it, there is no reason to create new low-level Java
libraries. It is a dead or dying platform, and good riddance. Awful
language to work with, with over-designed interfaces and horrible
performance. And it's not even that portable! There's a reason Java's
tagline was twisted to "write once, debug everywhere". </tangent>
Bundling the CG-3 C/C++ library with a Java application has been done, so
we know that works. If better APIs are needed to make it easier, I can add
those. Maintaining a 2nd implementation in Java would be very expensive or
simply lag behind by years.
As for getting CG-3 onto iOS or Android, from what I can see it should be
buildable as-is. The only runtime dependency is ICU, which is buildable for
iOS/Android and can be trimmed to only include the necessary CLDR data. It
would also be not be much work to exchange the ICU dependency for PCRE or
Qt5.
-- Tino Didriksen
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff