Hi,

One thing I had in mind is a common code base for javascript and node.js
> and use e.g. require.js => this might be a second step.
>

Slightly related, I've been doing some work on thrift.js to:
- use native JSON support where available; and
- implement the binary protocol in the browser using ArrayBuffers.

The native JSON protocol implementation works in nodejs and browsers with
native JSON (ie everything except IE7). It can be common-sourced if there's
a better way to generate thrift.js from a series of constituent files. I'm
currently building a thrift.js using the Google closure compiler.

It's still early stage but if this is of general interest I can create a
patch or pull request or whatever suits.

The code is here:
https://github.com/paddybyers/thrift/commits/0.8-aardvark-2

Thanks - Paddy

Reply via email to