Analysis of Google Dart
An anonymous reader writes "Google's new language landed with a loud thud, causing lots of interesting debates about the best place to stick semicolons... An article [in InfoQ] ... looks at some of the less discussed features. Snapshots seem to bring something like Smalltalk images and allow instant startup of applications (something Java has spent the last 15 years not delivering). Isolates are like OS processes and communicate with message passing — and as the article suggests, can fix the problem of Garbage Collection pauses by splitting up the heap (sounds like Erlang). There's more, mostly about features that remove some dynamic behavior in order to make startup and code analysis easier. Maybe Dart is worth a second look?"
1 == false
Yeah, everything except for true evaluates to false.
Do you even lift?
These aren't the 'roids you're looking for.
I have a little hint for you . . .
You're uglier than all of them.
Oh please,
Java (or more correctly; its user base) has been crying out for some sort of faster startup since the mid 90s. No other problem has done more to keep Java off the desktop that the very slow startup times. If Java applets started as quickly as Flash objects manage to then we would still be seeing Java implemented on major web sites. I could never understand why Java doesn't snapshot and cache a prelinked version of a class the first time it loads, if anything the JVM is getting slower - the demo Java Applets on my website take about as long to start up in 2011 as they did in 2000 but my computer is many times faster.
sheep.horse - does not contain information on sheep or horses.
Did we strike a nerve?
Forgive us if the lack of a promise from Sun/Oracle to implement it didn't stop us from feeling it was necessary for startup times to be quicker than that of a slug crossing a freeway.
You an not wrong, but are missing the point. Java conceded the desktop to other technologies not because it was an inferior language (I find that even the much-maligned Swing produces very nice UIs) but because it took an age to start, making it unacceptable for any kind of in-browser use.
sheep.horse - does not contain information on sheep or horses.
And you'll find that applets are slow because the Java plugin distributed and maintained by Sun/Oracle doesn't use any kind of preloading as far as I can see. Who knows if Dart is better in this regard, but Java is it's own worst enemy when it comes to startup times. It is a shame, because I like almost everything else about it.
sheep.horse - does not contain information on sheep or horses.
Many girls are worth a second look, but each time I try, they're still as ugly as they were...
I can't grasp girl analogies... can you please come with a car one?
Questions raise, answers kill. Raise questions to stay alive.
The startup time is not significantly higher than a large binary application like Firefox or Chrome are.
You need to download some updates. Java 1.2 hasn't been used for a while.
I do not fail; I succeed at finding out what does not work.
Oh please,
Java (or more correctly; its user base) has been crying out for some sort of faster startup since the mid 90s. No other problem has done more to keep Java off the desktop that the very slow startup times. If Java applets started as quickly as Flash objects manage to then we would still be seeing Java implemented on major web sites. I could never understand why Java doesn't snapshot and cache a prelinked version of a class the first time it loads, if anything the JVM is getting slower - the demo Java Applets on my website take about as long to start up in 2011 as they did in 2000 but my computer is many times faster.
Maybe the Java that ships with OS X is specially optimized (I'm joking), but the background of your website takes longer to load and render than any of your applets do.
link
This is fast enough for CLI usage outside of tight loops. For repeated usage, I'll concede you'd be better off finding a way to feed bulk data in rather than small chunks.
echo "class Hello {public static void main(String args[]) {System.out.println(\"Hello World\");}}" > Hello.java && javac Hello.java && time java Hello
Hello World
real 0m0.189s
user 0m0.210s
sys 0m0.033s
I understand Java is generally no speed demon compared to native compiled code, and desktop hard drive performance has almost stood still for ten years, but come on.
I have a *very* hard time believing that Java load times are as big a limiting factor in desktop app production than people make it appear to be.
Xbox Live much, bro?
I just tried Hello World in Groovy and it took almost a whole second (measured with time: 0,7s avg, 0.952s max, 0.668s min) for it to run on my MacBookPro (latest high end 17" model, not ssd).
Perl did it in about 0.007s average (0.011s max, 0.003s min), Python in 0.020s average (0.023s max, 0.017s min).
So in practice it takes a 100 times longer to load with no libraries included, it get worse if you do have dependencies.
Not an issue for a server/deamon app, a real big deal if you need to write a command line tool.
I understand Java is generally no speed demon compared to native compiled code, and desktop hard drive performance has almost stood still for ten years,
If by "stood still" you mean "almost tripled for mechanical drives", then yea, sure, i suppose.
Every few days someone comes by with a new programming language claiming to be the best thing since sliced bread. Nobody every shows a scrap of proof.
If Java applets started as quickly as Flash objects manage to then we would still be seeing Java implemented on major web sites.
First, the Flash run-time is incredibly tiny. It used to be under 1MB, and it's still not all that much bigger. Compare to browsers that need 100MB to display "Hello, World".
Second, Flash can display without loading the entire file. It's an animation format, remember. There are two streams, a timeline of events and a collection of assets (images, etc.) As soon as some timeline data and the assets called out in it have been loaded, play can start. Files are explicitly laid out in time order of use. That was a really good design decision.
Java is just loading and running programs. There's nothing special about the way it starts. First the VM has to load, then the JIT compiler has to do its thing, and then you get to execute something. There's no explicit concept of time, as their is with Flash files.
They are different. Is it surprising for one company to spin out more than one language? For a company of their size and age, Google has actually not invented very many. Compare to Microsoft, Apple, Sun, and Adobe who have each created several.
Your point is valid, but MS, Apple, and Sun were all operating system publishers and creating languages makes sense. Adobe was long a tool maker and their languages were tooly.
Google has become an operating system publisher only relatively recently (Android) and these languages don't target that platform. You could argue ChromeOS is an operating system but really that's just a Linux distro.
Google creating programming languages is sort of like Yahoo or Facebook creating programming languages. In Google's case, I suspect that these creations have little to do with their actual corporate mission and more to do with their wildly undisciplined engineering management.
(That doesn't indicate they're good or bad languages, of course.)
Advice: on VPS providers
No, there wasn't much interest in putting lipstick on Algol-68.
Advice: on VPS providers
Like any other new programming language of the past decade, Dart sounds like a solution to problems I don't have.
Show me something that I can't do in existing, established languages. Or show me something that works considerably easier, faster or better - with the stress on considerably.
Otherwise, no matter what your pitch is, I simply don't need it.
Assorted stuff I do sometimes: Lemuria.org
Google creating programming languages is sort of like Yahoo or Facebook creating programming languages. In Google's case, I suspect that these creations have little to do with their actual corporate mission and more to do with their wildly undisciplined engineering management.
(That doesn't indicate they're good or bad languages, of course.)
It also doesn't indicate that "undisciplined" is bad in any way. A lot of the successful Google projects have come out of their "long leash" attitude towards their coders.
Assorted stuff I do sometimes: Lemuria.org
Say I wanted to write ls in Java. Startup time would be very important to me. Having dived back into Java development recently the bloat is getting me down. Nobody does anything small, except on Android where Dalvik does some of the caching and optimizing instead of the normal Java runtime.
http://michaelsmith.id.au