News for hackers. Stuff that matters.

datavorous_

zero games were thrown away for castling, because i forced stockfish not to castle (and not to play en passant/promotion) by filtering legal moves and only giving those filtered moves via root_moves

so every game stayed in the same no castling variant

and you're right, this rating is for that constrained variant, not full chess.

Thanks for pointing it out! I will try to patch it.

Appreciate you taking the time to test it.

Oh well, the file initially looked like https://github.com/datavorous/sameshi/blob/7ab4e47144f96becd...

It is hideous now!

none.

scribbling long enough on a piece of paper is more enjoyable than prompting.

maybe for very low ratings it's plausible? 1 elo per byte might happen in a tiny range but at a useful strength it would break fast, that's what i think
i forced stockfish to play only non castling, non en passant, non promotion moves by filtering legal moves and passing only those as root_moves

also removed castling/EP rights from FEN

Show HN: Sameshi – a ~1200 Elo chess engine that fits within 2KB

https://github.com/datavorous/sameshi

I made a chess engine today, and made it fit within 2KB. I used a variant of MinMax called Negamax, with alpha beta pruning. For the board representation I have used a 120-cell "mailbox". I managed to squeeze in checkmate/stalemate in there, after trimming out some edge cases.I am a great fan of demoscene (computer art subculture) since middle school, and hence it was a ritual i had to...

( Read More... | 71 comments | 95 points | on HN )

Show HN: Spheni – A Vector Search Engine in C++ built from scratch, for Python

https://github.com/datavorous/spheni

Hey HN,I've been building a small in-memory vector search library as a way to explore ANN systems from first principles. I was inspired by Spotify's annoy, and Meta's FAISS.Currently, it's a CPU-first C++ library with Python bindings that supports Flat/IVF indexes and Cosine/L2 distance metrics. There's a Colab notebook linked in the README if you want to try it quickly without installing...

( Read More... | no comments | 2 points | on HN )