- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala on embedded devices
Wed, 2009-09-16, 15:54
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".
Thu, 2009-09-17, 06:37
#2
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
>
Thu, 2009-09-17, 07:57
#3
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.
Thu, 2009-09-17, 12:17
#4
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
>
>
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