News for hackers. Stuff that matters.
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side by scott_s on Wednesday March 30, 2011 @09:36AM (#2387085)
The design of the Clojure code can be clearly seen from the Python code. But I'm not sure if that's idiomatic Clojure. I'd like to see what the Clojure version would look like if a Clojure programmer solved the problem without looking at the Python code first. That would give me more insight into the differences between the languages.
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side by swannodette on Wednesday March 30, 2011 @09:55AM (#2387170)
Follow Norvig's lead from Paradigms of Artificial Inteligence - write fast embedded paradigms. So write a performant Constraint Solver DSL couple it with a performant Prolog DSL. Solve all kinds of problems declaratively instead of just Sudoku. I've been working on that https://github.com/swannodette/logos ;)
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side by puredanger on Wednesday March 30, 2011 @09:51AM (#2387143)
Yeah, I started a port of this code into Clojure about a year ago with no attempt to keep the design and it diverged a bit. I never finished it though as my plane landed. :)