7 ms·
Give me Scala and a real-world problem vs someone using using PHP or Javascript and I will beat them on the initial write, and destroy them on the maintenance.
by lmm 11y ago
Give me Scala and a real-world problem vs someone using using PHP or Javascript and I will beat them on the initial write, and destroy them on the maintenance. I wouldn't use Scala professionally if I didn't believe this.
In the short term practical concerns can be more important than PLT ones - in five years' time I'm sure Idris will be a better language than Scala, but for some tasks it isn't yet - apart from anything else, you need a strong library/tool ecosystem before a language is truly useful. But that's a temporary state of affairs. If you were making this kind of judgement 20 years ago, and chose a popular language like Perl or TCL or C++ over a theoretically-nice language like OCaml or Haskell, how would you be feeling about that decision today?
- guelo 11y ago> like Perl or TCL or C++ how about PHP or Javascript?
- lmm 11y agoSame thing I think, though I don't think anyone would have tried to write a serious program in JavaScript 20 years ago.
- pron 11y agoGive me Java and a real-world problem vs someone using using Scala and I will beat them on the initial write, and destroy them on the maintenance. :) > in five years' time I'm sure Idris will be a better language than Scala Idris? In the entire history of computing there has been a single[1] complete non-trivial (though still rather small) real-world program (CompCert) written in a dependently typed language. Even though the program is small and the programmer (Xavier Leroy) one of the leading dependent-type-based-verification experts, the effort was big (and that's an understatement) and the termination proofs proved too hard/tedious for him, so he just used a simple counter for termination and had a runtime exception if it ran out. Idris is a very interesting experiment, I'll give you that. But I don't see how anyone can be sure that it would work (although you didn't say it can work, only that it would "be a better language than Scala", so I'm not sure what your success metrics are). [1]: Approximately, though I don't know of any other.
- lmm 11y ago> Give me Java and a real-world problem vs someone using using Scala and I will beat them on the initial write, and destroy them on the maintenance. :) Seems we have a true disagreement. > Idris? In the entire history of computing there has been a single[1] complete non-trivial (though still rather small) real-world program (CompCert) written in a dependently typed language. Five or ten years ago how many such programs were there in a language with higher-kinded types? Thirty years ago how many with type inference? Innovation is slow - perhaps five years was too optimistic, looking at the history - but it does happen; PLT ideas do eventually make their way into mainstream languages. > although you didn't say it can work, only that it would "be a better language than Scala", so I'm not sure what your success metrics are I think it will be the most effective (for real-world problems) general-purpose programming language - a spot I think Scala currently holds. Hard to define objectively of course.
- pron 11y agoFirst, higher-kinded types is a feature; dependent types is an entire philosophy. Second, I think you're misjudging the adoption of those languages/ideas: the percentage of real-world programs using HM type-systems (and similar) has hardly changed in the past two or even three decades. Scala is special because it's a single language with lots of paradigms. If you count only those who make good use of sophisticated typed abstractions in Scala and add those to the HM languages, there would still be a very small uptick. The major change in the past few years, I think, has to do with mainstream adoption of higher-order functions. That idea took fifty years to break into the mainstream. As to language effectiveness, I can't argue with you because neither of us has any real data, but I can say that there's a lot of religion surrounding the question of how much linguistic features (as opposed to extra-linguistic ones, like GC) actually increase productivity. What is certain is that we still haven't broken the 10x productivity boost Brooks said wouldn't happen between 1986 and 1996, and it's been thirty years -- not ten -- and it seems like we won't do it in another decade.
- lmm 11y ago> higher-kinded types is a feature; dependent types is an entire philosophy Totality is a philosophy; you can have dependent types as a feature without it. Maybe immutability or purity are better comparisons for what Idris brings to the table, but if you're just talking about dependent types then I'm using them already. > the percentage of real-world programs using HM type-systems (and similar) has hardly changed in the past two or even three decades. Is that really true? I can't imagine a recruiter asking about Haskell, or a Facebook-sized company talking about their OCaml strategy, ten years ago. > As to language effectiveness, I can't argue with you because neither of us has any real data, but I can say that there's a lot of religion surrounding the question of how much linguistic features (as opposed to extra-linguistic ones, like GC) actually increase productivity. That feels like gerrymandering your definitions to me. GC is usually a language-level feature. > What is certain is that we still haven't broken the 10x productivity boost Brooks said wouldn't happen between 1986 and 1996, and it's been thirty years -- not ten -- and it seems like we won't do it in another decade. How would we tell? The productivity of the technology industry as a whole has certainly risen enormously. My general impression is that coding is the bottleneck a lot less often - even for a technology company - than it was five or ten years ago.