Sweet! On Thu, Jun 8, 2017 at 7:01 PM, Julián Díaz <jdiaz5...@gmail.com> wrote:
> 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! > I can wait until its more ready, but once it is I'll be eager to try it out in Sandstorm. It would be amazing if we could retire node-capnp which Sandstorm uses currently. It leaks a lot of memory due to inability to GC through C++ objects and the V8 C++ API being hard to use correctly in general. Of course, we'll need RPC before this can happen. 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. > Nice! -Kenton > > On Thursday, May 11, 2017 at 12:58:03 PM UTC-4, Julián Díaz wrote: >> >> Can't use proxies at all in TypeScript unless I set the target to ES6 - >> right now I want to keep it compiling to ES5 so it's immediately useful for >> a wider range of people. >> >> It also seems like it's going to perform like crap: >> http://thecodebarbarian.com/thoughts-on-es6-proxies-performance.html >> >> I'll add it to the TODO, regardless; a separate ES6 build would be useful >> for many people. I could document it with the caveat that .get() will >> always be faster. >> >> On Thursday, May 11, 2017 at 11:10:16 AM UTC-4, Kenton Varda wrote: >>> >>> On Wed, May 10, 2017 at 11:17 PM, Mark Miller <eri...@gmail.com> wrote: >>> >>>> https://kangax.github.io/compat-table/es6/ >>>> >>>> It looks like proxies are supported everywhere. >>>> >>> >>> Unfortunately a lot of people still use old browsers. >>> >>> http://caniuse.com/#feat=proxy -- click on the "usage relative" box. >>> >>> -Kenton >>> >>> >>>> >>>> >>>> On Wed, May 10, 2017 at 8:54 PM, Kenton Varda <ken...@sandstorm.io> >>>> wrote: >>>> >>>>> Sweet! >>>>> >>>>> Totally random comment from totally randomly opening a file and >>>>> looking at it: >>>>> >>>>> I see lists are accessed via a method .get(n). Have you considered >>>>> using proxies to allow array subscript [] syntax? I guess some 10-20% of >>>>> browsers still don't support proxies but that number will only go down. >>>>> >>>>> -Kenton >>>>> >>>>> On Tue, May 9, 2017 at 2:03 PM, Julián Díaz <jdia...@gmail.com> wrote: >>>>> >>>>>> I'm happy to report some real progress! >>>>>> >>>>>> https://github.com/jdiaz5513/capnp-ts >>>>>> >>>>>> Right now it's not very useful at all (I just barely have >>>>>> serialization working) but it's a solid starting point to wrap up the >>>>>> serialization API. The peanut gallery can start poking around to see how >>>>>> I >>>>>> organized things – it does depart slightly from the reference >>>>>> implementation but I'm still aiming to make an external API that's very >>>>>> similar to the C++ one. >>>>>> >>>>>> Once the Struct/List classes are complete I'll move on to the schema >>>>>> compiler, which looks like it'll be a cinch. Hoping I can keep up the >>>>>> steady progress from here. >>>>>> >>>>>> On Monday, April 10, 2017 at 1:45:01 AM UTC-4, Ian Denhardt wrote: >>>>>>> >>>>>>> Quoting Kenton Varda (2017-04-09 18:35:48) >>>>>>> >>>>>>> > 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. >>>>>>> >>>>>>> Hard to know without trying it, but it may well be the case that >>>>>>> wasm >>>>>>> builds will be smaller. The VM seems to be designed for small code >>>>>>> size >>>>>>> (sensibly, given its target use case). This obviously doesn't apply >>>>>>> to >>>>>>> the asm.js output. >>>>>>> >>>>>>> That said, I agree having a pure JS implementation is preferable. >>>>>>> >>>>>> -- >>>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> 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. >>>> 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+unsubscr...@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+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/capnproto.