public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Kawa Android Examples (including OpenGL!)
@ 2015-03-30  0:36 F. Rafael Leon
  0 siblings, 0 replies; only message in thread
From: F. Rafael Leon @ 2015-03-30  0:36 UTC (permalink / raw)
  To: kawa

I have developed some examples of using Kawa as a scripting language on Android.

The github project is here:

https://github.com/rafleon/KawaDroid

There are 9 topics so far. More examples will be added soon.

By using Kawa's bytecode compiler and the on-the-fly dexer and loader,
 callback classes are created as needed.

Almost all the code is interpreted, with callback semantics which are
nostalgic of emacs hooks, somewhat similar to SAM-conversion. The GPS
and OpenGL examples demonstrate the concept.
SAM-conversion would be more elegant, but many abstract callback
classes have multiple methods.

The basic OpenGL renderer example runs smoothly on my device while interpreted.

With Java, Scheme, Kawa, Android, Android Studio and Gradle mixed
together, there are many things which could possibly go wrong. That
said, it works for me.

Please contact me with any questions or comments.

Happy Hacking!

    -Rafael

P.S. Telnetting to a cellphone and scripting OpenGL in a REPL is not
an experience that can be easily described. You really should try it
yourself.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-30  0:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30  0:36 Kawa Android Examples (including OpenGL!) F. Rafael Leon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).