Re:Can Logic Programming Be Liberated from Predicates and Ba...
by illogical_spock on Thursday October 24, 2024 @11:17AM
(#41936359)
I suppose you could hack a bug-ridden implementation of Prolog unification in Prolog but why?
Hindley-Milner type inference is unification over types and unification is built-in to Prolog. Functional programmers ignore this because their textbooks never refer to the original description of unification by Robinson. Wait who? Unification was probably invented by Damas, Hindley or Milner right? Or maybe Haskell Curry? Hey maybe it was John McCarthy?
Re:Can Logic Programming Be Liberated from Predicates and Ba...
by thesz on Monday October 28, 2024 @06:35PM
(#41977244)
Prolog was introduced into general public in 1972, 4 years after Hindley's algorithm that used unification and substitution.
In any case, what was suggested is, frankly, a development of the (tailored up) type system.
My experiece suggests that this development will not be without caveats, especially related to performance.
Modelled after Greenspun's Tenth Rule [1].
[1] https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule