This is a very hard maybe impossible task for me, but I still be interested in.
I’m a java programmer, and I found the dart-lang is interesting. What should I learn if I want to implement it on jvm? like ruby on jvm(jruby)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The JVM spec, JVM bytecodes, how the JVM does OOP.
There aren’t a lot of recent references to JVM/bytecode hacking, but there are older references:
Two I’ve used are:
Looking at how other languages approach code generation is helpful, if overwhelming. The simpler the language is, in general, the easier it is to learn from it. For example, loop is a newer, smaller JVM language–it’s also a different paradigm, so may or may not be directly helpful.
Obviously normal lexing and parsing will be required to process the source files, but Dart apparently uses ANTLR for its grammar. Depending on how similar the Dart VM is to the JVM you may be able to gain a lot of knowledge by digesting the Dart implementation itself.