"Hello World" in Dart, compiled to JavaScript
131–140 of 162 posts
Re: "Hello World" in Dart, compiled to JavaScript
#132Funny. But to be fair, a Hello World in C compiles to a 27k binary. Yeah yeah, optimize this, leave out that and you can get it smaller. Still doesn't change the fact that Hello World is not the target use-case for either C or Dart. Dart is intended for very large applications (compared to JS), so the additional weight for includes isn't that big of a deal. It also doesn't change the fact that Dart sucks. For other r…
Re: "Hello World" in Dart, compiled to JavaScript
#133This is called "a runtime". A bunch of things that have to be loaded on the target machine for use by a compiled program. Just about every compiler works this way, whether the output is machine code or JavaScript. It is possible to not emit or load the parts of the runtime which will not be used by a given program, but that's difficult and in many cases even impossible. I am not a web programmer, and I don't use JS a…
Re: "Hello World" in Dart, compiled to JavaScript
#134Re: "Hello World" in Dart, compiled to JavaScript
#135Re: "Hello World" in Dart, compiled to JavaScript
#136So the joke is that a prototype of a whole separate language has to include its runtime in its cross-compiled output? Did people... think this wouldn't be the case? Do they think that Javascript is not thousands of lines of C/C++ lurking in your browser? Good joke guys, but I don't think you realize which way the punchline is pointing... It sort of amazes me that people are being so hard on Dart, given that they shou…
C/C++ compiles to native code. Besides, how is that justification to add even more layers?
Re: "Hello World" in Dart, compiled to JavaScript
#137As me1000 (Randy Luecke) says Dart is not meant for hello world. If you run this through closure-compiler it's reduced to 2000 lines which is nothing next to Underscore, jQuery, Dojo, etc. We all know the benefits of offloading code to a well known and well tested library or framework, especially if you're writing an app that is thousands of lines anyway. How is this contentious at the end of 2011 unless you're just…
With the halt in processor speed increases and the move to mobile devices, performance and efficiency have become important again, actually.
Re: "Hello World" in Dart, compiled to JavaScript
#138Earlier quoted context omitted.
I'll take the alleged mob mentality over Google elitism any day of the week. Google can try to move the web any direction it feels is appropriate - it's Google's time, it's Google's money - but let's be clear: JavaScript is not as deficient as you might think it is, and the JavaScript community is not dumb to expect more than what Dart has offered so far (in an admittedly short span of time). "There are just two kind…
"Probably over-quoted these days, but I think we all know where JavaScript falls." Well, if the distinction is between the ones nobody uses and the one "everybody complains about", then we also know where Dart falls...
Re: "Hello World" in Dart, compiled to JavaScript
#139It's official now: Dart is meant as a practical joke to show why Javascript needs to be replaced by something sane like a bytecode VM. Either that, or I don't want to surf this internet anymore.