Live data from Hacker News

Announcing Dart 2 Stable and the Dart Web Platform

medium.com

241–250 of 259 posts

Re: Announcing Dart 2 Stable and the Dart Web Platform

#241
post #60

Earlier quoted context omitted.

With Google’s history of abandoning efforts like this, I wouldn’t spend too much effort using any language developed by them.

> With Google’s history of abandoning efforts like this, I wouldn’t spend too much effort using any language developed by them. Well , to be fair Go is becoming a major server side language and I don't see Google abandoning it any time soon. That being said , Dart is basically on "life support" has of now , there is no SDK what so ever beside Google + Firebase , and I haven't heard anything from AWS / Azure or others…

I wouldn’t focus my medium term career prospects on Xamarin, but if I could quickly ramp up and do mobile development using it, I would.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#242

Earlier quoted context omitted.

I think your points about Dart being treated unfairly are legit. OTOH, Google certainly invited criticism - early Google efforts on the web were VERY "let's make JavaScript into Java", and as the JS community matured this attitude was viewed with less and less favor. I think it's notable that the community that DID end up having strong influence in the JS world (Node & npm) had much more of a Ruby background than Jav…

>early Google efforts on the web were VERY "let's make JavaScript into Java" That was never the case. Ever. Google was the first company to really take JavaScript seriously and launched the client-side JavaScript revolution with Maps and Gmail. This criticism was leveled at Dart because as I argued, when Dart was launched some people ( purposely ) found certain parts of the syntax superficially resembled Java. It was…

> Google was the first company to really take JavaScript seriously and launched the client-side JavaScript revolution with Maps and Gmail.

True! Google Maps was a revolutionary use of AJAX. However, that is totally orthogonal to if JS was being written like JS, or like something else.

> This criticism was leveled at Dart because as I argued

