logic.py did not exist in my checkout, which is why I ended up trying nway_logic instead.
Re:The Language of Choice
by abecedarius on Tuesday October 20, 2015 @12:12PM
(#10420060)
Ah, I'm sorry about that.
Product of sadly declining ambitions: first for SVG toys, which I'm incompetent at; then yesterday I was looking into converting the text into an iPython notebook to provide an easier way to interact with the code, and that turned out to be too hard under the deadline. I ended up pushing the article's code into this repo shortly after the article went live.
No problem, thanks for fixing it. I'll be diving back into the article with the code, since it makes for some really interesting reading.
Re:The Language of Choice
by abecedarius on Wednesday October 21, 2015 @01:38PM
(#10427031)
Thanks, and hope you like it!
I've just backported the renaming to Constant into nway_logic, and that example should work unaltered now -- thanks!
For the second, the interface to the decision diagrams does not use variables with names, as explained under 'Systematic succinctness' and demoed in make_alu_inputs() -- I aimed for the simplest code that shows the ideas. But I think you're right that bdd.Variable should've been called something different from logic.Variable.