Coolest Python recipe of all time

Ian Kelly ian.g.kelly at gmail.com
Sat May 7 10:54:23 EDT 2011


On Sat, May 7, 2011 at 2:29 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
>> This isn't really amb; as you said it's just a brute-force solver with
>> some weird syntax.  The whole point of amb is to enable
>> non-deterministic programming, such as this:
> [...]
>> The amb engine would conceptually execute this function for every
>> possible combination of a, b, and c,
>
> Which pretty much is the definition of "brute-force solver", no?

The "execute the function for every possible combination" part, yes.
The "non-deterministic programming" part, no.



More information about the Python-list mailing list