Live data from Hacker News

Announcing Dart 2 Stable and the Dart Web Platform

medium.com

151–160 of 259 posts

Re: Announcing Dart 2 Stable and the Dart Web Platform

#151
post #99

Earlier quoted context omitted.

> I think mostly because they were bit too hard by IE doing the exact same thing just a few years before. It's pretty simple, in my view: JS developers were happy with the language and didn't want a browser vendor trying to replace it. Remember that it was announced around the time that the new ES6 ("Harmony") features were generating a lot of excitement about the future of JS.

I think Dart started internal development around the same time CoffeeScript gained major popularity and brought attention to JS's desperate need to evolve, but they released at a bad time: when JS finally did start to evolve (as Harmony) which was a reaction to CoffeeScript in the first place. So CoffeeScript served its purpose of pushing JS forward, and most other compile-to-JS languages had no more purpose. I say m…

If Google had paved some cowpaths:

- CoffeeScript was hugely popular at the time - it was even mandatory at GitHub to make new applications in CS not JS

- Typescript was immediately well recieved. JS folk liked optional typing.

- Ruby was popular amongst the web community

Google would have done a lot better than making a new road and wondering why there's nobody on it.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#152

Earlier quoted context omitted.

Although it's not a guarantee that it'll stick around, the fact that it's open source greatly increases the probability. GWT is actually still very much alive even though Google abandoned it years ago.

Is that something you are willing to bet a major architectural decision on and/or your career? I’ve been a Microsoft developer for over 20 years and a .Net developer for over 10. Even though I don’t see .Net “dying”, it’s also not a major growth opportunity. Java is definitely not doing well compared to .Net even though it is open source - because of the mismanagement of Oracle. I see dart going down the same road. A…

> Java is definitely not doing well compared to .Net even though it is open source

Depends on whather you consider Dalvik (or whatever the current Android Java tech is) to be Java - in which case, it is.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#153
post #124

Earlier quoted context omitted.

I think a lot of what people found off-putting about Dart is that Google already recently came out with a new language that has become very successful. Announcing another one, which at first glance looks like yet another curly brace language not that far from Java, was a step too far for people to be interested. Nowadays, the only thing driving Dart seems to be Flutter, which again is head-scratching. Like, "Flutter…

I could be wrong, but I don't believe the existence of Go was much of a problem. Go and Dart are very different languages aimed for very different use cases. If anything, I think Go helped us because we could point to it as a successful language that Google hasn't cancelled. > not that far from Java This is something that hurt us, I think. You can write Dart code that looks a lot like Java, and many of our early publ…

That is nice. It's also almost indistuishable from Java 10. The string interpolation at the end is the last big syntactic nicety Java is missing - at least relative to this example.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#154
post #124

Earlier quoted context omitted.

I think a lot of what people found off-putting about Dart is that Google already recently came out with a new language that has become very successful. Announcing another one, which at first glance looks like yet another curly brace language not that far from Java, was a step too far for people to be interested. Nowadays, the only thing driving Dart seems to be Flutter, which again is head-scratching. Like, "Flutter…

I could be wrong, but I don't believe the existence of Go was much of a problem. Go and Dart are very different languages aimed for very different use cases. If anything, I think Go helped us because we could point to it as a successful language that Google hasn't cancelled. > not that far from Java This is something that hurt us, I think. You can write Dart code that looks a lot like Java, and many of our early publ…

> I do think it's a good bit simpler and cleaner than it would be in Java.

Is it really? My Java is rusty, but now that Java has type inference it looks nearly exactly like what you'd type in Java (minus `public static void`, `new`, etc.)

Re: Announcing Dart 2 Stable and the Dart Web Platform

#155
post #124

Earlier quoted context omitted.

I think a lot of what people found off-putting about Dart is that Google already recently came out with a new language that has become very successful. Announcing another one, which at first glance looks like yet another curly brace language not that far from Java, was a step too far for people to be interested. Nowadays, the only thing driving Dart seems to be Flutter, which again is head-scratching. Like, "Flutter…

I could be wrong, but I don't believe the existence of Go was much of a problem. Go and Dart are very different languages aimed for very different use cases. If anything, I think Go helped us because we could point to it as a successful language that Google hasn't cancelled. > not that far from Java This is something that hurt us, I think. You can write Dart code that looks a lot like Java, and many of our early publ…

I removed everything that seems redundant. Less syntax means less to break, and less for new programmers (who are 10x the volume of existing programmers) to learn:

    import 'package:hauberk/src/engine.dart'
    import 'package:hauberk/src/content.dart'

    content = createContent()
    save = content.createHero("blah")

    while (true) 
    watch = Stopwatch()
    watch.start()

    # Generate a dungeon at each level.
    count = 0
    for (i = 1; i = -1) count++      

    watch.stop()
    print("Generated $count dungeons in ${watch.elapsedMilliseconds}ms")

