Live data from Hacker News

Rubyist makes some Python code 5x Faster

schneems.com

1–10 of 12 posts

Re: Rubyist makes some Python code 5x Faster

#4
post #3

I thought it was an insane CPython interpreter optimization or something. Turns out it was a specific chunk of python snippet that > determining all possible moves for a Queen piece on a chess-like board

Yep, that's what I thought as well and was curious to see the link between the author being a rubyist and contributing to python. Too bad it wasn't any such thing.

On the plus side tho', I thought the principles mentioned go beyond the specifics of the code snippent which was being used more like an example.

The author being a rubyist has no influence to anything mentioned in the article AFAICT.

Re: Rubyist makes some Python code 5x Faster

#6

Ugh, what's with the cheeky/inflammatory/click-baity title. That's a turn off from an otherwise good article on guidelines one can use to easily identify opportunities to potentially optimize python code.

Huh? I thought the title was a perfect description of the article. A dude who mostly uses ruby optimizes a piece of Python code. That's it.

Re: Rubyist makes some Python code 5x Faster

#9

Ugh, what's with the cheeky/inflammatory/click-baity title. That's a turn off from an otherwise good article on guidelines one can use to easily identify opportunities to potentially optimize python code.

Huh? I thought the title was a perfect description of the article. A dude who mostly uses ruby optimizes a piece of Python code. That's it.

The "rubyist" is completely irrelevant to the article. The optimizations might apply as well in any number of languages, because they all are related to minimizing heap allocations and keeping the execution pipeline lean (e.g. by minimizing function calls).

It's fairly easy to think from the title that the article is going to be something about how clever the rubyist is compared to Python programmers or how slow Python is or some such, as an intrinsic property of "rubyists" or Python.

Post reply on HN