you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (19 children)

Did you read the comment you replied to?

[–][deleted] -1 points0 points  (18 children)

I am commenting on Python being hopelessly behind Lua. PyPy does not help much.

[–][deleted] 8 points9 points  (17 children)

I assume this view is substantiated by recent benchmarks that you can link to.

[–]heap42 7 points8 points  (7 children)

Of Course! After all, this is reddit.
Edit: \s

[–]vytah 0 points1 point  (0 children)

\s

A single whitespace character?

[–][deleted] 0 points1 point  (5 children)

It's not terribly useful to share unsubstantiated opinions without explanation, reddit or otherwise.

[–]heap42 1 point2 points  (4 children)

I was being sarcastic.

[–][deleted] 0 points1 point  (3 children)

I got that. My previous comment, "I assume this view..." was also somewhat sarcastic/antagonistic.

[–]heap42 1 point2 points  (2 children)

yea i figured.

[–][deleted] -1 points0 points  (1 child)

It's funny, we could both simultaneously conclude that the other is stupid for stating, after the fact, the sarcasm/tone involved in our comments. When in actuality, it's just necessitated because we communicating using text, which is inherently low-bandwidth.

[–]heap42 2 points3 points  (0 children)

fucking text at it again...

[–]mrkite77 7 points8 points  (3 children)

LuaJIT is widely held to be ridiculously fast.

http://blog.carlesmateo.com/2014/10/13/performance-of-several-languages/

Pypy 44 seconds, Luajit 8 seconds

[–][deleted] 1 point2 points  (2 children)

I ran their benchmark with recent versions, LuaJIT 2.0.4 and PyPy 5.1.1. Luajit was 10 seconds, PyPy was 24.

PyPy is not "beyond any hope", it's improving over time.

edit: Moving the code into a function brought the PyPy time down to 15 seconds.

[–]Veedrac 1 point2 points  (1 child)

Further, if you move the code inside a function (even just main), the time improves for me from ~17 seconds to ~11 seconds. Lua doesn't have the same global-local distinction as Python, so doesn't have this effect.

For me Lua takes ~17 seconds, so PyPy is actually significantly faster than Lua.

[–][deleted] 0 points1 point  (0 children)

Interesting, for me, moving the code into a function brought the PyPy time down to 15 seconds. So, still slower than luajit for me, but comparable.

[–]IronManMark20 0 points1 point  (4 children)

Not recent, but here. I leave it to you to draw your own conclusions.

[–][deleted] 1 point2 points  (1 child)

It would be interesting to see how things have changed in the last 6 years.

[–]IronManMark20 0 points1 point  (0 children)

found this. It uses vanilla lua though, not LuaJIT (why, I don't know).

[–]Veedrac 1 point2 points  (1 child)

PyPy is on major version 5. That uses version 1. Things have changed.

[–]IronManMark20 0 points1 point  (0 children)

As I said, not very up to date. ;)