Commits on Jul 23, 2010
  1. Try harder to 'make clean'.

    pgriess committed Jul 23, 2010
Commits on Jul 2, 2010
Commits on Jun 9, 2010
  1. Compile all code with -fPIC explicitly.

    pgriess committed Jun 9, 2010
    - Move compilation flags into Makefile from wscript to ensure that
      they're shared by libmsgpack.a. Also, the way that we were setting
      them in wscript was overriding whatever was there already.
Commits on May 28, 2010
  1. Spring cleaning.

    pgriess committed May 28, 2010
  2. Change cycle checker implementation; fixes OOM.

    pgriess committed May 28, 2010
    - Re-impelement the cycle checker by retaining a collection of seen
      v8::Object instances and using iterating across this set using
      StrictEquals() to determine if we've seen the current object before.
      This is O(n^2) and, thus, lame. Too bad the tagging implementation
      caused node::Buffer objects to be retained for some reason; it was
      much faster at O(1).
Commits on May 27, 2010
  1. Pass excess params to send down to stream.write().

    pgriess committed May 27, 2010
    - This should allow this API to transparently accommodate a Stream
      implementation that can accept additional parameters (like file
  2. Minor cleanup to

    pgriess committed May 27, 2010
  3. Create msgpack.Stream abstraction; split C++/JS.

    pgriess committed May 27, 2010
    - Provide the external API to the addon as lib/msgpack.js, which builds
      off of the rudimentary facilities provided by the bindings. This
      requires installation to install both build/default/mpBindings.node
      and lib/msgpack.js.
    - Create msgpack.Stream abstraction which wraps a net.Stream and emits
      'msg' events when a full message is received. Provides a 'sendmsg'
      method to transparently pack JavaScript objects.
    - Add tests for msgpack.Stream.
  4. unpack() returns 'undefined' on incomplete value.

    pgriess committed May 27, 2010
    - Handle MSGPACK_UNPACK_CONTINUE by returning 'undefined'. Callers
      should be prepared to see this and retry later with more data.
  5. Expose # bytes left in buffer after unpack.

    pgriess committed May 27, 2010
    - If msgpack.unpack() does not consume the entire buffer, expose the
      number of bytes remaining as the 'msgpack.unpack.bytes_remaining'
Commits on May 26, 2010
  1. Implement proper cleanup of msgpack structures.

    pgriess committed May 26, 2010
    - Create C++ holder classes for msgpack_zone and msgpack_sbuffer whose
      destructors call the appropriate *_destroy() method.
  2. Fix error handling in pack/unpack.

    pgriess committed May 26, 2010
    - Handle errors by throwing exceptions rather than fighting with return
      values; this fixed several cases where we were returning exception
      objects back as part of the unpacked object.
    - Also add a debugging macro to dump node::Buffers objects.
  3. Add some CLI examples.

    pgriess committed May 26, 2010
  4. Stupid benchmarking tool.

    pgriess committed May 26, 2010
Commits on May 25, 2010
  1. Detect circular references and fail to pack.

    pgriess committed May 25, 2010
    - Tag v8::Object instances that we have seen during the current
      serialization run so that we can detect circular references. Store
      tags usign the hidden field facility in v8::Object.
  2. More README udpates.

    pgriess committed May 25, 2010
  3. Add README.

    pgriess committed May 25, 2010
  4. Add support for unpacking.

    pgriess committed May 25, 2010
    - Also, test.js for verifying pack/unpack of various objects works as
  5. Support serializing objects.

    pgriess committed May 25, 2010