News for hackers. Stuff that matters.
Re:Why Don't People Use Formal Methods? by kod on Tuesday January 22, 2019 @02:10AM (#18966566)
Standard ML has existed for 35 years. Even if you started programming with Fortran, it's been around longer than half of your career.
Re:Why Don't People Use Formal Methods? by hvidgaard on Tuesday January 22, 2019 @02:27AM (#18966625)
It's even older than that. The Hindley–Milner type system was first described in 1969. In other words, we've had the foundation for this kind of type inference for 50 years.
Re:Why Don't People Use Formal Methods? by mhd on Tuesday January 22, 2019 @02:58AM (#18966736)
Which is why I'm amazed it's actually used now outside academia. It lingered so long there, it's surprising that it made the jump.

Probably due to some alums of INRIA using their particular implementation for their own projects.

Re:Why Don't People Use Formal Methods? by ddingus on Tuesday January 22, 2019 @02:27AM (#18966626)
What's the deal?

Really could be new to him. It's a pretty big world out there.

Re:Why Don't People Use Formal Methods? by agumonkey on Tuesday January 22, 2019 @02:25AM (#18966618)
Be honest, until 10y ago, ml type inference was invisible to 90% of the coders. Probably rejected willingly even ('where are my objects?')
Re:Why Don't People Use Formal Methods? by quickthrower2 on Tuesday January 22, 2019 @03:07AM (#18966770)
I learned Haskell in 2001, was super excited by it but there wasn’t the “day to day” stuff to get things done that you had in Java or C++. So for practical work I felt I couldn’t use it. Fast forward now, with the rise of open source sand devs volunteering to code in their free time, we have Haskell kind of useful. Definitely for web software and backend. Although I question desktop development in Haskell.
Re:Why Don't People Use Formal Methods? by dmitriid on Tuesday January 22, 2019 @03:57AM (#18966987)
> Probably rejected willingly even ('where are my objects?')

Local type inference was rejected in Java in 2001 because "you need to spec your types precisely"

Re:Why Don't People Use Formal Methods? by agumonkey on Tuesday January 22, 2019 @04:21AM (#18967101)
is it published online ?
Re:Why Don't People Use Formal Methods? by dmitriid on Tuesday January 22, 2019 @05:58AM (#18967424)
Found it here: https://stackify.com/whats-new-in-java-10/

——— start quote ———

This feature has been a long time coming. It was suggested as far back as 2001, and was closed at that time with the following comment by Gilad Bracha:

Humans benefit from the redundancy of the type declaration in two ways. First, the redundant type serves as valuable documentation – readers do not have to search for the declaration of getMap() to find out what type it returns. Second, the redundancy allows the programmer to declare the intended type, and thereby benefit from a cross-check performed by the compiler.

——— end quote ———

Link to original RFE and quote source: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4459053

Re:Why Don't People Use Formal Methods? by agumonkey on Tuesday January 22, 2019 @11:00AM (#18969182)
Interesting, I kinda agree about the need for redundancy at times (which is not forbidden by ML typing). But it rejected a very good idea for a decade.. A bit like lambda expressions. Damn Java
Re:Why Don't People Use Formal Methods? by TuringTest on Tuesday January 22, 2019 @05:29AM (#18967310)
IIRC it was common knowledge, as it was an "obvious improvement" over C-style undeclared variables. Have in mind that type inference applied only to local values, not propagated globally through the code structure as in ML.