Comments (4)
Actually, now that I think about it, it is almost certainly needed to have an alternative type for the else
, because it might not be possible to decode the block type at all if the feature isn't supported.
from feature-detection.
What would the benefit of this approach be over having feature_block
decode as an unreachable? I would expect the unbundled feature_block
to offer slightly more control flow flexibility to producers but otherwise be mostly identical.
from feature-detection.
It would be symmetric with the conditional types, which are proposed to allow an alternative type if not supported.
from feature-detection.
That's fair. (If we had an explicit bottom type I would have reached for that instead for feature_type
, but we don't.)
from feature-detection.
Related Issues (12)
- Assigning an opcode to `features.supported` instruction HOT 2
- Alternative sections HOT 2
- Concern with un-decoded bits / alternative for SIMD HOT 14
- Clarify interactions with runtime vtable dispatch HOT 4
- Ensure functionality can be polyfilled in JS HOT 2
- Do feature detection instructions need to appear in Wasm syntax? HOT 1
- How should features be specified? HOT 2
- What features should be specified? HOT 4
- Is there a dependency on LET? HOT 17
- Feature Detection "is faster" HOT 7
- Does feature_block appear in text disassembly? HOT 4
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 feature-detection.