Comments (5)
Correct, the current feature detection is only intended for browser, but if you can figure out a way to feature test for node, I am happy to add it.
Some of these things can be pretty application specific (growable memory required? fallback to single-threaded wasm? fallback to js? run a pool of fallbacks? ...), so I've hesitated to add more than the example.
from stockfish.wasm.
Related question, in the readme it says that the only browser that supports this package is firefox. But when I go to https://lichess.org/analysis, even in safari it says it is using "Stockfish 10+ WASM". Is that this package (or the .wasm from stockfish.js)?
from stockfish.wasm.
Multi-threaded WASM is supported by Firefox, Chromium (and thus Chrome and Edge).
"Stockfish 10+ WASM" is single threaded WASM, though. Multi-threaded WebAssembly on Lichess would show as "Stockfish 12+ WASMX" (for eXperimental).
from stockfish.wasm.
Ah. Yes, my Firefox needed to be updated. I get WASMX when I check on Chrome and Firefox now.
I'm boing to close this issue d/t your first response
from stockfish.wasm.
PS. What I've been doing on Node is pretty Naive. i just check that the version is 14 and that the experimental flags are included in the process variable.
from stockfish.wasm.
Related Issues (20)
- pthread sent an error! undefined:undefined: undefined HOT 3
- Reuse(?) Stockfish HOT 2
- LDFLAGS duplicate code HOT 1
- Lift 16 Thread limit for Ryzen and future Processors HOT 7
- Max memory for analysis on Firefox = 32MB HOT 3
- position move and position fen messages generate different stockfish output HOT 1
- How do I set the HTTP headers HOT 9
- compile c++ to wasm via Emscripten HOT 4
- compile c++ to wasm (old version) HOT 3
- compile c++ to .js.mem & .wasm HOT 1
- Multi Threads limitations Problem HOT 1
- stockfish.js.mem lost file in version 5 HOT 1
- convert c++ to javascript
- How to kill process created by Stockfish()? HOT 2
- How do I receive the engine output in my code?
- How to handle errors when "set position IMPOSSIBLE_FEN" HOT 2
- In vanilla stockfish you can use UCL_LimitStrength and UCL_Elo to weaken stockfish, can this be achieved in the wasm port somehow? HOT 1
- pthread sent an error HOT 5
- error when building with em++ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stockfish.wasm.