Android

2 views
Skip to first unread message

Sy

unread,
Jul 19, 2009, 2:22:05 AM7/19/09
to CAL Language Discussion
Hi all,

I just learned about this language! Is it possible at all, or is there
any attempt to bring CAL to Google Android platform? I know Android
uses its own Dalvik VM instead of JVM, but Scala, Jruby, Jython, etc
all have some
support for it.

Sy

Tom Davies

unread,
Jul 19, 2009, 4:15:04 AM7/19/09
to CAL Language Discussion


On Jul 19, 4:22 pm, Sy <mapobri...@gmail.com> wrote:
> Is it possible at all, or is there
> any attempt to bring CAL to Google Android platform?

Informally speaking, there are two levels of CAL support -- full
support means being able to compile CAL and run the REPL (known as
ICE). This isn't possible on (e.g.) Google App Engine, as AppEngine's
security manager doesn't allow some class loader related operation
required by CAL.

You can compile any CAL module to a jar file where each public
function is a static method on a class. Calling these methods requires
a smaller part of the CAL runtime, and that works fine on Google
AppEngine.

From reading the Wikipedia page on Dalvik, I think CAL would run on it
-- as long as Dalvik supports enough of the standard J2SE library.

I've just started downloading the Android SDK, but whether I actually
find the time to experiment is another question!

Tom

Tom Davies

unread,
Jul 20, 2009, 11:08:02 PM7/20/09
to CAL Language Discussion
I've successfully run a trivial CAL function on Android -- I will post
more details when I've done something less trivial.

Sung Yoon

unread,
Jul 21, 2009, 12:26:10 AM7/21/09
to cal_la...@googlegroups.com
Interesting, keep us posted!
The links are the most promising efforts I know to bring FP to mobile
devices.

www.haskell.org/haskellwiki/IPhone

www.ibm.com/developerworks/opensource/library/os-eclipse-scala/index.html

Tom Davies

unread,
Jul 27, 2009, 10:00:03 AM7/27/09
to CAL Language Discussion
Reply all
Reply to author
Forward
0 new messages