--
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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
> Of course its very early days for wasm, but I'm following it and just
> beginning to play around with it.
Worth pointing out, there's also Emscripten, which has been around a
while. So that could be used while wasm support filters into things.
I have had somebody use GopherJS to read data client side. It works, but I can't vouch for how well.
What parts are you having difficulty with representing in JS? Are you still on serialization or the RPC part? I found that for Go I would look at the C++ implementation to get the spirit of a feature, and then write it very differently to fit in with Go.
--
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscribe@googlegroups.com.
I don't think WASM is likely to be a good fit here, for two reasons:1) libcapnp and libkj together add up to some 730k of code (text segment) these days. Unless emscripten builds are significantly smaller, that's probably too big. (If you stick to lite mode, it's still 401k, which is still probably too big.)
2) The interface between JS and WASM would probably be very slow if every accessor has to go through it. You'd probably end up wanting to translate the whole capnp to a JSON object upfront, which of course defeats a lot of the purpose.
So I definitely think a pure-JS implementation is still desirable.
2) The interface between JS and WASM would probably be very slow if every accessor has to go through it. You'd probably end up wanting to translate the whole capnp to a JSON object upfront, which of course defeats a lot of the purpose.I'm hoping shared memory might be used, we could have serdes in wasm and access in JS, take with huge grain of salt :)
--
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+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
"serdes"?
On Sun, Apr 9, 2017 at 10:22 PM, Kenton Varda <ken...@sandstorm.io> wrote:
On Sun, Apr 9, 2017 at 7:04 PM, Wink Saville <wi...@saville.com> wrote:2) The interface between JS and WASM would probably be very slow if every accessor has to go through it. You'd probably end up wanting to translate the whole capnp to a JSON object upfront, which of course defeats a lot of the purpose.I'm hoping shared memory might be used, we could have serdes in wasm and access in JS, take with huge grain of salt :)But in Cap'n Proto, there is no serdes. All of the logic happens at access time.-Kenton
--
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.
--Cheers,
--MarkM
-Kenton
--
--
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
--
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.
--Cheers,
--MarkM
--
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.
If anyone is really interested in using this stuff today please reach out to me so I can better understand what you need and perhaps rearrange how I implement things. Otherwise, there's still lots to do before 1.0.0!
PS: For the compiler nerds: the schema compiler actually uses the TypeScript compiler API directly to build an AST before printing it to a file.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscribe@googlegroups.com.
Appreciate the endorsement!I did in fact borrow some of that test data directly, though there's an interesting divergence in the TypeScript version of the packing algorithm so I wound up editing segmented-packed by hand to match: https://github.com/jdiaz5513/capnp-ts/pull/10.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscribe@googlegroups.com.