Thursday, July 3, 2014

Prautobeans - proto and autobeans maven plugin

at the recent gwt meetup at the google plex quite a bit of discussion around where RPC is going took place in the sidebars.

in my own projects, working on a database backend, I accidentally got sidetracked building a websocket wire protocol based loosely on staying freindly to autbobeans but defining my interfaces in proto IDL.  the result is finally able to stand up, if a bit wobbly:  

Prautobeans! https://github.com/jnorthrup/prautobeans

at the meetup we saw some action items on bringing ByteBuffers with typedarray support into gwt v.next and doing proof of concept on a project similar in spirit: https://github.com/niloc132/drunken-wallhack (aka gwt3beans)

news that gwt 2.7 is lacking in jdk 8 support is dissapointing, it might mean i have to port the code from jdk8 to jdk7 to support in-gwt bytebuffers, but otherwise this stands to be a reasonably symetrical codebase for rpc and defining websocket messages going forward.

please fork this and don't hesitate to look me up if rpc is giving you grief and you are looking for help or collaboration in getting websocket solutions into a gwt solution!

 protbeans project manifesto below

prautobeans

this project was written with the following goals in mind

  1. enable an alternative autobeans marshalling and proxy codebase
    1. on serverside
    2. use a jdk8 baseline
    3. soon gwt 2.7 client, with bytebuffers
  2. marshal a binary encoding
    1. that packs element sizes into bytes, or 32-bit ints when >254, and someday never, longs
    2. that packs booleans into bits,
    3. that packs nulls into bits (or adds one bit to non-null nullables)
    4. that packs a DAG of proto defined objects
    5. DirectByteBuffer compatibility for zero-copy IO, existing proto based generators rely on heap based byte[]
  3. use maven to generate src/main/proto into the above autobeans and marshalling proxies
  4. heap-averse and compact code, c-like, suitable for a c++ interop port in the near-term

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment