News for hackers. Stuff that matters.
Re:Programming Languages as Constraints by harveywi on Friday June 03, 2016 @04:18PM (#11832943)
> Constraints provide freedom.

For a great video on this, see Runar Bjarnason's talk "Constraints Liberate, Liberties Constrain" (https://www.youtube.com/watch?v=GqmsQeSzMdw).

Re:Programming Languages as Constraints by Retra on Friday June 03, 2016 @07:12PM (#11833903)
I've been slowly working on writing something up on this subject that shows how the constraint "energy must be conserved" allows us the freedom to solve a large number of problems just by describing them in terms of energy. Hopefully to tease out a more clarity on how we can transform abstract symmetries into practical solutions to real problems.
Re:Programming Languages as Constraints by catnaroek on Friday June 03, 2016 @08:56PM (#11834320)
> "energy must be conserved"

I like this analogy! Are you thinking of “energy” as some measurement of the amount of freedom a specification gives implementors to make their own design decisions? (Possibly modulo some set of changes deemed “trivial”, like renaming identifiers, reordering independent statements, etc.)

Re:Programming Languages as Constraints by Retra on Saturday June 04, 2016 @10:17PM (#11839311)
I'm thinking of energy in the physics sense.
Re:Programming Languages as Constraints by catnaroek on Sunday June 05, 2016 @12:21AM (#11839608)
Oh, my bad. I'm certainly aware of the usefulness of the conservation of energy when you need to relate the initial and final states of a physical system solely under the action of conservative forces. But I thought you were talking about using the conservation of energy as an analogy for a strategy for tackling programming problems.
Re:Programming Languages as Constraints by Retra on Monday June 06, 2016 @09:42PM (#11851859)
Energy is a linguistic construct for solving problems in abstract models of reality. That's not too different from how programming works, it's just a different set of models. Thus energy is just a special case of a more general problem solving technique which can be employed in other domains.