News for hackers. Stuff that matters.
Re:Dependent Haskell Is the Future (2018) by bad_user on Friday August 16, 2019 @06:15AM (#20713689)
You're building a strawman. I've never heard of that myth, the saying is more like "if a Haskell program compiles, it usually works". And you can say the same thing about a couple of other statically typed, functional programming languages.

---

> "How do I capture this extremely complicated real world semantics in code?" and languages can't really solve that

Actually languages can help a lot.

This isn't just about "silly mistakes". Compilers are _theorem provers_. Quite literally there's an equivalence between type theory and mathematical logic. I hope you're not saying that math logic doesn't help in modeling real world semantics.

So yes, via modelling types in an expressive language you can at least have proof that the changes you make are consistent with the world view you had before those changes.

Of course people accustomed to less expressive languages like Java won't believe this until they see it. But you should really look into Haskell to see the difference. And dependent typing brings this to the next level.

Re:Dependent Haskell Is the Future (2018) by 6thaccount2 on Friday August 16, 2019 @07:35AM (#20714096)
Ada with Spark is pretty cool.
Re:Dependent Haskell Is the Future (2018) by jcadam on Friday August 16, 2019 @07:44AM (#20714149)
I used Ada for a few years back when I was working on satellite programs. It's the closest thing to a "If it compiles, it probably works" language that I've ever seen.
Re:Dependent Haskell Is the Future (2018) by 6thaccount2 on Friday August 16, 2019 @09:06AM (#20714754)
I really wish you could use all of the adacore stuff for free in commercial closed source software and just pay for IDE support and maybe some specific libraries.