Lila: make a multi-variant build of stockfish.wasm

Created on 4 Dec 2019  路  3Comments  路  Source: ornicar/lila

Option to choose the number of cpus for analysis does not appear when you use board editor -> analysis.

Steps to reproduce:

  1. Go to https://lichess.org/editor
  2. Click analysis board
  3. Click the hamburger option. "Cpus" bar is not there.

Compare to going to https://lichess.org/analysis straight away

Tested on Chrome and Firefox.

no scala

Most helpful comment

https://github.com/ornicar/lila/issues/5719#issue-532815869: The multi-threaded Stockfish build is currently not capable of analysing some impossible positions (for example with more than 32 pieces). So to be safe, it is not used for positions coming from the editor. This could of course be improved: Simply test if the position is reasonable first.

https://github.com/ornicar/lila/issues/5719#issuecomment-561836966: This depends on support for SharedArrayBuffer, which is disabled in Firefox due to Sprectre and related attacks. It can be manually enabled in about:config, by setting javascript.options.shared_memory to true. But this is a slight security risk.

Chrome already implemented the necessary tab isolation and enabled it by default.

All 3 comments

I don't have this setting if I go to /analysis straight away either.
Don't think I've ever seen it..

Latest Firefox.

https://github.com/ornicar/lila/issues/5719#issue-532815869: The multi-threaded Stockfish build is currently not capable of analysing some impossible positions (for example with more than 32 pieces). So to be safe, it is not used for positions coming from the editor. This could of course be improved: Simply test if the position is reasonable first.

https://github.com/ornicar/lila/issues/5719#issuecomment-561836966: This depends on support for SharedArrayBuffer, which is disabled in Firefox due to Sprectre and related attacks. It can be manually enabled in about:config, by setting javascript.options.shared_memory to true. But this is a slight security risk.

Chrome already implemented the necessary tab isolation and enabled it by default.

With support in Firefox 79 and Chrome SAB now seems stable enough to attempt a multi-variant port.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AdmiralA picture AdmiralA  路  3Comments

niklasf picture niklasf  路  3Comments

thomas-daniels picture thomas-daniels  路  4Comments

ddugovic picture ddugovic  路  4Comments

aloisdg picture aloisdg  路  4Comments