Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The engine I'm referring to, Sunfish, has a highest rating of 2100 on lichess and a current rating just under 2000. That's better than 90% of people that play chess often, and far better than general population. So it plays well by most human standards, but there's still room for improvement. But that's a very computationally intensive task, and bare python is good enough. My point is it's not as simple as saying "python is slow" because most of the time it's good enough to do what you would want it to do.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. Return removed
Python is capable of doing things at runtime that are really hard to statically compile around, such as monkeypatching methods onto existing objects. You can compile it, but it's complicated. One strategy is to use a JIT that can observe application state at runtime and then invalidate code as it becomes obsoleted by changes, but it's complicated. See pyjion for an example.
Related posts
- Sunfish is a simple, but strong chess engine, written in Python
- Looking for mod friendly python chess program.
- Look what I found here. I used to play with it a lot because I have no friends. Do you guys have something similar?
- The Kilobyte's Gambit: Can you beat 1024 bytes of JavaScript [at chess]?
- Can you defeat a chess engine written in 1KB of Javascript?