5 ms·
I'm on the Dart team and I agree with pretty much all of this. Personal opinion time: Lars and Kasper, the original leads and creators of the language came ou
by munificent 8y ago
I'm on the Dart team and I agree with pretty much all of this.
Personal opinion time:
Lars and Kasper, the original leads and creators of the language came out very confidently with this mission to get Dart natively supported in the browser based on the assumption that the language was so good and the VM would be so fast that users would clamor it.
They had the best of intentions — they really did want to make a delightful, productive, fast language. They intended to move the entire web forward the same way V8 had when it first launched, and they believed deeply that Dart would enable that.
But I think they really underestimated how vastly different designing and marketing a language is from simply implementing an already-successful one.
It's not enough to just have a good product. The way you present it is often more important. And you don't even have the luxury of defining "good product" — you must be mercenary in letting your users' needs override your personal preferences. All of that was a real struggle for them.
For what it's worth, there's been a lot of staff changes over the years since Dart first launched. Lars and Kasper have left to try the startup thing again (which I think is a better fit for their skills and desires than evolving a big open source language). The team we have now, I believe, is much better aligned with what you're saying.
It sucks that we do have this baggage, but I hope we can improve our reputation over time. I'm hopeful we can — it took Java several tries before it found its footing.
- kbd 8y agoI 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 sounds interesting but in addition to learning Flutter I need to learn a brand new programming language for it that's really only used for Flutter?" People only have so much bandwidth for new things and there's already so much to constantly learn in our industry.
- munificent 8y agoI 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 public examples did. To make matters worse, for no good reason, Dart 1.0 didn't do any type inference, so even though you could use "var" for local variables, doing so would give you a worse user experience. But you don't have to write Java in Dart. You can write really elegant, clean code in Dart in a way that Java doesn't enable. You don't have to stuff everything inside classes. We've always had nice terse lambdas, higher-order functions, collection literals, etc. Here's a random little program of mine: import 'package:hauberk/src/engine.dart'; import 'package:hauberk/src/content.dart'; main() { var content = createContent(); var save = content.createHero("blah"); while (true) { var watch = Stopwatch(); watch.start(); // Generate a dungeon at each level. var count = 0; for (var i = 1; i <= Option.maxDepth; i++) { var game = Game(content, save, 1); for (var _ in game.generate()); // Read some bit of game data so the JIT doesn't optimize the whole // program away as dead code. if (game.hero.pos.x >= -1) count++; } watch.stop(); print("Generated $count dungeons in ${watch.elapsedMilliseconds}ms"); } } It's not the most beautiful code in the world, but I do think it's a good bit simpler and cleaner than it would be in Java.
- wmfiv 8y agoThat 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.
- kbd 8y ago> 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.)
- sbjs 8y agoA 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 going to be a huge deal moving forward.
- hota_mazi 8y ago> 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 languages.
- sbjs 8y agoThese 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 need the tech needed to build internal apps and apps to bridge between them and their partners. Consumers are using desktops less, and mobile or web more. Apps are basically the current de facto software "product". But a lot more goes into making apps today than 30 years ago. An example is how most apps need ML for spam protection and recommendation algorithms, or they are instantly going to be considered outdated and behind the times.
- coldtea 8y ago>In the 80s and 90s, enterprises were full of $$$ More than today?
- Daegalus 8y agoIt's a shame, I was a HUGE dart for backend proponent. I made libraries and even middleware for API servers and such. I was constantly fighting to get ANY focus on the backend standard libs. In the end, I had to give up and stopped fighting. I still maintain my uuid, base32, and otp libraries, just upgraded them for 2.0, but Its a shame because Dart could have so easily competed with Node.js and it was a major replacement for it for me.
- pier25 8y agoOff topic but... are there any plans to adapt Flutter for desktop apps?
- kyrra 8y agoThere is an unofficial implementation for it. https://github.com/google/flutter-desktop-embedding https://github.com/google/flutter-desktop-embedding
- MarkMc 8y agoI'm the lead dev on just such a project: https://feather-apps.com/ https://feather-apps.com/
- pier25 8y agoLooks great! I beat the Reversi app on first try. I'm guessing it's not very strong. :)
- MarkMc 8y agoThanks :) Haha yes I weakened the AI somewhat compared to the original version created by RedBrogdon. It's not fun to be constantly thrashed by an opponent who takes 0.2 seconds per move! Despite my changes I still lose about 3 out of every 4 games :(