Since our recent release 1.1.4 had some changes in
the programming API and we updated all our deployment
examples, here it comes:
<shameless-selfpromotion>
Greatly simplified web and mobile Java coding for Prolog.
We updated our deployment guide to conform to our new programming API
for Jekejeke Prolog. In this new programming API the application
programmer can directly use strings, there is no need to wrap them in a
class TermAtom. But the new programming API for Jekejeke Prolog has also
further goodies. To sum up the following changes are available:
Interactor Interface:
The new programming API goes with Java iterator inspired methods.
The class Knowledge base has a method iterable() which will return an
Interpreter. The class Interpreter has a method iterator() which will
return a CallIn. The new programming API now also allows multiple
iterators at the same time without spawning a thread.
Class Path Loading:
The preferred way to load a Prolog text from class path has
changed. We abandoned the path/1 constructor and now go exclusively with
the library/1 constructor when a Prolog text should be loaded from the
class path. When using the library/1 constructor it is not necessary to
mention the extension (.p, .pl or .pro).
Lightweight Atomics:
We wastely simplified the code when using atomics in the
programming API. Prolog atoms/functors, Prolog numbers and Prolog
references can now be directly passed and returned by Java strings, Java
numbers and Java classes. So creating a compound =< becomes a one liner
TermCompound("=<", Integer.valueOf(agefrom), vars[COLUMN_AGE]).
When developing mobile applications for Android with Jekejeke Prolog we
recommend using the HAXM emulator. On the windows platform this emulator
has the fastest start-up time and also the most fluid execution. We even
have the impression that the HAXM emulator is faster that many mobile
devices and more or less on par with the Java JVM. For the HAXM emulator
VT has to be enabled in Bios.
Last but not least we have updated the example android manifest XML. The
changes in the android manifest and the use of the lasted Android SDK to
compile the mobile example results in a more modern look & feel when we
run the application. The mobile application is a little bit unorthodox
since we create all widgets on the fly. Nevertheless the basic styling
of the widgets depends on android manifest and SDK.
IntelĀ® Hardware Accelerated Execution Manager
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
Jekejeke Prolog Mobile Deployment Example:
http://www.jekejeke.ch/idatab/doclet/prod/en/docs/05_run/15_stdy/08_deploy/10_mobile/package.html
</shameless-selfpromotion>
endlessboo...@gmail.com schrieb: