Constraint programming is extremely important, now more than ever.  I don&#x27;t want to fall on the tired old explanation that says, &quot;you program by declaratively describing the answer instead of procedurally describing how to compute it,&quot; both because it&#x27;s sort of not true and because there&#x27;s a whole declarative-procedural continuum: FORTRAN is more declarative than assembly language, LISP or Python is more declarative than FORTRAN, arguably ML is more declarative than Lisp or Python, Prolog is more declarative than ML, and SQL is more declarative than Prolog.  And it varies by application area: probably, if you&#x27;re describing a circuit layout, Verilog is more declarative than SQL, and MyHDL is more declarative than Verilog.<p>Unfortunately I don&#x27;t have a good, compelling way to explain why I think constraint programming is so important.  Here are a few attempts.<p>Constraint programming transforms a program that determines whether a possible solution is acceptable into a program to compute an acceptable solution.<p>Constraint programming allows you to write the specification of your program and then separately search for ways to fulfill that specification, either manually (by specifying search strategies&#x2F;proof tactics) or automatically.<p>Constraint programming allows you to abstract away the question of which values in a subroutine are returned and which are provided as parameters.  If you have only two such candidates, like the tired old °F↔°C example, this is a minor saving.  If you have many parameters, it can be a major saving.<p>---<p>So much for why constraint programming would be important if we could do it.  Now what&#x27;s new about being able to do it, particularly since 2006?<p>I&#x27;m not a specialist in the area, so this may not be the best possible answer to the question.<p>However, it looks to me like miniKANREN is one important development: it&#x27;s a logic programming language far more powerful than Prolog. cKanren is an extension to CLP.<p>Also, SMT solvers (&quot;SAT modulo theories&quot;), which are capable of fairly general-purpose constraint solving, have gotten enormously more efficient since 2006.  One of the fun things about exponential-time algorithms is that reducing the base of the exponentiation even by a little bit can produce enormous speedups in practice.<p>Additionally, constraint solving shades over into optimization.  In constraint solving, you have a bunch of absolute constraints, and you try to find a configuration that satisfies all of them.  A configuration that barely fails to satisfy any of the constraints is no good.  (Although this book talks a bit about &quot;soft constraints&quot;, too.)  In optimization, you have a &quot;loss function&quot; that you try to minimize (or equivalently a value function you try to maximize) and so you&#x27;re looking for a configuration with a good value of this function.  So if you turn each constraint into a Boolean variable that takes on 0 or 1 and subtract their product from 1, then you&#x27;ve turned a constraint problem into an optimization problem.  (Maybe you want to sigmoid out the 0&#x2F;1 transition a bit in order to keep everything differentiable.)  All this stuff we&#x27;ve been seeing about &quot;deep learning&quot; and &quot;machine learning&quot;?  Those are optimization problems!  You can use those techniques to solve constraint programming problems, and you can use CLP techniques to dramatically speed up optimization problems.  This is in its infancy.  A really cool example of solving inverse kinematics constraints with optimization (just using gradient descent and reverse-mode automatic differentiation) is <a href="http:&#x2F;&#x2F;www.mattkeeter.com&#x2F;projects&#x2F;constraints" rel="nofollow">http:&#x2F;&#x2F;www.mattkeeter.com&#x2F;projects&#x2F;constraints</a>.<p>Finally, lots of the things we run on our computers — word processing, spreadsheets, HTML rendering, TCP&#x2F;IP — really don&#x27;t benefit from the immense increases in computation and memory that have happened since 2006.  But constraint solving is NP-hard, and consequently it can eat up all the computrons and DIMMs you can throw at it.