3 ms·
I reckon you're right. The involvement of Gilad Bracha suggests that V8 plays a big part - probably Google are extending it so that V8 can compile Dart to machi
by alexatkeplar 15y ago
I reckon you're right. The involvement of Gilad Bracha suggests that V8 plays a big part - probably Google are extending it so that V8 can compile Dart to machine code and run it, same as it can JavaScript. This would be cool for server-side apps.
Probably there's a CoffeeScript-style transcompiler too to convert Dart (or a subset?) to JavaScript for execution client-side in non-Chrome browsers (any V8 browser could "speak" Dart directly)...
- nickik 15y agoI think its hard to belive that google would make a client site language that works only on V8. Chrom does not have enough marked share to do something like that. It need to run everywhere. There are two ways you could go about this: - Write a VM in JS where you run Dart/Newspeak on. This could be a Interpreter or to make it fast a Jit that runs ontop of a JS VM. Jit on a Jit has been don before (pypy with the .NET backend is an example (look for the paper on the website its very intressting) - Write a compiler like CoffeeScript or ClojureScript. I think with newspeak gilad when down the VM road as far as I know (don't hold me to that). Maybe the are snicky and work it in a way that it runs anywhere JS runs but build spezial support into V8 to make it faster.
- alexatkeplar 15y agoThe JS VM idea is really interesting - because it frees a language from having to have basically a one-to-one mapping between the new language and JavaScript a la CoffeeScript. So I'm going to update my guess: I reckon Dart will be a tweaked version of Newspeak natively supported by V8 (server and Chrome browser), plus a JavaScript VM for running Dart on non-Chrome browsers. More of a guess, but I imagine it might come with its own node.js-y framework with perhaps some interesting Seaside-style continuation approach and/or Lift-style view-oriented approach...