This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scala on embedded devices

4 replies
Eduardo Costa
Joined: 2009-09-16,
User offline. Last seen 42 years 45 weeks ago.

Is it possible/viable to embed scala in mobile devices (like embedded ones)?
I haven't found anything similar on this mailing list... I want a better
solution than "get yourself a Java VM".

Ben Hutchison
Joined: 2009-01-21,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala on embedded devices

On Thu, Sep 17, 2009 at 12:54 AM, Eduardo Costa
wrote:
>
> Is it possible/viable to embed scala in mobile devices (like embedded ones)?
> I haven't found anything similar on this mailing list... I want a better
> solution than "get yourself a Java VM".

Scala is a language and compiler that produces Java bytecode. You
absolutely will need a Java VM to run it.

And further, a fairly powerful JVM. The J2ME JVMs found in mobile
phones cannot run Scala code, basically because of their restricted
java API (eg no reflection) and 1.1 class version format.

-Ben

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: Scala on embedded devices

So what's all that android stuff in Scala's svn for?

2009/9/17 Ben Hutchison :
> On Thu, Sep 17, 2009 at 12:54 AM, Eduardo Costa
> wrote:
>>
>> Is it possible/viable to embed scala in mobile devices (like embedded ones)?
>> I haven't found anything similar on this mailing list... I want a better
>> solution than "get yourself a Java VM".
>
> Scala is a language and compiler that produces Java bytecode. You
> absolutely will need a Java VM to run it.
>
> And further, a fairly powerful JVM. The J2ME JVMs found in mobile
> phones cannot run Scala code, basically because of their restricted
> java API (eg no reflection) and 1.1 class version format.
>
> -Ben
>

Grzegorz Kossakowski
Joined: 2009-01-28,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala on embedded devices

Ricky Clarkson pisze:
> So what's all that android stuff in Scala's svn for?

Android is neither J2ME nor J2SE. Android has its own VM (Dalvik) that can be used to run Java programs after
translating them to Dalvik bytecode.

In principle, anything that runs on JVM should run on Android after translation which is straightforward.

Eduardo Costa
Joined: 2009-09-16,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala on embedded devices

What about the .NET version? I guess it generates MSIL that does not use a
Java runtime...

Ben Hutchison wrote:
>
> On Thu, Sep 17, 2009 at 12:54 AM, Eduardo Costa
> wrote:
>>
>> Is it possible/viable to embed scala in mobile devices (like embedded
>> ones)?
>> I haven't found anything similar on this mailing list... I want a better
>> solution than "get yourself a Java VM".
>
> Scala is a language and compiler that produces Java bytecode. You
> absolutely will need a Java VM to run it.
>
> And further, a fairly powerful JVM. The J2ME JVMs found in mobile
> phones cannot run Scala code, basically because of their restricted
> java API (eg no reflection) and 1.1 class version format.
>
> -Ben
>
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland