GithubHelp home page GithubHelp logo

Comments (5)

niklasf avatar niklasf commented on May 23, 2024

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.

honkskillet avatar honkskillet commented on May 23, 2024

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.

niklasf avatar niklasf commented on May 23, 2024

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.

honkskillet avatar honkskillet commented on May 23, 2024

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.

honkskillet avatar honkskillet commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.