Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala and Java Real-Time System [closed]

Just wondering if anybody has run Scala app or web-app on Java Real-Time system?

I assume because scala is bytecode compatible with regular JVM, then it should not take much effort to run it on a Real Time JVM such as Sun Java Real-Time System ?

Edit: As per Sun Java Realtime System on VirtualMachine / cloud, I managed to run Scala's Lift framework using Sun Java Realtime system on SuseLinuxEnterprise Realtime Extension on top of VMWare Workstation 6.5

The web-app will not be behaving as a real-time (as it runs on VMWare), but it's a start.

like image 731
Lydon Ch Avatar asked Mar 31 '10 17:03

Lydon Ch


People also ask

Is Scala fully interoperable with Java?

Scala source code compiles to Java bytecode, so it can execute on any JVM. It also provides complete interoperability with Java, and hence, we can reference Java from Scala and vice versa with ease.

Is Scala still used?

Before the luxurious, full-featured ecosystems and programming languages of today, things like Data Science used to be significantly different. One language that has been used a lot in the past and is still used today is Scala.

Can I use any Java library with Scala?

While any Java library can be used in Scala exactly as it would be in Java, for libraries involving futures or collections, we really want to break free of the Java APIs and be able to use Scala futures and collections. For this, Scala includes standard libraries that provide the necessary conversions.

Does Scala run on Java?

Scala runs on the Java platform (Java virtual machine) and is compatible with existing Java programs.


2 Answers

Per this sun.com FAQ entry, all J2SE applications are supposedly compatible with the Java RTS. The important part there is where it says that all RTSJ implementations must pass the Java TCK to be considered compatible.

like image 182
Max A. Avatar answered Sep 23 '22 07:09

Max A.


Scala runs on JamaicaVM, a clean room implementation of the Java runtime environment with a static compiler and a fully deterministic garbage collector.

like image 22
James Hunt Avatar answered Sep 24 '22 07:09

James Hunt