UENISHI Kota
dad7a03d19
erlang: stopped support for dict() type.
2010-07-18 23:42:23 +09:00
UENISHI Kota
7b152640d9
erlang: 'edoc' document generation
2010-07-18 23:40:25 +09:00
UENISHI Kota
78fddff34e
erlang: merged vincent's contribution
2010-07-18 23:01:43 +09:00
frsyuki
f8a016edb5
Merge branch 'master' of github.com:msgpack/msgpack
2010-07-14 17:09:34 +09:00
frsyuki
f5453d38ec
cpp: version 0.5.2
cpp-0.5.2
2010-07-14 17:06:16 +09:00
frsyuki
331bf0af21
cpp: type::raw_ref::str(), operator==, operator!=, operator< and operator> are now const
2010-07-14 17:04:41 +09:00
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
Vincent de Phily
e629e8784f
erlang: Improve documentation
...
The doc is in edoc format, generated from the source as an html file.
The makefile's default action now also generates the documentation.
I ignored unpack_all/1 and pack(dict()) for now because their future is still uncertain.
2010-07-12 14:08:22 +02:00
Vincent de Phily
e944c1ee93
erlang: Only handle throw() in pack/1 and unpack/1
...
Rationale: We only use throw/1 for error handling, never erlang:error/1.
Caller bugs will get a nice {error,...} return while library bugs will
bubble up in all their uglyness; that's the proper way to do things
in erlang.
2010-07-09 20:37:06 +02:00
Vincent de Phily
02c882bda3
erlang: Make pack_map/1 api private
2010-07-09 20:34:38 +02:00
Vincent de Phily
2c29377abf
erlang: s/short/incomplete/ and s/badarg/{badarg,Term}/
...
Nicer error returns.
2010-07-09 20:30:17 +02:00
Vincent de Phily
21992f1b9e
erlang: fix receiving from port_command in unit tests
...
Ports can send data bit by bit; make sure we read all the port has to offer in one go.
This should fix the "broken pipe" error we sometime got during testing.
We did not previously check the return of compare_all/2, which is why the bug was not noticed.
Incidentally, this change fixes dialyzer warnings too.
2010-07-09 18:53:24 +02:00
Vincent de Phily
8a3f090684
erlang: Fix some existing specs and add a few other.
...
dialyzer still complains about dict() and ?assert(false), but I don't think they're real issues.
2010-07-09 17:36:36 +02: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