News for hackers. Stuff that matters.
Re:Hindley-Milner Type Inference (2012) by jldugger on Friday July 10, 2020 @03:40PM (#23795503)
IMO, the most brutal week was realizing that nothing you will ever use on the job will use H-M type inference. Back to smashing rocks together.
Re:Hindley-Milner Type Inference (2012) by Klathmon on Friday July 10, 2020 @03:54PM (#23795662)
Take it from someone who has to occasionally work on an over complicated type system which uses HM inference, it ain't all that fun.
Re:Hindley-Milner Type Inference (2012) by AnimalMuppet on Friday July 10, 2020 @04:06PM (#23795803)
Could you be more specific? What makes it painful?

(I mean, "overly complicated" is bad news no matter what the specifics of what we're talking about, but how does it cause pain when it's specifically in the types?)

Re:Hindley-Milner Type Inference (2012) by Klathmon on Friday July 10, 2020 @04:25PM (#23796029)
For me personally it's just a lot of really heavy and very "meta" code that is really hard for me to reason about. I also touch it very rarely, so there's always a steep learning curve when I'm jumping back into it.
Re:Hindley-Milner Type Inference (2012) by literallycancer on Friday July 10, 2020 @05:23PM (#23796660)
You could use ReasonML in JS projects. It's even compatible with the rest of your codebase, if you don't want to start by rewriting everything.
Re:Hindley-Milner Type Inference (2012) by GregarianChild on Friday July 10, 2020 @04:11PM (#23795864)
Almost all modern statically typed languages use the ideas first coherently described in the Damas-Hindley-Milner approach. The main reason we do not see more full type inference, is that full type inference becomes uncomputable pretty quickly, once you move to more expressive typing systems.
Re:Hindley-Milner Type Inference (2012) by 3001 on Friday July 10, 2020 @03:45PM (#23795568)
You can go work for Jane street.
Re:Hindley-Milner Type Inference (2012) by nicoburns on Friday July 10, 2020 @03:49PM (#23795606)
Perhaps more achievable: iOS dev with Swift. Not technically HM I don't think, but it functions more or less the same.