News for hackers. Stuff that matters.
Re:Using the Specification Pattern to Build a Data-Driven Ru... by PaulHoule on Tuesday March 24, 2020 @10:18AM (#22674877)
If you look close at that article, what they describe is not a real "rules engine" but just a set of boolean valued functions.

Real business rules engines use something like

https://en.wikipedia.org/wiki/Rete_algorithm

Production rules systems in the 1970s (when they were in vogue for "expert systems") did not use indexes and generally had poor execution performance compared to modern "business rules" engine.

Production rules are related to other logic-based methods of programming such as "logic programming" (which tends to progress backwards from a desired consequence to prove it is satisfied) or "theorem provers" that could demonstrate that a section of code satisfies certain invariants.

There are no comments on this comment yet.