flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > A weekend Python project: Elo-style ratings for tennis players

Author
Thread Post new topic Reply to topic
EthanWalker52



Joined: 26 Jun 2026
Posts: 1
EthanWalker52 26 Jun 2026, 14:37
Hello all,

Mostly an assembly lurker here, but this one belongs in the high-level corner. For the last few months I've been chipping away at a small side project in Python: a system that rates professional tennis players with an Elo-style algorithm, fed with historical ATP/WTA match results.

What started as a quick experiment turned into a proper little rabbit hole — tuning the K-factor, weighting matches by surface, and decaying old results so a player's rating reflects current form rather than their career peak. The maths itself is simple enough, but getting the data pipeline clean and the parameters sensible took far longer than I expected.

It runs fine in Python, but once I feed it a few decades of matches the recompute starts to drag, and I keep eyeing the idea of rewriting the hot loop in something closer to the metal (which is probably why I keep ending up on this board).

Has anyone here built rating or ranking engines for sport or games? What did you reach for, and did you bother optimising the number-crunching, or just let the high-level language handle it? Always curious how people approach this kind of thing.
Post 26 Jun 2026, 14:37
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20998
Location: In your JS exploiting you and your system
revolution 26 Jun 2026, 15:15
All programs that are used for long enough will become slow as they expand to do more.

So for me I don't even think about HLL, I go straight to assembly first time. Might as well get it right first time and skip the intermediate steps IMO.
Post 26 Jun 2026, 15:15
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.