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.
https://github.com/nmrugg/stockfish.js/search?q=goto
Five occurrences of goto, for anyone that's curious. The code is pretty easy to read, good variable names, some explanatory comments. The gotos don't make spaghetti. I'm inclined to think the writers knew what they were doing, though goto offends my sensibilities as much as anyone.
Could anyone with more experience explain the pattern? Why gotos for control flow along with >thousand line functions?
How does this compare to stockfish-nnue.wasm [0] which is used on Lichess.org [1]
[0] https://github.com/hi-ogawa/Stockfish
[1] https://lichess.org/source