-
Notifications
You must be signed in to change notification settings - Fork 695
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
Clarify text format standardization. #65
Conversation
I had actually been assuming that we would be standardizing the text format as part of v.1 for several reasons:
These two use cases are, I think, very important to the "webiness" of WebAssembly. Also, if we don't standardize the text format, then each browser will do its own ad hoc thing as well as 5 ad hoc assemblers and then we'll be in a world of hurt. |
I agree with @lukewagner. We are not requiring that browsers implement direct support for reading and executing the text format, but it should be standardized so that it is consistent across browsers in view source, as well as in libraries that write some parts in the text format directly ("inline wasm"), and other places etc. |
Good point re: inline wasm! I forgot about that. |
Great points, I'm convinced! I changed the text to hopefully reflect time. |
Clarified what @lukewagner pointed out. I didn't want to say "will not need to parse" because it still implies that they can parse wasm text to implement the semantics. I'd rather disallow parsing wasm text for anything but tooling. |
I am bit naïve here. Why do you want to disallow parsing wasm text? It is equivalent to binary format. "Need not parse" should sufficient to not enforce the engines to implement one. |
It's mainly to prevent divergence between browsers, and prevent developers from shipping the text format when the binary one is what should be shipped. |
That makes sense to me; the text doesn't say a browser can't parse the text format for devtools, just as part of the normal web content visible semantics. |
I agree with @jfbastien's first point, it seems wise to prevent divergence between browsers. If we allow parsing text, and only some browsers do it, that seems risky - sites might be tested on one and fail on another. (On the other hand, I'm not worried about the second point - we shouldn't do this just to prevent people from shipping text by mistake.) |
@kripken well, if the sole reason for the existence of this format is efficiency then we shouldn't allow developers to inadvertently do the wrong thing. |
I can see that point, but there are use cases where that efficiently doesn't matter, and the text format might be nice. Such as write some wasm in text, and reload the site, with no build step. But, I think avoiding divergence is a reason to disallow that. |
Closing in favor of #73 (I rebased instead of merged, git was sad, I need coffee so new PR it is!). |
No description provided.