tokuhirom
9ac69337e8
perl: bump up version to 0.13!
2010-07-14 09:58:41 +09:00
tokuhirom
ca0c844f32
clearly specified this distribution requires requires C99.
2010-07-14 09:58:05 +09:00
UENISHI Kota
a4258505a9
erlang: modified wrong testcase.
2010-07-09 23:23:00 +09:00
Vincent de Phily
ba4a971bfa
erlang: Remove unecessary 'throw(short)' clause for unpack_{array,map}_/1
...
Unecessary because unpack_/1 will throw it anyway.
This does mean that we go a tiny bit deeper to find that we don't have enough data,
but that should be a rare code path. Keep the main code path fast and the code clean.
While at it, rename vars to match its sibling function and to avoid thinking that
RestLen is a byte count (it's an item count).
2010-07-09 13:44:02 +02:00
Vincent de Phily
6abc120279
erlang: Fix incomplete/invalid cases of unpack_/1
...
* fix list of invalid bytes was missing 3 possibilities (see type chart section of msgpack format spec)
* fix matching of invalid bytes to look at 1 byte instead of 2
* simplify 'incomplete' case : anything that's not complete or invalid is by definition incomplete
2010-07-09 13:29:47 +02:00
Vincent de Phily
64c36b7a8f
Remove a couple of superfluous 'when' clauses.
...
The when clause for unpack_/1 has been moved to unpack/1 so that it is performed only once.
2010-07-09 13:06:57 +02:00
Vincent de Phily
64b9f0762c
Merge branch 'master' of git://github.com/msgpack/msgpack
...
Reseting msgpack.erl to upstream version.
2010-07-09 12:35:22 +02:00
UENISHI Kota
e799082e5c
erlang: better test cases, except 'Broken pipe'
2010-07-09 01:21:35 +09:00
UENISHI Kota
eab66a022e
erlang: added try-catch clause for easy error handling
2010-07-09 01:04:09 +09:00
UENISHI Kota
485915c27a
erlang: added simple performance test description.
2010-07-08 23:39:47 +09:00
UENISHI Kota
45fb482ab4
erlang: added simple performance test.
2010-07-08 23:36:18 +09:00
frsyuki
167e2475d8
cpp: generate version.h using AC_OUTPUT macro in ./configure
2010-07-06 23:30:15 +09:00
frsyuki
fe77251242
cpp: fixes missing dependency to generate version.h
2010-07-06 19:16:49 +09:00
frsyuki
0c331d2887
cpp: updates vcproj
cpp-0.5.1
2010-07-06 18:18:28 +09:00
frsyuki
39facd5dc6
cpp: version 0.5.1
2010-07-06 17:59:07 +09:00
frsyuki
a2bd5ae638
cpp: ./configure supports --disable-cxx option not to build/install C++ API
2010-07-06 17:45:15 +09:00
frsyuki
c57f616141
cpp: adds MSGPACK_VERSION{,_MAJOR,_MINOR} macros and msgpack{,_major,_minor} functions
2010-07-06 17:10:25 +09:00
frsyuki
3af10a1d00
cpp: adds MSGPACK_VERSION{,_MAJOR,_MINOR} macros and msgpack{,_major,_minor} functions
2010-07-06 17:00:58 +09:00
frsyuki
b3987e2402
Merge branch 'master' of github.com:msgpack/msgpack
2010-07-06 12:26:30 +09:00
frsyuki
71dd44f430
cpp: adds operator<<(std::ostream&, const tuple<Type...>&) (experimental)
2010-07-06 12:26:21 +09:00
UENISHI Kota
584462f9b9
erlang: improved spec.
2010-07-01 01:16:25 +09:00
UENISHI Kota
ff5d5d7cbc
erlang: updated the comments
2010-07-01 01:14:38 +09:00
UENISHI Kota
370e92b1a6
erlang: just a golf.
2010-07-01 01:14:20 +09:00
UENISHI Kota
2469768a85
erlang: reducing unnecessary binary matching in unpack_/2
...
* more efficient unpack_/1 by Vincent de Phille's code. thanks.
2010-07-01 01:07:56 +09:00
UENISHI Kota
acb8fa613e
erlang: adding shorthand fix for {more, undefined} problem
2010-07-01 01:02:19 +09:00
UENISHI Kota
83b4b7d83d
erlang: more suitable variable name and removing unnecessary guards.
2010-07-01 00:58:48 +09:00
Vincent de Phily
33a7d56042
* Return {more,undefined} instead of {more,integer()}, as we can only know the "minimum bytes needed to continue" instead of the actually usefull "total packet size".
...
* Merge all {more,...} clauses of unpack_/1 into one.
* Reformat unpack_/1 for readability.
* Fix some specs, error values, and documentation.
2010-06-29 11:59:56 +02:00
frsyuki
20de730541
ruby: 0.4.3
2010-06-29 15:39:47 +09:00
frsyuki
134c27c900
Merge branch 'master' of github.com:msgpack/msgpack
2010-06-29 15:13:21 +09:00
frsyuki
123ae024c6
ruby: MessagePack::VERSION constant
2010-06-29 15:12:52 +09:00
frsyuki
34a29cd0a5
ruby: fixes SEGV problem caused by GC bug at MessagePack_Unpacker_mark.
2010-06-29 14:56:23 +09:00
frsyuki
9fffa9800a
ruby: fixes RDoc of Unpacker#execute and Unpacker#execute_impl
2010-06-29 14:54:09 +09:00
Vincent de Phily
8f7f23a0e5
Rewrite unpack_/1 using pattern matching to get a 30-40% speedup.
...
Simplify pack_* and unpack_{array,map} function clauses to get more readability and a minor speedup.
2010-06-28 18:11:52 +02:00
UENISHI Kota
358457f49d
erlang: bad wrong export..
2010-06-29 00:25:58 +09:00
UENISHI Kota
90e305d789
erlang: explicit API for serializing proplists,
...
so as not to make wrong call of pack({proplists()}).
2010-06-29 00:23:49 +09:00
UENISHI Kota
b471e52e28
erlang: explicit API for serializing proplists,
...
so as not to make wrong call of pack({proplists()}).
2010-06-29 00:21:47 +09:00
UENISHI Kota
9b5fc37399
Merge branch 'master' of http://github.com/vincentdephily/msgpack
2010-06-29 00:10:10 +09:00
Vincent de Phily
537322e3b5
Big speedup (around 40%) of maps and arrays encoding by using proper tail recursion.
2010-06-28 14:17:44 +02:00
Vincent de Phily
279121f87f
erlang: Use a simple proplist instead of a dict.
...
A dict is overkill (code, cpu, memory) in most cases, and proplist<->dict conversion can easily be done by the libray user if desired.
This is in line with other erlang libraries I've seen for various encoding schemes.
The map encoder had a bug until I looked at it (see previous commit), so I guess it wasn't used much yet and a change is ok at this stage.
The chosen representation for maps is a tuple containing the proplist as the only element.
2010-06-28 11:56:12 +02:00
UENISHI Kota
a1b2b41cdc
erlang: bugfix(serialization of -234 goes <<208,22>> while it should go int16 <<0xD1, ...>>)
2010-06-26 08:40:36 +09:00
Vincent de Phily
0cca90c21d
Fix encoding of fixmap type.
...
The tag value was wrong, and a missing /binary flag caused an error.
2010-06-25 17:32:11 +02:00
UENISHI Kota
ad052cb510
updated readme
2010-06-25 01:26:57 +09:00
UENISHI Kota
57f0598373
erlang: code refined and tests added
2010-06-25 00:44:14 +09:00
UENISHI Kota
92d192277e
erlang: unpack_map's silly bug fixed. use dict:store/3....
2010-06-25 00:22:53 +09:00
UENISHI Kota
2cdfbd8970
erlang: testing pack_map/unpack_map with a silly bug
2010-06-24 07:26:34 +09:00
UENISHI Kota
bc0c5f0cdc
erlang: (un)pack_map improved, incremental unpacking
2010-06-23 09:02:53 +09:00
UENISHI Kota
230ee3a03b
erlang: too short binary to decode causes error {more, Int}.
2010-06-23 01:26:10 +09:00
UENISHI Kota
ab0bf37d30
Merge branch 'master' of ssh://github.com/msgpack/msgpack
2010-06-22 11:44:25 +09:00
UENISHI Kota
b1e66256ce
erlang: external APIs' type/specs.
2010-06-22 11:28:36 +09:00
UENISHI Kota
fd80693420
erlang: tests improved and code refined.
2010-06-22 11:15:18 +09:00