Re: [capnproto] Standardized schema interchange

2020-09-30 Thread 'Kenton Varda' via Cap'n Proto
On Wed, Sep 23, 2020 at 11:52 PM Ryan Patterson wrote: > Hi Kenton, thanks for weighing in! > > > I don't think the generated code would implement the getSchema() RPC > directly for each type. Instead I think I'd add a new method to the > `Capability::Server` and `ClientHook` like: > > I think we

Re: [capnproto] How to keep some incoming messages as is and reuse?

2020-09-30 Thread 'Kenton Varda' via Cap'n Proto
Hi Ambrase, copyToUnchecked() does not write a segment table at the beginning of the message. That's probably why you're seeing a message 8 bytes shorter. copyToUnchecked() and readMessageUnchecked() are difficult to use correctly (and are insecure when used incorrectly). I strongly recommend aga

Re: [capnproto] Implementing Level-3 Protocol (in Go)

2020-09-30 Thread Louis Thibault
Alright, it seems like everyone is eager to meet this Friday, so let’s do that. :) See you all on Friday, as initially planned. - Louis > On Sep 30, 2020, at 17:08, Kenton Varda wrote: > > I'm still happy to chat this Friday. > > -Kenton > > On Wed, Sep 30, 2020 at 3:41 PM Louis Thibault <

Re: [capnproto] Implementing Level-3 Protocol (in Go)

2020-09-30 Thread 'Kenton Varda' via Cap'n Proto
I'm still happy to chat this Friday. -Kenton On Wed, Sep 30, 2020 at 3:41 PM Louis Thibault wrote: > 100% agree — let’s not lose momentum. I’ll send out another invite when > we hear back from Ross. > > Cheers, > Louis > > On Sep 30, 2020, at 16:27, Ian Denhardt wrote: > > I'm okay re-schedul

Re: [capnproto] Implementing Level-3 Protocol (in Go)

2020-09-30 Thread Louis Thibault
100% agree — let’s not lose momentum. I’ll send out another invite when we hear back from Ross. Cheers, Louis > On Sep 30, 2020, at 16:27, Ian Denhardt wrote: > > I'm okay re-scheduling for the 16th if others are. I think we should > just plan to move forward one way or the other from there t

Re: [capnproto] Implementing Level-3 Protocol (in Go)

2020-09-30 Thread Ian Denhardt
I'm okay re-scheduling for the 16th if others are. I think we should just plan to move forward one way or the other from there though; there's some utility maybe in having Kenton work out the kinks first, but ultimately I feel like I understand things well enough to move ahead of the C++ implementa

Re: [capnproto] Implementing Level-3 Protocol (in Go)

2020-09-30 Thread Louis Thibault
Hi Kenton, Thanks for your email and congratulations on the launch! Looks really cool! > It'll probably take the least time overall if I can manage to take an initial > crack at it first in C++ and just power through things, rather than have > other people try to implement the spec as written

Re: [capnproto] Implementing Level-3 Protocol (in Go)

2020-09-30 Thread 'Kenton Varda' via Cap'n Proto
Sorry for the very slow response this time. We had a big launch on Monday and I haven't had much time to reply to e-mail. Incidentally that launch is vaguely relevant here. https://blog.cloudflare.com/introducing-workers-durable-objects/ We built the infrastructure for this on Cap'n Proto. When