ЛЛ
Size: a a a
ЛЛ
SK
МБ
МБ
a
Е
Е
while true i = 10
не может подвесить BEAM просто потому что там нет while
:D а не потому что планировщик такой агрессивныйa
Е
Е
Е
Е
ŹR
Е
на практике вероятность такого равна вероятности самораспада протона, но тем не менее
ŹR
Е
a = 1
a = 2
a = 3
...
Е
Е
a = [1 | a]
- будет использовать вызовы функций?Е
ŹR
-module(bind).
-export([bind/1, bind/0]).
bind({a, X}) ->
X.
bind() ->
A=1,
B=2,
C=B+1,
D=C+1,
io:format("~p~n", [D]),
ok.
{module, bind}. %% version = 0
{exports, [{bind,0},{bind,1},{module_info,0},{module_info,1}]}.
{attributes, []}.
{labels, 9}.
{function, bind, 1, 2}.
{label,1}.
{line,[{location,"test.erl",4}]}.
{func_info,{atom,bind},{atom,bind},1}.
{label,2}.
{test,is_tagged_tuple,{f,1},[{x,0},2,{atom,a}]}.
{get_tuple_element,{x,0},1,{x,0}}.
return.
{function, bind, 0, 4}.
{label,3}.
{line,[{location,"test.erl",7}]}.
{func_info,{atom,bind},{atom,bind},0}.
{label,4}.
{allocate,0,0}.
{move,{literal,[4]},{x,1}}.
{move,{literal,"~p~n"},{x,0}}.
{line,[{location,"test.erl",12}]}.
{call_ext,2,{extfunc,io,format,2}}.
{move,{atom,ok},{x,0}}.
{deallocate,0}.
return.
{function, module_info, 0, 6}.
{label,5}.
{line,[]}.
{func_info,{atom,bind},{atom,module_info},0}.
{label,6}.
{move,{atom,bind},{x,0}}.
{line,[]}.
{call_ext_only,1,{extfunc,erlang,get_module_info,1}}.
{function, module_info, 1, 8}.
{label,7}.
{line,[]}.
{func_info,{atom,bind},{atom,module_info},1}.
{label,8}.
{move,{x,0},{x,1}}.
{move,{atom,bind},{x,0}}.
{line,[]}.
{call_ext_only,2,{extfunc,erlang,get_module_info,2}}.