summaryrefslogtreecommitdiff
path: root/erlang
Commit message (Collapse)AuthorAgeFilesLines
* erlang: fixed bug around error case when serializing atom.UENISHI Kota2010-08-271-1/+6
|
* erlang: msgpack:unpack_all/1 doc.UENISHI Kota2010-07-181-0/+5
|
* erlang: omake menus added.UENISHI Kota2010-07-181-1/+4
|
* erlang: unpack_all/1 improve, error handling added.UENISHI Kota2010-07-181-5/+11
|
* erlang: stopped support for dict() type.UENISHI Kota2010-07-181-2/+0
|
* erlang: 'edoc' document generationUENISHI Kota2010-07-184-3/+11
|
* erlang: Improve documentationVincent de Phily2010-07-122-21/+56
| | | | | | | 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.
* erlang: Only handle throw() in pack/1 and unpack/1Vincent de Phily2010-07-091-4/+0
| | | | | | | 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.
* erlang: Make pack_map/1 api privateVincent de Phily2010-07-091-11/+11
|
* erlang: s/short/incomplete/ and s/badarg/{badarg,Term}/Vincent de Phily2010-07-091-13/+12
| | | | Nicer error returns.
* erlang: fix receiving from port_command in unit testsVincent de Phily2010-07-091-10/+16
| | | | | | | 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.
* erlang: Fix some existing specs and add a few other.Vincent de Phily2010-07-091-6/+12
| | | | dialyzer still complains about dict() and ?assert(false), but I don't think they're real issues.
* erlang: Remove unecessary 'throw(short)' clause for unpack_{array,map}_/1Vincent de Phily2010-07-091-9/+7
| | | | | | | | | 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).
* erlang: Fix incomplete/invalid cases of unpack_/1Vincent de Phily2010-07-091-16/+7
| | | | | | * 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
* Remove a couple of superfluous 'when' clauses.Vincent de Phily2010-07-091-8/+9
| | | | The when clause for unpack_/1 has been moved to unpack/1 so that it is performed only once.
* Merge branch 'master' of git://github.com/msgpack/msgpackVincent de Phily2010-07-093-154/+167
|\ | | | | | | Reseting msgpack.erl to upstream version.
| * erlang: better test cases, except 'Broken pipe'UENISHI Kota2010-07-091-47/+27
| |
| * erlang: added try-catch clause for easy error handlingUENISHI Kota2010-07-091-111/+115
| |
| * erlang: added simple performance test description.UENISHI Kota2010-07-081-1/+2
| |
| * erlang: added simple performance test.UENISHI Kota2010-07-081-0/+5
| |
| * erlang: improved spec.UENISHI Kota2010-07-011-2/+3
| |
| * erlang: updated the commentsUENISHI Kota2010-07-011-2/+2
| |
| * erlang: just a golf.UENISHI Kota2010-07-011-22/+22
| |
| * erlang: reducing unnecessary binary matching in unpack_/2UENISHI Kota2010-07-011-139/+72
| | | | | | | | * more efficient unpack_/1 by Vincent de Phille's code. thanks.
| * erlang: adding shorthand fix for {more, undefined} problemUENISHI Kota2010-07-011-5/+5
| |
| * erlang: more suitable variable name and removing unnecessary guards.UENISHI Kota2010-07-011-37/+38
| |
| * erlang: explicit API for serializing proplists,UENISHI Kota2010-06-291-13/+12
| | | | | | | | so as not to make wrong call of pack({proplists()}).
| * Merge branch 'master' of http://github.com/vincentdephily/msgpackUENISHI Kota2010-06-291-33/+31
| |\
| * | erlang: bugfix(serialization of -234 goes <<208,22>> while it should go ↵UENISHI Kota2010-06-262-10/+11
| | | | | | | | | | | | int16 <<0xD1, ...>>)
| * | updated readmeUENISHI Kota2010-06-251-13/+3
| | |
* | | * Return {more,undefined} instead of {more,integer()}, as we can only know ↵Vincent de Phily2010-06-291-125/+71
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Rewrite unpack_/1 using pattern matching to get a 30-40% speedup.Vincent de Phily2010-06-281-177/+133
| |/ |/| | | | | Simplify pack_* and unpack_{array,map} function clauses to get more readability and a minor speedup.
* | Big speedup (around 40%) of maps and arrays encoding by using proper tail ↵Vincent de Phily2010-06-281-17/+17
| | | | | | | | recursion.
* | erlang: Use a simple proplist instead of a dict.Vincent de Phily2010-06-281-19/+17
| | | | | | | | | | | | | | 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.
* | Fix encoding of fixmap type.Vincent de Phily2010-06-251-1/+1
|/ | | | The tag value was wrong, and a missing /binary flag caused an error.
* erlang: code refined and tests addedUENISHI Kota2010-06-251-13/+10
|
* erlang: unpack_map's silly bug fixed. use dict:store/3....UENISHI Kota2010-06-252-15/+12
|
* erlang: testing pack_map/unpack_map with a silly bugUENISHI Kota2010-06-241-13/+27
|
* erlang: (un)pack_map improved, incremental unpackingUENISHI Kota2010-06-231-8/+10
|
* erlang: too short binary to decode causes error {more, Int}.UENISHI Kota2010-06-231-86/+125
|
* erlang: external APIs' type/specs.UENISHI Kota2010-06-221-11/+15
|
* erlang: tests improved and code refined.UENISHI Kota2010-06-223-59/+67
|
* erlang: tracing crosslang.rb moving to ../testUENISHI Kota2010-06-031-1/+1
|
* erlang: temporary documentation and .gitignoreUENISHI Kota2010-06-012-1/+21
|
* erlang: added more cross-language tests. better type specification.UENISHI Kota2010-05-312-30/+111
|
* erlang: added usage of cross-language test.UENISHI Kota2010-05-311-11/+10
|
* added more tests,UENISHI Kota2010-05-313-88/+151
| | | | and OMake continuous building.
* initial import from http://bitbucket.org/kuenishi/messagepack-for-erlangUENISHI Kota2010-05-302-0/+380