HACKER Q&A
📣 justavm

Would you choose Dalvik VM to Arduino?


Hi All,

    I developed a Dalvik VM in C from scratch which let you code in Java with lambdas.

 It runs as fast as Arduino UNO/MEGA on a cheaper board with similar power consumption.
Would you use an Arduino UNO like board which can be programmed in Java?

Below is the list of features

* >1M instructions on STM32 based BluePill board(<$3).

* Precise compacting GC. No fragmentation!

* Interrupt support.

* Native C interface generator.

* Platform abstraction layer for HW peripherals.

* Arrays, Float, Switch, Exception, Interface, Multiple inheritance, dynamic and etc.

Any information is appreciated!

Best Regards


  👤 alufers Accepted Answer ✓
Do native Java APIs, when paired with special hardware work on such a solution? For example I think It would be cool to attach an Ethernet NIC to such a board and just use Java's HTTP libraries.

Another aspect is, the size of the binaries, as many of those prototyping devices are not limited by their processing speeds, but the flash size.

What about Kotlin support (I presume it works, since Kotlin is compatible with java).

Cheers.


👤 pietroglyph
Sounds like a cool project!

I prefer C++ to Java, but I think there’s absolutely a niche in the US educational market because the AP Computer Science A test uses Java. It could be pretty nice to have a Java-compatible MCU for the high school students I mentor because that’s the language they know, and it would make some cool hardware projects more accessible.