Comments (2)
good call on linking back to the stockfish folks, have done that. I actually started this out as a terraform script, where I'd spin up some EC2 to do the analysis. Turns out all the overhead of installing the dependencies etc takes a fair amount of time, so any benefit you'd get from lower average compute rates there goes out the window. Also it's much easier to parallelize multiple games in the PGN file with Lambda. You can run a 5 min analysis on 400 games in 5 mins this way. I think I'll look into the Parameter Store idea actually - the point of this is to learn more about serverless, so why not. Any way, thanks again.
from python-chess-annotator.
Hey, that's pretty cool. I had an idea to do something similar but never got around to it.
Truth be told I used this project to teach myself python, but that was a long time ago, and now whenever I look at this code I throw up in my mouth a little. I'd love to rewrite it from scratch some day, but there's always something else... pgn2json sounds interesting... ;)
I wonder if another service besides Lambda would be more cost-effective?
By the way, Serverless can read values out of AWS Parameter Store. I'm working on something very similar to this in my day job, except using Lambda to deploy ECS services. By reading the environment variable in from SSM, you could manipulate the value in SSM without redeploying the app. Just a thought.
P.S. Since you're distributing a stockfish
binary you might want to consider adding a link in the README back to the repo where you got the code.
from python-chess-annotator.
Related Issues (20)
- -h does not work HOT 2
- Insert human readable commentary HOT 9
- add ?!, ? and ?? HOT 2
- Always annotate the final position HOT 2
- Logging messages should not use string formatting HOT 1
- disregard
- Setting ACPL headers on a root node fails due to new validation in python-chess
- Use reversed() instead of this weird inverted manual for loop stuff HOT 3
- Use reversed(node.mainline()) instead of manually looping backward all the time HOT 1
- Close the eco json file
- Leftover gnuchess process
- Don't use "assert" for failure mode detection
- Broken with recent versions of python-chess
- Zero division error in ACPL calculations
- Division by zero if ply_count = 0 HOT 4
- A few questions about how this works HOT 6
- ZeroDivisionError: float division by zero -- seems to be a different one from reported previously HOT 12
- How to save the result? HOT 4
- Constantly opens a new Stockfish.exe. Because of this, in the task manager, a lot of open stockfish.exe. The program apparently on each batch opens the Stockfish anew. And the old process does not close. How to solve this problem? Because of this, the RAM is overflowed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-chess-annotator.