3

I would like to use Dart as scripting lang in my existing Java app. Is it possible to execute Dart code from Java app and if yes what would be the perf penalty for executing Dart script ?

tomaszkubacki
  • 3,181
  • 3
  • 23
  • 36
  • Are you saying Dart on the front end of like a JSP? Or calling Dart from Java code like you can do with Groovy, et al.? – Vidya Jan 26 '14 at 02:47
  • @Vidya I mean calling Dart from backend Java app (I'm using Dropwizard http://www.dropwizard.io/) – tomaszkubacki Jan 26 '14 at 02:58

1 Answers1

3

It might be (technically) possible. But it won't be easy. AFAIK, embedding Dart is a "bleeding edge" activity, and I couldn't anything about embedding in Java.

The Dart runtime is implemented in C, so you have to solve the problem of embedding Dart in classical C code, and then the problem of the C <-> Java.

The best I could find was this: Embedding Dart into application ... which includes links to sources on the first part of the problem.

Community
  • 1
  • 1
Stephen C
  • 698,415
  • 94
  • 811
  • 1,216