o***@seznam.cz
2018-05-30 18:21:28 UTC
Having the same API for both the server and the webpage would be really
helpful.
But there is more work to be done than making an implementation of
EventPort, Network and AsyncIoProvider.
For example, how to 'hold on' to JS objects?
WebAssembly can only hold/call JS functions, so store the objects in
captures? Or maintain an external map from opaque ints to objects?
Or that the way the event loop is pumped needs to be rewritten to not block
the browsers event loop. (which includes removing Promise.wait())
Also some parts would need to be removed, eg.: TLS, HTTP (unless you have
a websocket<->TCP proxy) and probably the filesystem API.
Threads could stay because they, like web workers, use streams to
communicate instead of memory.
However, my main concern is if someone else will have a use for this?
Because otherwise it's easier to just tape together some project specific
code and be done.
helpful.
But there is more work to be done than making an implementation of
EventPort, Network and AsyncIoProvider.
For example, how to 'hold on' to JS objects?
WebAssembly can only hold/call JS functions, so store the objects in
captures? Or maintain an external map from opaque ints to objects?
Or that the way the event loop is pumped needs to be rewritten to not block
the browsers event loop. (which includes removing Promise.wait())
Also some parts would need to be removed, eg.: TLS, HTTP (unless you have
a websocket<->TCP proxy) and probably the filesystem API.
Threads could stay because they, like web workers, use streams to
communicate instead of memory.
However, my main concern is if someone else will have a use for this?
Because otherwise it's easier to just tape together some project specific
code and be done.
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+***@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+***@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.