News for hackers. Stuff that matters.
Re:So you still don't understand Hindley-Milner? (2013) by cwzwarich on Saturday February 06, 2016 @04:53PM (#11050121)
This is probably my favorite explanation of HM type inference, based on an analogy with region-based memory management: http://okmij.org/ftp/ML/generalization.html
Re:So you still don't understand Hindley-Milner? (2013) by nickpsecurity on Saturday February 06, 2016 @11:45PM (#11051653)
That looked a bit rough in comparison but with plenty of detail. I'll add that one too. Thanks.
Re:So you still don't understand Hindley-Milner? (2013) by proc0 on Saturday February 06, 2016 @04:38PM (#11050040)
Well, that was enlightening actually. Thanks for posting.
Re:So you still don't understand Hindley-Milner? (2013) by qb45 on Saturday February 06, 2016 @06:08PM (#11050468)
Not quite sure who is downvoting that. Looks like a decent article for people who aren't like "yeah, nothing new here" after seeing the first diagram.

edit: wtf, I love you people.

Re:So you still don't understand Hindley-Milner? (2013) by nickpsecurity on Saturday February 06, 2016 @11:44PM (#11051650)
Love the step by step approach connecting English and intuition to the more formal and theoretical stuff. Not ready to learn this stuff but Hindley-Milner is on my TODO list later. I can tell by first page that this will help a lot given the math looks like gibberish to me.

Note: Strange I did great in Algebra, Calculus, etc back in H.S. and college but proofs and such look gibberish. Maybe I should've taken a class with set theory or formal logic, eh? Paying for it now as I skim formal methods & FP papers...

Re:So you still don't understand Hindley-Milner? (2013) by tamana on Sunday February 07, 2016 @12:16PM (#11053644)
It is a formal notation for logic that is nothing particularly like algebra. (The horizontal bar is not division, the turnstile is not a binary operation.) It's a new "syntax of symbols" that you need to learn to read in order to read logic papers.
Re:So you still don't understand Hindley-Milner? (2013) by conceit on Monday February 08, 2016 @11:51AM (#11059189)
Well, the terse notation is indeed to terse for me, and I'm not even sure what I'm trying to understand, but the explanation on the other hand is too long.

What's the null element of the set of expressions? Is (\lambda x. ) not valid and applicable?

Re:So you still don't understand Hindley-Milner? (2013) by tamana on Sunday February 07, 2016 @01:44PM (#11054097)
Why is the capital gamma spammed into all the formulas, instead of adding an axiom

    foo turnstile bar

    ------------------------
    Gamma, foo turnsile bar
Re:So you still don't understand Hindley-Milner? (2013) by fanf2 on Monday February 08, 2016 @03:48AM (#11057029)
Γ is a shorthand for the rest of the type environment. Your suggestion would allow the type checker to invent arbitrary phantom declarations.