News for hackers. Stuff that matters.
Re:Performance of Rust and Dart in Sudoku Solving by acjohnson55 on Saturday April 06, 2013 @05:34AM (#5503107)
Man, PyPy got destroyed, let alone CPython! As a Python lover, that's pretty disheartening. I'm not an expert in many of these languages, but it would seem as though it should be possible to build a Python interpreter as fast as V8, even without using Numpy to accelerate the math. Anybody have any thoughts as to why PyPy is such a poor performer here?
Re:Performance of Rust and Dart in Sudoku Solving by RivieraKid on Saturday April 06, 2013 @05:45AM (#5503123)
Python just 8x slower than C and 4x slower than Java? That's actually pretty good result for Python.
Re:Performance of Rust and Dart in Sudoku Solving by cdavid on Saturday April 06, 2013 @07:01AM (#5503255)
I think LuaJIT is the outlier, not python. All other implementations got lots of resources to make them fast, except for LuaJIT.
Re:Performance of Rust and Dart in Sudoku Solving by copx on Saturday April 06, 2013 @07:57AM (#5503327)
PyPy simply isn't at the same level as V8 and LuaJIT yet.

V8 is a professional, full-time project employing some of the best programmers money can buy. And LuaJIT.. well LuaJIT is written by a fucking genius 10x programmer. Let me quote him:

" The reason why X is slow, is because X's implementation is slow, unoptimized or untuned. Language design just influences how hard it is to make up for it. There are no excuses. " Source: http://www.reddit.com/user/mikemike (that's his reddit account)

Python (and Ruby for that matter) could reach a comparable performance level if people with the necessary skills invested the necessary amount of effort.

Re:Performance of Rust and Dart in Sudoku Solving by cdavid on Saturday April 06, 2013 @09:16AM (#5503499)
Indeed, that's what I meant, even though my phrasing was unclear. Thanks for clarifying.
Re:Performance of Rust and Dart in Sudoku Solving by Symmetry on Saturday April 06, 2013 @09:03AM (#5503468)
That's actually an impressively good result. All that wonderful expressive power that Python has comes at a price in implementation complexity, and there are a lot of different cases that the JIT needs to handle with Python. Lua, by contrast, is pretty much Scheme in ALGOL's clothing and is ridiculously simple inside.
Re:Performance of Rust and Dart in Sudoku Solving by jayflux on Saturday April 06, 2013 @09:40AM (#5503547)
Python is a High Level language, it was never designed with the intention of being as fast as C or Java or other lower level languages.

As someone else pointed out the V8 has had a lot of backing and full time development, where as pypy, Cpython hasn't had as much. Pypy is still showing massive improvements despite being the slowest on that list.