News for hackers. Stuff that matters.
Re:Stockfish.js by perihelions on Thursday February 24, 2022 @08:37AM (#30454483)
A related fork [0] powers the web-based tool on Lichess [1]. It's a notable example of WASM in widespread use (I believe it's WASM-by-default on every browser now).

[0] https://github.com/hi-ogawa/Stockfish

[1] https://lichess.org/analysis (in the top-right corner: "Stockfish 14+ NNUE in local browser")

(edit: fixed link to the correct fork)

Re:Stockfish.js by tiffanyh on Thursday February 24, 2022 @08:45AM (#30454558)
FYI - the version you linked to is the “Slower fallback versions of Stockfish for browsers (C++, WebAssembly, JavaScript)” according to Lichess.

https://lichess.org/source

EDIT: nevermind, looks like you changed the link.

Re:Stockfish.js by perihelions on Thursday February 24, 2022 @08:47AM (#30454576)
Thanks, corrected link!
Re:Stockfish.js by WithinReason on Thursday February 24, 2022 @08:51AM (#30454621)
I wonder why Lichess doesn't use multithreading, it was working in a previous version. I mean Brave can use 2 threads but I've seen 8/16 max threads before.
Re:Stockfish.js by JacobLinney on Thursday February 24, 2022 @09:09AM (#30454832)
Lichess on chrome let's me use however many logical processors I have. For whatever reason I can only get a single thread on Firefox.

I'm not sure why either, because a while back I could use how ever many threads I wanted on Firefox.

Re:Stockfish.js by WithinReason on Thursday February 24, 2022 @09:17AM (#30454950)
For me it's:

Chrome: 15 threads, 1 GB memory

Firefox: 1 thread, 256 MB

Brave: 2 threads, 128 MB

Re:Stockfish.js by perihelions on Thursday February 24, 2022 @09:43AM (#30455265)
What a puzzle. I have:

Firefox: 7 threads, 256 MB

Brave: 3 threads, 1 GB

Re:Stockfish.js by tiffanyh on Thursday February 24, 2022 @08:57AM (#30454684)
Lichess doesn’t?

There’s reference to thread support in the library documentation.

https://github.com/hi-ogawa/Stockfish#threads

Re:Stockfish.js by archseer on Thursday February 24, 2022 @09:24AM (#30455035)
You can configure how many CPUs and memory to use under settings
Re:Stockfish.js by WithinReason on Thursday February 24, 2022 @09:31AM (#30455126)
I know, that's what I'm talking about