Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove note stating SSE 4.1 is required for WASM SIMD #7231

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

190n
Copy link
Contributor

@190n 190n commented Jan 4, 2025

WASM is just a specification. Nothing in it requires any features from the host CPU; you can always emulate complex WASM features using simpler CPU instructions.

The PR that originally added this note (#7167) referenced a discussion in Wasmtime: bytecodealliance/wasmtime#3809. However, nothing in that issue means that it's impossible to implement WASM SIMD without SSE 4.1. It just means that Wasmtime specifically didn't want to at the time, because it's harder. In fact, according to bytecodealliance/wasmtime#3810 they do now support SIMD instructions on CPUs without any optional extensions.

I haven't investigated whether any browsers or runtimes other than Wasmtime impose CPU requirements to use WASM SIMD. But if they do, such notes should probably go on the browser and not on the feature.

@Fyrd Fyrd merged commit 6bf6fcc into Fyrd:main Jan 9, 2025
1 check passed
@Fyrd
Copy link
Owner

Fyrd commented Jan 9, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants