Results 1 to 9 of 9

Thread: Dart 1.1 Claims Up To 25% Faster JavaScript

  1. #1
    Join Date
    Jan 2007
    Posts
    15,418

    Default Dart 1.1 Claims Up To 25% Faster JavaScript

    Phoronix: Dart 1.1 Claims Up To 25% Faster JavaScript

    Just two months after Google declared Dart production ready with its 1.0 release, Dart 1.1 was released on Thursday and it now claims to be up to 25% faster than its JavaScript performance...

    http://www.phoronix.com/vr.php?view=MTU3Mzk

  2. #2
    Join Date
    Sep 2012
    Posts
    315

    Default

    This is a great job. Getting performance parity with handwritten Javascript
    for more and more workloads means that it becomes a viable alternative
    to Javascript today, even without native Dart support in any of the major
    browsers.

    The only thing that concerns me is how masive the output becomes when
    using mirrors (reflection) which makes AngularDart much bigger than AngularJs
    for no good reason.

  3. #3
    Join Date
    Nov 2012
    Posts
    192

    Default

    25% doesn't seem like much for a completely new language. Not much reason to switch then.

  4. #4
    Join Date
    Sep 2012
    Posts
    315

    Default

    Quote Originally Posted by carewolf View Post
    25% doesn't seem like much for a completely new language. Not much reason to switch then.
    This is about Dart compiled to Javascript compared against handwritten Javascript.
    Native Dart runs much faster.

    However until browser start supporting native Dart there needs to be a way to
    run Dart code, else we could only use it for example apps and stuff, with Dart2JS
    we can write production code with it.

  5. #5
    Join Date
    May 2012
    Posts
    912

    Default

    Afaik even Chrome doesn't support Dart out of the box. But Dart is better than JS hands down.

  6. #6
    Join Date
    Oct 2013
    Location
    Canada
    Posts
    459

    Default

    Quote Originally Posted by carewolf View Post
    25% doesn't seem like much for a completely new language. Not much reason to switch then.
    If you clicked the link before commenting, you'd see that Dart->JavaScript is 25% faster than their previous Dart->JavaScript. You'd also see that the new Dart->JavaScript is now comparable to just plain JavaScript and their native Dart code is twice as fast as JavaScript.

  7. #7
    Join Date
    Oct 2012
    Location
    Washington State
    Posts
    510

    Default

    You don't wait 15 years to move against a product that is over 20 years mature and has the mind share of the globe for client-side library support.

    Google:

    Dart is a new platform
    for scalable web app engineering
    Whatever

    Dart is class based and object oriented, without being dogmatic.
    In short, we want to copy Objective-C/Cocoa but using our own approach and frameworks with C++/Java syntax, sugar coded with traditional

    Objective-c brackets for List literals, as one example.

    So you have abstract C++ class syntax/Java syntax with ObjC mixed syntax. Puke.

    Pick one.

  8. #8
    Join Date
    Dec 2012
    Posts
    202

    Default

    Generated js is 25% faster on Google's own V8 engine. What about the performance comparison with Mozilla's SpiderMonkey?

  9. #9
    Join Date
    Aug 2010
    Posts
    31

    Default asm.js

    Quote Originally Posted by newwen View Post
    Generated js is 25% faster on Google's own V8 engine. What about the performance comparison with Mozilla's SpiderMonkey?
    Sounds to me like asm.js might be a much bigger win. It has demonstrated far, far larger improvements:
    http://kripken.github.io/mloc_emscripten_talk/#/28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •