by dragontamer · 4y ago · 0 comments
It turns out that chess-playing programs have standardized upon UCI (Universal Chess Interface), meaning any chess-playing program, (IE: Stockfish and Leela Chess) can interface with any UCI program (in this case, SCID vs PC).
SCID vs PC can then be tuned to whatever you think is appropriate for review. Add the tablebases if you want perfect endgame analysis, or favor faster reviews with less analysis (if you're going for speed). Or you can run analysis overnight, if you want the computer to spend 20+ minutes per position.
--------
With an actual analysis program like SCID vs PC, you can try variations and deeper studies than what either chess.com or lichess.org can offer. There's no replacement to just running these calculations on your own very capable computers... rather than leveraging the limited compute abilities of a shared server with a thousand players on it. (Or in the case of lichess, I think its a Javascript program instead of a proper x86-assembly tuned high-speed analysis bot).
Stockfish in particular has a nifty quirk: most of its analysis is done in a giant hash table of positions. Meaning variations / transpositions are very quick for Stockfish to analyze (or more like, Stockfish probably has a variation already partially-analyzed before you even decided to think about it yourself. The hash table stores this partial analysis, and allows Stockfish to have a leg-up on analyzing the position when you decide upon exploring that variation).
--------
The equivalent for Go is Lizzie, which is easier since Lizzie comes with LeelaZero and KataGo already. (KataGo is the superior analysis engine IMO. Both are superhuman, but KataGo's score-based analysis is more useful for finding endgame mistakes).
So no, it is just just some Javascript program.
And as far as I know, essentially every modern chess engine uses a hashtable of positions such that transpositions are essentially free. This isn't a unique "quirk" of Stockfish.
Running Stockfish 30% to 40% slower for no reason at all, and with far less RAM / resources means that you'll get weaker analysis at slower speeds.
And those "tuning options" include tablebases, which would provably play perfectly (and Stockfish is smart enough to "think" with tablebases: if it can prove a won position with a tablebase, it won't bother exploring and will just report the mate-in-300 immediately)
Even if 100% true, this is a complete non-issue. Absolutely nobody reading this comment is going to notice a meaningful difference or benefit from running their games against a 3550 Elo engine running hand-optimized x86 instructions versus a 3200 Elo engine running in WASM in the browser.
The extreme convenience of pressing one button to receive high-quality analysis (and ongoing live analysis powered by a WASM engine) beats the annoyance of exporting your games to PGN and importing them into an external UI just for the sake of analyzing your games even farther past the horizon that humans will ever truly be able to understand. If you're a competitive GM or Super GM? Sure, maybe that level of analysis will help you find unexplored lines for your preparation. Fro anyone else? It's completely irrelevant.
Its one button click for me.
"Download .PGN" button -> open with SCID vs PC (which I setup as the default app for PGNs).
I hit "F2" and bam, analysis is going on already. Sure, you have to set it up so that the F2 engine is Stockfish / tuned parameters as appropriate, but in the long run, having control of this is clearly beneficial. Especially if you're going to be using computer analysis to teach yourself more advanced tactics.
Every single sliding piece (ie: Rooks, Bishops, and Queens) use PEXT (or magic-bitboards if the PEXT code is unavailable) to determine where to go. Its a fundamental calculation to determine very, very quickly which moves are legal or not.
Both PEXT and Magic Bitboards are incredible techniques for solving the sliding-piece question. However, PEXT is much much much faster, but relies upon an obscure x86-only assembly instruction (that is slower on AMD Zen or Zen2 unfortunately. So you still need to know your hardware details, Intel machines should use the PEXT version).
---------
Still, even AMD users want the BMI2 version, which has a bunch of bit-operations that can be optimized that are used all the time. (And besides, AMD Zen3 is actually faster on PEXT now, so PEXT is looking good for the future)
-----
In either case, I have my doubts that the NNUE neural-net runs anywhere near as good on WASM than on the hand-optimized SIMD / AVX kernels that the Stockfish team wrote.
Even if there's some auto-vectorization that WASM can do, its really hard to beat handcrafted assembly / intrinsics (https://github.com/official-stockfish/Stockfish/blob/master/...)
The web client uses Stockfish compiled to WASM which is decently fast.
If you're not an IM/GM, it's "good enough"
It was last updated on 5th December 2021, next release will be 1st Jan 2022 (since World Rapid/Blitz championship is on-going and I want to roll that into it).
Stockfish compiled to multithreaded WASM (on supporting browsers)