(cc'ing the list again, I missed the reply all button..)
Regarding the RpcDumper, I think it could be neat to provide one entry in the
tree view with that version too, as it's much more compact, and gives you
quick summary of what it's all about, while the more detailed tree can be
handy if there's anything odd you want to take a closer look at.
On Thursday 08 May 2014 08.53.54 you wrote:
> Bah, forgot the link:
>
> [1]
https://github.com/calio/lua-capnproto/issues/1
>
> On Thursday 08 May 2014 08.52.26 you wrote:
> > On Wednesday 07 May 2014 23.47.47 you wrote:
> > > Oh, are you not using the Lua implementation of Cap'n Proto?
> >
> > I tried to, but got stuck on issues with it [1].
> >
> > But I've also come to realize that pretty much the same goes here as with
> > the C++ api's. My needs in this case are a bit special..
> >
> > Also, I'm not sure how I would make wireshark use luajit rather than (the
> > built in) lua it was compiled with, to make it work in runtime. Perhaps it
> > would work to use it to compile the schemas to lua.. but I'm not sure the
> > schemas even work without also using luajit, so it may not even work, in
> > this case.
> >
> > > On Wed, May 7, 2014 at 10:56 PM, Andreas Stenius
> > >
> > > <
andreas...@astekk.se>wrote:
> > > > Yeah, it was easy to convert a text dump of a CodeGeneratorRequest
> > > > into
> > > > lua code.
> > > > Den 7 maj 2014 23:10 skrev "Kenton Varda" <
temp...@gmail.com>:
> > > >
> > > > On Wed, May 7, 2014 at 1:52 PM, Andreas Stenius
> > > > <
andreas...@astekk.se
> > > >
> > > >> > wrote:
> > > >>> Also, for the long term, it really should be implemented in C++ (I
> > > >>> wanted
> > > >>> something working without the need to mess with rebuilding wireshark
> > > >>> from
> > > >>> source, so went with a Lua version for now). However, I don't know
> > > >>> the
> > > >>> API's
> > > >>> that well. Is it possible to determine the byte offsets that the
> > > >>> various
> > > >>> data
> > > >>> comes from when you get a parsed result out?
> > > >>> That's needed to get a nice connection between the tree view data
> > > >>> and
> > > >>> the hex
> > > >>> dump in wireshark.
> > > >>
> > > >> In theory, it would not be hard to extend the API to provide that,
> > > >> but
> > > >> it
> > > >> might also not add much over what you're doing currently. I think the
> > > >> main
> > > >> useful thing you could get out of the C++ API is parsing the schemas.
> > > >> You
> > > >> could also have people parse schemas into a schema database
> > > >> separately
> > > >> (that is, a file containing a collection of compiled schema nodes),
> > > >> and
> > > >> then load that in, which would avoid the need to call C++ code at all
> > > >> in
> > > >> the actual plugin. Perhaps it makes sense for the capnp tool to
> > > >> provide
> > > >> a
> > > >> standard "schema database" format for this purpose. (Right now you
> > > >> could
> > > >> hack something based on the -o/bin/cat trick.)
> > > >>
> > > >> -Kenton