Re:Peter Norvig's Sudoku solver: Clojure & Python side by side
by fogus on Wednesday March 30, 2011 @09:51AM
(#2387144)
Don't want to start a religious war,
but to me the Python code just looks more
clean.
It would be annoying if one did start. Unfortunately some people like to think that they know what you should find more clean.
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side
by nickik on Wednesday March 30, 2011 @08:16AM
(#2386841)
Its a straight code port. I think it would if norvig would of used CL or Clojure you could say the same thing to a python port.
I do agree that the python code looks a little cleaner but both look fine.
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side
by alecco on Wednesday March 30, 2011 @09:45AM
(#2387120)
I really like Python, but CPython is an ugly monster.
Edit: did the down-voters ever cared to read the code or even write a Python module in C?
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side
by Confusion on Wednesday March 30, 2011 @11:53AM
(#2387796)
I think that, like me, the downvoters don't understand what CPython has to do with anything.
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side
by alecco on Thursday March 31, 2011 @12:07PM
(#2392129)
To be aware there's a mess under the hood and it's not going away anytime soon.
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side
by nickik on Wednesday March 30, 2011 @10:01AM
(#2387198)
Isn't pypy pretty fast and feature comple? Im not up to date.
Re:Peter Norvig's Sudoku solver: Clojure & Python side by side
by kingkilr on Wednesday March 30, 2011 @12:32PM
(#2387944)
Yes, our current release implements Python 2.5 completely, and our trunk implements 2.7. As for speed, I'll let: http://speed.pypy.org/ speak for itself.
I am amazed that Python ran anywhere close to Closure in terms of speed, let alone faster!