Comments (3)
FYI it seems likely that Safari will support SIMD in version 16.3 sometime in February/March. At that stage, all engines support the feature 🥳
from wasm-vips.
Hello, the pre-built binaries currently requires an engine that supports Wasm SIMD. However, you can still build binaries without this feature, by passing the --disable-simd
build parameter.
Assuming you have Docker installed (or another OCI-compliant container runtime, such as Podman) and using a Unix-like environment (otherwise $(pwd)
does not work), you can use the build
command available in package.json
.
Line 40 in 9f6cc94
For example:
$ npm run build -- --disable-simd
There's a possibility that I can provide pre-built binaries that does not use SIMD as a fallback (e.g., for compatibility with Safari, which at the time of writing does not support that). However, I don't know if that makes sense, given that Wasm SIMD is standardized, and is likely to become a mandatory feature in Wasm 2.0.
FWIW, I'm also planning to make use of the standardized reference types feature, which is enabled by default on V8-based engines after commit v8/v8@1771e4a (corresponds to V8 9.9.2, Chrome 96, Node.js 18.0.0, Deno 1.20.0). It's a bit too early to enable that and should happen after Node 16.x reaches EOL. Fortunately, this feature is supported by Safari and should already be safe to enable on Firefox (supported since version 79, so that doesn't require increasing the minimum version).
from wasm-vips.
Thx for your reply.
I will try to build the no simd version according to the method you said.
In my region, for some reason, chrome is not popular, replaced by various custom browsers based on chromium.
And these browsers don't seem to care about updating the chromium version, so we have a large number of users using outdated browsers (nearly 80% of people use the chrome86 kernel version of the browser).
That's why I need the no simd version.
from wasm-vips.
Related Issues (20)
- Support custom `stdout` and `stderr` HOT 5
- deno support HOT 2
- WebAssembly.Memory Error HOT 1
- Certain parameters on `jpegSaveBuffer` ignored HOT 4
- Is it possible to use wasm-vips without concurrency and workers? HOT 4
- ```Uncaught RuntimeError: Aborted(OOM)``` when writeToBuffer HOT 2
- DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL HOT 3
- Consider using new libtiff build flags HOT 2
- Build fails when compiling for node-es6 HOT 2
- Does this work with `sharp`? HOT 3
- `heifsave` is not defined HOT 3
- `wasm-vips` is unstable on Node `18.14.2+` and `19.4.0+` HOT 11
- Unstable on Deno HOT 2
- Playground feature request: ability to import file from disk HOT 3
- `WasmTrapJSTypeError` while loading an SVG when building with LTO HOT 3
- Docker compilation error HOT 6
- setup wasm-vips for next.js/react HOT 3
- TS types improvements HOT 3
- writeToBuffer increases RSS size till OOMKilled HOT 3
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 wasm-vips.