Except I wasn't leveling that criticism at Dart. I'm talking about Google efforts in general at the time. You can see it in GWT, you can see it in the first generally accepted JS styleguide (done by Google), and you can REALLY see it in the articles and efforts of Google at the time where person after person laboriously tried to make JS _behave_ like Java (so we're not talking syntax). The late 90s and early aughts were a battle between those that wanted to recreate Classical OOP in JS and those that wanted JS to be what it has ended up being.

I don't even KNOW Dart to criticize it about anything, but I knew what I was seeing from Google at the time and why I wasn't swayed that they were creating something that would be accepted by the community and other browser makers.

> (there was a time, believe it or not, when static typing was disparaged by frontend web-devs)

...and it continues to this day in many corners - the issue (generally) isn't static typing but instead the cost/benefit involved - are enough runtime errors prevented to cover the cost of me informing a type system. There's a reason JS has spread so far - the time cost of static languages is just as real as the runtime risks of dynamic, and pretending that this equation should always favor proven correctness just results in more work being done in the dynamic camps.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#243
post #81

Earlier quoted context omitted.

I think what killed Dart is that they emphasized their plans to make Dart a first-class scripting language of Chrome, so that you could use instead of JavaScript. This had a lot of backlash from literally everyone, I think mostly because they were bit too hard by IE doing the exact same thing just a few years before. Only after a few years the Dart team changed courses and said "never mind about that VM-inside-Chrome…

I agree. In addition because Dart shared some superficial similarities with Java, some people just assumed it's Java and criticized the language for it. For example Dart variable declaration is of the form "String a" vs "var s:string" - the former syntax looks like Java so Dart must be Java. It certainly felt like people were willing to 'pile-on' criticism because they felt that JS ecosystem was threatened. The langu…

It's more than superficial, I struggle to see how using Dart would be at all different from how you would architect an app in Java. It's an OO language with an almost identical set of type system features besides the fact that it has inference. It's not as if it borrows much from the ML lineage; I don't see any examples of pattern matching and currying in the Dart docs. It's all class based polymorphism.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#244
post #236

Earlier quoted context omitted.

const and mut are not types, it's modifiers of mutability. On both lines type is u32z

The asterisk was formatted out. Read the book, they are types.

So you can write "let x:const = 5"? if "const" is a type.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#245
post #229

Earlier quoted context omitted.

const and mut are not types, it's modifiers of mutability. On both lines type is u32z

The asterisks in leshow's comment are being lost in the formatting, since HN uses them for italicization. So the last line, for example, is: The rust book even refers to *const and *mut pointers as types.

I really can't believe how stupid people can be to say "const" is a type. Even if Klabnik will say it into my face it will not be true, I don't care about the book he wrote.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#246
post #243

Earlier quoted context omitted.

I agree. In addition because Dart shared some superficial similarities with Java, some people just assumed it's Java and criticized the language for it. For example Dart variable declaration is of the form "String a" vs "var s:string" - the former syntax looks like Java so Dart must be Java. It certainly felt like people were willing to 'pile-on' criticism because they felt that JS ecosystem was threatened. The langu…

It's more than superficial, I struggle to see how using Dart would be at all different from how you would architect an app in Java. It's an OO language with an almost identical set of type system features besides the fact that it has inference. It's not as if it borrows much from the ML lineage; I don't see any examples of pattern matching and currying in the Dart docs. It's all class based polymorphism.

> I struggle to see how using Dart would be at all different from how you would architect an app in Java.

It's not really an architectural difference, I'd agree (outside of isolates vs. threads): Dart is mostly about ergonomics compared to other class-based OO languages. Unification of class, interface, and mixin; method cascades for “free” fluent interfaces; the syntactic support for sync and async generators along with async/await, really transparent (binary, not just source-level like C#) getters and setters; named and factory constructors; the whole deep consideration of const-ness, etc., are all ergonomic features, not major changes in architecture / paradigm.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#247

Earlier quoted context omitted.

>early Google efforts on the web were VERY "let's make JavaScript into Java" That was never the case. Ever. Google was the first company to really take JavaScript seriously and launched the client-side JavaScript revolution with Maps and Gmail. This criticism was leveled at Dart because as I argued, when Dart was launched some people ( purposely ) found certain parts of the syntax superficially resembled Java. It was…

> Google was the first company to really take JavaScript seriously and launched the client-side JavaScript revolution with Maps and Gmail. True! Google Maps was a revolutionary use of AJAX. However, that is totally orthogonal to if JS was being written like JS, or like something else. > This criticism was leveled at Dart because as I argued Except I wasn't leveling that criticism at Dart. I'm talking about Google eff…

> There's a reason JS has spread so far

The large number of people who had to know it because of its status as the only reliably-available cross-browser web client language, and the focus engines got because of its web client role, mostly.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#248

Earlier quoted context omitted.

>early Google efforts on the web were VERY "let's make JavaScript into Java" That was never the case. Ever. Google was the first company to really take JavaScript seriously and launched the client-side JavaScript revolution with Maps and Gmail. This criticism was leveled at Dart because as I argued, when Dart was launched some people ( purposely ) found certain parts of the syntax superficially resembled Java. It was…

> Google was the first company to really take JavaScript seriously and launched the client-side JavaScript revolution with Maps and Gmail. True! Google Maps was a revolutionary use of AJAX. However, that is totally orthogonal to if JS was being written like JS, or like something else. > This criticism was leveled at Dart because as I argued Except I wasn't leveling that criticism at Dart. I'm talking about Google eff…

>I'm talking about Google efforts in general at the time.

Ok, but just to be clear, at no point did Google actually try to replace JavaScript with Java.

>You can see it in GWT

Oh come on. GWT was transpilation tool with a built-in component framework. It solved a real problem for specific use-cases and was primarily adopted by enterprise developers. It was never a replacement for JavaScript.

>and you can REALLY see it in the articles and efforts of Google at the time where person after person laboriously tried to make JS _behave_ like Java

Can you provide an example of this? I have no idea what you're referring to.

>The late 90s and early aughts were a battle between those that wanted to recreate Classical OOP in JS and those that wanted JS to be what it has ended up being.

And Google was a non-factor in the development of the web technologies and standards in the late 90s and early 00s (Chrome wasn't released until 2008. Ajaxy Gmail was released in 2004). Also, nobody gave a crap about JavaScript in the 90s and early 00s (Crockford's JS:The Good Parts wasn't released until 2008). Maybe you're thinking of the development of ActionScript 3.0 which had OO constructs and was supposed to be a replacement for JavaScript before (I believe) Microsoft balked and left Adobe hanging. Which is a shame because AS3 is also superior to ECMAScript 5 and world would have been better with AS3 in the browser (and don't get me wrong, AS3 is very quirky language).

But regardless, the whole "Google is trying to replace JavaScript with Java" was pure paranoia not grounded in fact.

> the issue (generally) isn't static typing but instead the cost/benefit involved

You can build in optional typing if you really want to (AS3 had that). Having said that, I cannot see what time you lose by enforcing type constraints. And dynamic languages are not faster or more productive. At best it's a no-op. At worst you're dealing with runtime errors which are 100x painful and costly than dealing with a compile-time error.

>There's a reason JS has spread so far

It's the lingua franca of the web because it's the only language supported by major browsers. That's why it spread so far, not because it is a great language. In fact, the plethora of transpilation tools should give you a clue how shitty this language is.

Re: Announcing Dart 2 Stable and the Dart Web Platform

#249
post #243

Earlier quoted context omitted.

I agree. In addition because Dart shared some superficial similarities with Java, some people just assumed it's Java and criticized the language for it. For example Dart variable declaration is of the form "String a" vs "var s:string" - the former syntax looks like Java so Dart must be Java. It certainly felt like people were willing to 'pile-on' criticism because they felt that JS ecosystem was threatened. The langu…

It's more than superficial, I struggle to see how using Dart would be at all different from how you would architect an app in Java. It's an OO language with an almost identical set of type system features besides the fact that it has inference. It's not as if it borrows much from the ML lineage; I don't see any examples of pattern matching and currying in the Dart docs. It's all class based polymorphism.

So to you OO means Java?

Re: Announcing Dart 2 Stable and the Dart Web Platform

#250
post #197

Earlier quoted context omitted.

Rust definitely has Firefox

Just thought I'd remind you that there are currently 0 Rust jobs on Indeed.co.uk by title for the whole of the UK. The HN bubble is not how the world at large operates.

Two examples from Indeed.de in Germany, there are other results.

https://de.indeed.com/viewjob?jk=6c49a2deeb389df8&q=rust&tk=...

https://de.indeed.com/viewjob?jk=6823f26122417b2d&q=rust&tk=...

Post reply on HN