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

WASM runtime in the .NET 8 enables EH and SIMD instructions by default. #30151

Closed
pavelsavara opened this issue Aug 25, 2023 · 5 comments · Fixed by #30152
Closed

WASM runtime in the .NET 8 enables EH and SIMD instructions by default. #30151

pavelsavara opened this issue Aug 25, 2023 · 5 comments · Fixed by #30152
Assignees
Labels
8.0 .NET 8 Blazor doc-enhancement Pri1 High priority, do before Pri2 and Pri3

Comments

@pavelsavara
Copy link
Member

WASM runtime in the .NET 8 enables EH and SIMD instructions by default.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added Blazor Source - Docs.ms Docs Customer feedback via GitHub Issue labels Aug 25, 2023
@guardrex guardrex added doc-enhancement 8.0 .NET 8 and removed Source - Docs.ms Docs Customer feedback via GitHub Issue labels Aug 25, 2023
@guardrex
Copy link
Collaborator

@pavelsavara ... I think this is a duplicate of #28996, which was resolved by #28997.

The live content is at ...

https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=windows#net-webassembly-build-tools

btw ... to track .NET 8 Blazor doc work, I have an issue every year that shows where I'm at with everything ...

#28161

I'll close as completed, but let me know if more work needs to be done.

@guardrex
Copy link
Collaborator

For ...

.NET 8 enables EH and SIMD instructions by default.

... we might need to update it after all. It currently tells devs that ...

To enable WebAssembly exception handling, use the property in the app's project file (.csproj) with a value of true:

... and shows the MS Build config.

Should that be removed for >=8.0?

@guardrex guardrex reopened this Aug 25, 2023
@guardrex
Copy link
Collaborator

guardrex commented Aug 25, 2023

Yes, I think that's right. Also, since it's enabled by the default the guidance should be showing how to disable it for >=8.0, so I'll change that section and ping u on the PR. Currently, it only states in the text that it's enabled by default.

I'll fix it now and ping u on the PR.

@guardrex guardrex added the Pri1 High priority, do before Pri2 and Pri3 label Aug 25, 2023
@pavelsavara
Copy link
Member Author

You may need to switch it off, for example when you are targeting old/mobile devices.
Here are details on how https://github.com/dotnet/runtime/blob/main/src/mono/wasm/features.md#simd---single-instruction-multiple-data

@pavelsavara
Copy link
Member Author

And note it's broken right now dotnet/runtime#89302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.0 .NET 8 Blazor doc-enhancement Pri1 High priority, do before Pri2 and Pri3
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants