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
Library or browser API #233
Comments
I think that your point " if it's good, it will gain wide adoption; if it's not, it won't - as would happen to a standardized wrapper " makes a lot of sense. Would anyone really consider putting this in web engine ? Maybe @aShinjiroUrata would like to comment ? as he is representing web browsers vendors in the group. |
Thanks for the comment, Dominique-san, Peter-san.
I'm creating a simple prototype (50% coverage for now) which is basically for the pupose of writing workable test cases.
When a web application developer write an application using VIAS API, the application would be able to run on both 1. and 2. implementation. Therefore defining VIAS has some meaning. Excuse me that my expanation is not very good but in my understanding, this is the reasoning of VIAS in WG discussion. By the way,
what you mean by this sentence is something about types? or any other thing? 2017/9/25 urata revised: |
Uarata-San (@aShinjiroUrata) - I don't disagree that a wrapper around the WebSockets protocol would be useful, but I don't think it needs to be standardized (vs released as an open source library). Regarding web runtime engine provided implementations of the API, I think the only piece that would be needed to be made available directly by the engine is the connection to the VISS server (e.g. if it's not directly reachable otherwise); again, the rest of the wrapper can and should be provided as a library, which provides much greater flexibility than a standardized API. I can see that this approach breaks down if the communication with the vehicle is not done over websockets - but I think it is setting the bar pretty high to expect that any other IPC mechanism will be wrappable in the same API as one defined to wrap a WebSocket protocol. Regarding WebIDL, as it is a language defined for browser-implemented APIs, applying it to JavaScript-implemented ones is awkward - for instance, |
@dontcallmedom -san, excuse me for delayed response.
I understand this as an opinion.
As this is rather a big topic, if other members have opinion, I'd like to listen to it.
In WG discussion, we thought that VIAS API would be realizable over
I understand the point. |
Seems there is no more comment, close this. |
Lack of recent comment is not criteria for closure. This warrants further discussion and consensus before closing. |
Hi. Ok, I understand. |
VIAS is not presently continuing on REC track and was published as a Note. |
VIAS claims to define an API that can be provided as a JavaScript library or implemented in a Web rendering engine.
The best way to provide an API for a JavaScript library is to build such a library - is there a reference implementation of that library? Also, in general, WebIDL brings a lot more constraints on interfaces and objects than a simple IDL, so making a really conformant implementation of the API in JavaScript would be challenging, and probably for no good reason.
Using WebIDL for a Web rendering engine API is naturally the right thing to do - but that seems a bit heavy-handed for something which is basically a wrapper to a Web Sockets (which seems much better served by a library indeed).
It's not clear to me there is value in standardizing a specific wrapper to the Web Sockets protocol: providing the wrapper as a library would seem more efficient. (if it's good, it will gain wide adoption; if it's not, it won't - as would happen to a standardized wrapper)
The text was updated successfully, but these errors were encountered: