Questions tagged [Erlang] (95)

1
answer

8 != 8.0 in Erlang Why?

8.0 rem 2 Error an error occurred when evaluating an arithmetic expression in operator rem/2 called as 8.0 rem 2 And 8 rem 2 Returns 0! Why? Or you must first sell your soul????
Tristin asked April 8th 20 at 17:56
1
answer

Erlang/Elixir do I need to parse Erlang before Elixir study? Or not?

Works as I understand it all on a single VM. The question is whether you can live with without Erlang Elixir? And advise sensible resources (going further HelloWorld).
anahi3 asked April 7th 20 at 11:36
1
answer

As in the erlang console to connect the module?

Collected from source module to erlang and want to perform it as described in the documentation, but for some reason does not work:Miller_Kuhic@Miller_Kuhic-home:~/projects$ git clone git@github.com:saleyn/erlexec.git Cloning in the "erlexec"... remote: Enumerating objects: 27, done. remote: Counting objects: 100% (27/27), ...
Miller_Kuhic asked April 2nd 20 at 15:40
1
answer

Is it possible in erlang on stdin of called command to submit the data?

If from erlang to invoke a system utility through erlang.org/doc/man/os.html#cmd-1 is it possible, and how, to file for its input data? Let's say I want to invoke the iconv utility filing for it utf8, and stdout I want to windows-1251. Possible?
Karen.Runolfsdottir96 asked March 31st 20 at 21:40
2
answers

How to connect to the erlang project iconv?

I do not understand, as his application to include iconv. Found this library https://github.com/processone/iconv, tried to connect via rebar3 but not working. In General how to work better from erlang with different encodings? Need from utf-8 to windows1251.
Anissa_OConne asked March 31st 20 at 21:33
1
answer

Recursive function in practice?

Please explain the essence of recursion and tail recursion in Erlang. Not only by the example of calculating a factorial, and for example on the hares. That is, on a practical example. Complement. If it is possible to give a simple example (link please) a practical recursive function which considers for example the same har...
August_McGlynn asked March 31st 20 at 20:57
1
answer

How to send tcp request from the Qt client, erlang server?

is server:-module(server). -export([start/0]). start() -> {ok, ListenSocket} = gen_tcp:listen(1234, [binary, {active, false}, {packet, 4}]), wait_connect(ListenSocket, 0). wait_connect(ListenSocket, Count) -> {ok, Socket} = gen_tcp:accept(ListenSocket), spawn(?MODULE, wait_connect, [ListenSocket, Count+1]), get...
deven_Crooks94 asked March 31st 20 at 20:56
0
answer

How to work with entries(records) in erl_eval?

Hello. The challenge is to use dynamically loadable code in Erlang. Code should not be a module, and must be performed dynamically. The General scheme of such use: erl_scan:string - to tokenservice the text in the list of tokitou (Lexer). erl_parse:parse_exprs -- converts a list of tokens in the AST. erl_eval:exprs -- take...
chadd44 asked March 29th 20 at 21:47
2
answers

Not something the neural network on the green flows?

Does the writing Go, I heard about machine learning, too, want, all. Found binding to tensorflow, the Python, will be richer. And impossible without tensors (who today faux intellectuals of the two tensor multiply), and straight to simulate the neurons and connections light threads and channels? There is at least a document...
Wilton_Kunde asked March 25th 20 at 12:56
1
answer

The best way of interaction between user and web application in Erlang in real time?

What are the opportunities in General and which ones are most successful?
Keely68 asked March 24th 20 at 14:19