Hacker News new | ask | show | jobs
by ollien 2310 days ago
Yeah, but when something is built in-house like Dart is, I imagine there's some level of support the Fuchsia team will get.
1 comments

The world of paid Rust language contributors is so small that Google could easily get all the advantages of "built in-house" for Rust if they spent a relatively tiny amount of money.

Being pretty conservative overall but betting the house on Dart for the UI seems like a strange combination of decisions to me.

They don't seem to be betting on Dart by itself as much as they are betting on Flutter, which is already reasonably successful and relies on familiar reactive component concepts popular on the web and well tested in Google's own web frameworks (Polymer, Angular).
> They don't seem to be betting on Dart by itself as much as they are betting on Flutter

You don’t get Flutter without Dart. Anyone that’s ever looked at what is behind any Flutter component can see the Dart code building it.

You literally can not bet on Flutter and not Dart. Don’t confuse Flutter as some DeclarativeUI of its own.

EDIT: How we that’s not to say the cart can’t lead the horse (good analogy). Flutter requirements are definitely driving changes in Dart Lang.

I agree with you, the point I was trying to convey is that Google isn't betting on Dart as a pioneering, untested technology as Rust is.

Flutter demonstrates Dart is a good choice; it gives you a successful declarative UI framework that effectively builds on Dart as a fairly straightforward upgrade of the most tried and true UI scripting language ever made: Javascript.

To answer the GP comment, betting the house on Dart for the UI doesn't seem like a strange or risky decision in that light.

That you like Dart and that it's a good fit for UI development doesn't make it less risky.

It still seems incongruous that widespread usage is portrayed as an important criterion for Fuschia PLs, but they bet big on Flutter which forces them to adopt Dart, a language which has very little uptake outside Flutter.

I'm not sure how you got "I like Dart" from my two comments. I'm clearly saying that Dart & Flutter are based on very popular and well tested concepts/structures, therefore it is not very risky. Dart & Flutter by themselves may not be very widespread, but it's very familiar and easy to adopt to anyone who has done declarative UI web development in Javascript or Javascript-like language, which are widespread.

Rust, on the other hand, is treading new ground with the unusual core concept of a borrow checker.

> To answer the GP comment, betting the house on Dart for the UI doesn't seem like a strange or risky decision in that light.

Yea. Before using Flutter, I probably wouldn’t have agreed. After using, I can’t disagree at all.

Is there a conspiratorial side of Mozilla vs Google in this Rust vs Dart story?
The languages are as different as Python and C++, I honestly don't really see a Rust vs Dart story. Note that Rust is approved for use within much of the source tree, but outside it is only not supported. Johnny end-developer, whoever that is, could still use Rust if he insisted, coding against C bindings.
Just like it happens in Android.

If Johnny doesn't like JVM languages, or C++, all they get is a bare bones C API, which requires JNI even for opening files, asking for permissions and so forth.

I don't know what "conspiracy" you might be referring to. There's a natural tendency for organizations to gravitate toward tools, such as programming languages, that originated there. That's just human nature, though, not anything nefarious.