Re: Announcing Dart 2 Stable and the Dart Web Platform

#156
post #148

Earlier quoted context omitted.

2 hours ago I answered it already. If you're another person who wants to convince me that Rust has same thing as Dart's "dynamic" type, then please make my code example to compile (without modifications, for literally ANY type, as in Dart) and I will say I was wrong.

Dart type or rust type? They refer to different things, which is the source of the confusion, but they're both strongly typed. In any case, you're moving the goal post from "concrete type at compile time" to "can represent any type", which is inherently going to be specific to how the language defines types. This is not an especially useful type of dynamic representation so I'm not sure why it would be desirable.

There is no confusion. Rust doesn't have dynamic type and Dart does. That's it.

Any talks about special traits in Rust are offtopic, while code I wrote as example can't be compiled in Rust and can perfectly work in Dart.

I wasn't trying to argue about words or terms, I was trying to say the gist: Dart has dynamic type, so you can send to your function any type and this function will just use it, without any downcasting - language will take care about it; and Rust doesn't have such type: you can't even compile code which is trying to work with variables like you can do in dynamic languages.

But then all of that useless arguing... It's really funny when I see how people are trying to prove that Rust has same dynamic type as Dart. The very nature of these languages is different.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#157
post #124

Earlier quoted context omitted.

I think a lot of what people found off-putting about Dart is that Google already recently came out with a new language that has become very successful. Announcing another one, which at first glance looks like yet another curly brace language not that far from Java, was a step too far for people to be interested. Nowadays, the only thing driving Dart seems to be Flutter, which again is head-scratching. Like, "Flutter…

I could be wrong, but I don't believe the existence of Go was much of a problem. Go and Dart are very different languages aimed for very different use cases. If anything, I think Go helped us because we could point to it as a successful language that Google hasn't cancelled. > not that far from Java This is something that hurt us, I think. You can write Dart code that looks a lot like Java, and many of our early publ…

> I could be wrong, but I don't believe the existence of Go was much of a problem.

It wasn't so much Go per se, but the fact that Google was pushing two new languages at the same time. It created the perception, for me at least, that Google was pushing out new languages to see which ones stuck and kill those that didn't. Google had/has the reputation for killing off projects that it lost interest in. And I wasn't willing to learn new a new language and its ecosystem only to be marooned there a few years later.

So, while I was definitely interested in alternatives to JS, there was no way I'd pick up on Dart.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#158
post #132

Earlier quoted context omitted.

A language by itself is almost never useful, every language needs a killer app, a concrete tangible thing that that language can do better 100x better than any alternative. Like how Ruby had Rails or JS had browsers or Python has ML. That’s not to say you can’t do other things with these, just that their competitor is good enough and has momentum and mind share. It sounds like Dart now has Flutter and I think that’s…

> A language by itself is almost never useful, every language needs a killer app, I don't understand why this myth is still around. C++ never had a killer app to start its momentum. Neither did Javascript. Nor Java really (or maybe applets, back in the days?). Languages can succeed on technical merits alone if they come out at the right time and fix real problems that programmers experience on current mainstream lang…

Golang and Rust also didn't have any killer app.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#159
post #137

Earlier quoted context omitted.

> A language by itself is almost never useful, every language needs a killer app, I don't understand why this myth is still around. C++ never had a killer app to start its momentum. Neither did Javascript. Nor Java really (or maybe applets, back in the days?). Languages can succeed on technical merits alone if they come out at the right time and fix real problems that programmers experience on current mainstream lang…

These days it's mostly about apps, because apps are the main thing that facilitate the transfer of $$$. In the 80s and 90s, enterprises were full of $$$ and needed fast and safe languages for writing all their software. C++ came out to solve this need, and Java came out saying it could do it better. Today enterprises are moving many of their internal tools to the web. Enterprises don't need apps per se, but they do n…

>In the 80s and 90s, enterprises were full of $$$

More than today?

Re: Announcing Dart 2 Stable and the Dart Web Platform

#160
post #152

Earlier quoted context omitted.

Is that something you are willing to bet a major architectural decision on and/or your career? I’ve been a Microsoft developer for over 20 years and a .Net developer for over 10. Even though I don’t see .Net “dying”, it’s also not a major growth opportunity. Java is definitely not doing well compared to .Net even though it is open source - because of the mismanagement of Oracle. I see dart going down the same road. A…

> Java is definitely not doing well compared to .Net even though it is open source Depends on whather you consider Dalvik (or whatever the current Android Java tech is) to be Java - in which case, it is.

Market wise, Java is still popular in the Enterprise and of course if you are developing for Android, you’re going to probably use Java (I’d rather use Kotlin), but for backend work the three most marketable languages seem to be JavaScript (Node), .Net, and Java.

Yeah PHP jobs are a dime a dozen but they don’t pay well. Python is a little better but it’s not “Enterprisey” enough for major corporations and the cool hipster companies where all the money is going are using Node.

Post reply on HN