Scala on embedded devices

View: New views
5 Messages — Rating Filter:   Alert me  

Scala on embedded devices

by Eduardo Costa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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".

Re: Scala on embedded devices

by Ben Hutchison :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Sep 17, 2009 at 12:54 AM, Eduardo Costa
<eduardo.m.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

Re: Scala on embedded devices

by Ricky Clarkson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

2009/9/17 Ben Hutchison <ben@...>:

> On Thu, Sep 17, 2009 at 12:54 AM, Eduardo Costa
> <eduardo.m.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
Java Programmer, AD Holdings
+44 1565 770804
Skype: ricky_clarkson
Google Talk: ricky.clarkson@...

Re: Scala on embedded devices

by Grzegorz Kossakowski-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

--
Best regards,
Grzegorz Kossakowski

Re: Scala on embedded devices

by Eduardo Costa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
<eduardo.m.costa@gmail.com> 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