I hereby claim:
- I am krestenkrab on github.
- I am drkrab (https://keybase.io/drkrab) on keybase.
- I have a public key ASBs-18J2gBlouOQMVkDDMJQ9jmqLyKGC5cnhj673sSfHgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The current on-disk format is that each KV is stored in the tree file as
<<$t,TreeId:22/binary,$s,Segment:64/integer,Key/binary>>
TreeId is 22 bytes (20 bytes from the vnode id, and 2 bytes for N value). The implementation in hashtree uses 1M segments, and the Segment is stored in a 64 bit unsiged. Finally, the Key is usually term_to_binary({Bucket,Key}).
| message Person { | |
| required int32 id = 1; | |
| required string name = 2; | |
| optional string email = 3; | |
| repeated Address addresses = 4; | |
| extensions 10 to max; | |
| } | |
| message Address { |
| #!/bin/bash | |
| echo Building Google Protobuf for Mac OS X / iOS. | |
| echo Use 'tail -f build.log' to monitor progress. | |
| ( | |
| PREFIX=`pwd`/protobuf | |
| mkdir ${PREFIX} | |
| mkdir ${PREFIX}/platform |
| Oct 06, 2013 11:26:10 AM erjang.EModuleManager$FunctionInfo$1 invoke | |
| INFO: MISSING 'Elixir.Foo.Bar.Baz':sum/2 | |
| Oct 06, 2013 11:26:10 AM erjang.EModuleManager$FunctionInfo$1 invoke | |
| INFO: MISSING 'Elixir.Foo.Bar.Baz':sum/2 | |
| tokenizer_test: chars_test...*failed* | |
| in function tokenizer_test:chars_test/0 (tokenizer_test.erl, line 146) | |
| **error:{badmatch,[{number,1,48350}]} | |
| ======================================================= |
| -module(to_ulf). | |
| -include_lib("hanoidb/include/hanoidb.hrl"). | |
| first(Ref) -> | |
| case hanoidb:fold_range(Ref,fun(K,V,Acc) -> [{K,V}|Acc] end,[], | |
| #key_range{from_key= <<>>, limit=1, to_key=undefined}) | |
| of | |
| [] -> '$end_of_table'; | |
| [{Key,Value}] -> {Key,Value} |
In addition to erlang R16B02, you need a more recent bash because the scripts use bash associative arrays; a feature which is not present in the version of bash distributed with MacOS X.
brew install node
brew install bash
## put new bash on path
export PATH=/usr/local/bin:$PATH| Krestens-MacBook-Pro:elixir krab$ make test_kernel -f Makefile.e | |
| ==> elixir (compile) | |
| ==> kernel (exunit) | |
| Elixir.URITest | |
| * decode (0.5ms) | |
| * decode_query (8.1ms) | |
| * decoder (0.5ms) | |
| * default_port (0.7ms) | |
| * downcase_scheme (0.8ms) |
| R16B01 @ x86_64-apple-darwin12.4.0, 1000000 iterations | |
| when matching: binary is 55.46651865727732% faster | |
| when not matching: binary is 17.42297571085909% faster | |
| [{214705,'Foo.List'}, | |
| {177297,'Foo.Bin'}, | |
| {345924,'Elixir.List'}, | |
| {154052,'Elixir.Bin'}] | |
| Krestens-MacBook-Pro:elixir krab$ make test -f Makefile.e | |
| ==> elixir (compile) | |
| Compiled src/elixir_compiler.erl | |
| ==> kernel (compile) | |
| Compiled lib/elixir/lib/application/behaviour.ex | |
| Compiled lib/elixir/lib/bitwise.ex | |
| Compiled lib/elixir/lib/behaviour.ex | |
| Compiled lib/elixir/lib/access.ex | |
| Compiled lib/elixir/lib/dict/behaviour.ex | |
| Compiled lib/elixir/lib/code.ex |