News for hackers. Stuff that matters.
Re:LtU on Dart by rayiner on Tuesday October 11, 2011 @05:44PM (#3100439)
Reading LtU makes me sad that an entire generation of computer science students were raised to think programming language design is coextensive with type system design.

Not that I think that Dart is particularly creative from a PL design standpoint, but I read the complaints about covariant genetics and think: who cares about the type system? It's optional after all!

Re:LtU on Dart by nandemo on Tuesday October 11, 2011 @06:05PM (#3100547)
I don't think LtU is all about type system design. There are plenty of discussions about parsing, semantics, programming language implementation and so on.

And type system is optional? Besides Assembly, I can't think of any widely used programming language that is untyped.

Yes, there are plenty of languages with weak typing or dynamic typing, but that's very different from no typing at all.

Re:LtU on Dart by rayiner on Tuesday October 11, 2011 @06:49PM (#3100742)
I mean there are articles on LtU about typing parsers, expressing semantics through typing, etc. Which is fine its a forum with a specific niche, what is sad is that niche has come to totally dominate PL design in academia.

And at least the static type system in Dart is optional. Yet all I hear about Dart is digs at its static type system. Can't express non-nulity, has covariant generics, etc. Who really cares? It's designed to throw up a warning when you pass a string to Math.min, not to allow expressing every static invariant possible through the static type system.

Re:LtU on Dart by chc on Wednesday October 12, 2011 @01:19AM (#3101601)
The reason people are deriding it is because it's touted as a feature of the language, but it's really a very unhelpful and relatively powerless type system. Enforcing non-null is more useful than warning me if I pass a string to Math.min. The amount of time I've spent debugging strings passed to Math.min (so to speak) is a rounding error next to the time I've spent weeding out unwanted nulls.

Imagine if I were to put out a language with great fanfare given to the fact that it has a built-in string type. What would your reaction be?

Re:LtU on Dart by JeremyBanks on Wednesday October 12, 2011 @01:05AM (#3101576)
You've misunderstood the type system. It's not untyped, it's the static typing that is optional. It's mostly just your typical dynamic type system with optional type checks in debug mode and (incompletely) at compile-time.
Re:LtU on Dart by simcop2387 on Tuesday October 11, 2011 @06:56PM (#3100774)
And to be fair even Assembly might be considered to be typed on most architectures. You've got multiple different sized integers, and possibly floating point registers.
Re:LtU on Dart by barrkel on Tuesday October 11, 2011 @11:35PM (#3101395)
Ehud drops heavy hints when things wander too far from the academic and theoretical mainstream (which happens to be proving more and more things with type systems, by and large). Discussing pragmatics that tread into territory covered by existing books is discouraged.
Re:LtU on Dart by ehudla on Wednesday October 12, 2011 @12:55AM (#3101559)
I am, in fact, very interested in pragmatics. We value new insights and results, and substantiated claims. But syntax, semantics, pragmatics are all fair game. As are the sociology of the PL world, and psychological insights about cognitive aspects of PL work. And of course we are also into the history of the field.
Re:LtU on Dart by barrkel on Wednesday October 12, 2011 @09:36AM (#3102850)
That's not been my experience. In particular, commercial (ie non academic) language development is heavily influenced by business concerns, but you are very hostile to any mention of them if it's not just to disparage industry from not following the trends du jour; you believe such commercial discussion is off topic, but it actually excludes reasoned discussion of stuff the hasn't either come out of a lab or academia. If I have time, I'll go look up and post links to some of your comments. As a practitioner it put me quite off LtU for some time, and I don't interact there as much as I could.
Re:LtU on Dart by ehudla on Wednesday October 12, 2011 @03:33PM (#3104171)
Discussion of business concerns per se is off course off topic. Reasoned discussion of their effects on PLs is not. It's a fine line, to be sure. Be that as it may, there are many issues that are neither type theory related, nor related to business concerns :-) Anyway, I think this discussion would be more appropriate on LtU than here.
Re:LtU on Dart by yassim on Tuesday October 11, 2011 @07:34PM (#3100893)
Dart (from what I've heard) is actually a form smalltalk. strongtalk[1] is also an optional typed system.

[1] : http://www.strongtalk.org/

Re:LtU on Dart by chc on Wednesday October 12, 2011 @01:26AM (#3101615)
I don't see what would make "Smalltalk" a good description of Dart. It doesn't appear to be message-based, isn't built with images and doesn't appear to be pervasively object-oriented (e.g. it has a syntactic `if` rather than using messages to booleans).

I can see some Smalltalk influence in Dart, but only as much as I see in Java.