Paste
Pasted as Erlang by mprize ( 14 years ago )
user6@h6:~/util$ cd ecirca
user6@h6:~/util/ecirca$ ~/util/rebar get-deps compile
==> ecirca (get-deps)
Pulling edown from {git,"https://github.com/si14/edown.git","master"}
Cloning into edown...
Pulling proper from {git,"https://github.com/manopapad/proper.git",
{tag,"v1.0"}}
Cloning into proper...
==> edown (get-deps)
==> proper (get-deps)
==> edown (compile)
Compiled src/edown_lib.erl
Compiled src/edown_doclet.erl
Compiled src/edown_layout.erl
Compiled src/edown_xmerl.erl
==> proper (compile)
src/strip_types.erl:50: Warning: missing specification for function parse_transform/2
Compiled src/strip_types.erl
Compiled src/vararg.erl
Compiled src/proper_prop_remover.erl
Compiled src/proper_transformer.erl
Compiled src/proper_statem.erl
Compiled src/proper_fsm.erl
Compiled src/proper_dict.erl
Compiled src/proper_gb_trees.erl
Compiled src/proper_shrink.erl
Compiled src/proper_orddict.erl
Compiled src/proper_gen.erl
Compiled src/proper_sets.erl
Compiled src/proper_array.erl
Compiled src/proper_ordsets.erl
src/proper_types.erl:336: Warning: missing specification for function from_binary/1
src/proper_types.erl:437: Warning: missing specification for function unwrap/1
Compiled src/proper_types.erl
Compiled src/proper_gb_sets.erl
Compiled src/proper.erl
Compiled src/proper_typeserver.erl
Compiled src/proper_arith.erl
Compiled src/proper_symb.erl
Compiled src/proper_queue.erl
==> ecirca (compile)
Compiled src/ecirca_pt.erl
Compiled src/ecirca_bench.erl
Compiled src/ecirca_large.erl
Compiled src/ecirca_medium.erl
Compiled src/ecirca.erl
Compiled src/ecirca_small.erl
Compiling c_src/ecirca_large.c
Compiling c_src/ecirca_medium.c
Compiling c_src/ecirca_small.c
user6@h6:~/util/ecirca$ ./start-dev.sh
Erlang R14B03 (erts-5.8.4) [source] [smp:4:4] [rq:4] [async-threads:10] [kernel-poll:true]
=PROGRESS REPORT==== 14-Sep-2011::22:56:44 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.42.0>},
{name,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 14-Sep-2011::22:56:44 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.43.0>},
{name,overload},
{mfargs,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 14-Sep-2011::22:56:44 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.41.0>},
{name,sasl_safe_sup},
{mfargs,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 14-Sep-2011::22:56:44 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.44.0>},
{name,release_handler},
{mfargs,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 14-Sep-2011::22:56:44 ===
application: sasl
started_at: circa_dev@localhost
Eshell V5.8.4 (abort with ^G)
(circa_dev@localhost)1> {ok, T1} = ecirca:new(5, last, small).
{ok,{ecirca,#Ref<0.0.0.55>,<<>>,<0.48.0>,small}}
(circa_dev@localhost)2> {ok, T2} = ecirca:new(5, last, medium).
{ok,{ecirca,#Ref<0.0.0.61>,<<>>,<0.48.0>,medium}}
(circa_dev@localhost)3> ecirca:slice(T1, 1, 5).
{ok,[empty,empty,empty,empty,empty]}
(circa_dev@localhost)4> ecirca:slice(T2, 1, 5).
{ok,[empty,empty,empty,empty,empty]}
(circa_dev@localhost)5> ecirca:set(T1, 1, 2).
{ok,{empty,2}}
(circa_dev@localhost)6> ecirca:set(T2, 1, 2).
{ok,{empty,2}}
(circa_dev@localhost)7> ecirca:slice(T1, 1, 5).
{ok,[2,empty,empty,empty,empty]}
(circa_dev@localhost)8> ecirca:slice(T2, 1, 5).
{ok,[2,empty,empty,empty,empty]}
(circa_dev@localhost)9> ecirca:set(T1, 1, empty).
{ok,{2,empty}}
(circa_dev@localhost)10>
Revise this Paste