Questions tagged [erl]

The erl program is Erlang Emulator, starting an Erlang runtime system.

The executable script erl is a front-end to the Erlang runtime system. Windows users probably wants to use the werl program instead, which runs in its own window with scrollbars and supports command-line editing.

160 questions
0
votes
3 answers

Erlang: Finding a variable and reversing it

I need to be able to manipulate variables like so. Firstly find the variable and check what it is (in this case an operator * / + etc), and then reverse it. For example, the value of ~(5+9) is -14 and the value of ~(3-5) is 2. How do I go about…
Ryan
  • 1
  • 2
0
votes
1 answer

erl with centos "Failed to create main carrier for ll_alloc"

i am having a centos vps. i have installed erlang by the command rpm -Uvh erlang-17.4-1.el6.x86_64.rpm Now whenever i try to run my rabbitmq-server. or i just issue erl command then i get this error. Failed to create main carrier for ll_alloc…
faisalbhagat
  • 2,142
  • 24
  • 27
0
votes
1 answer

Modifying an Erlang Record

I know that a record in Erlang cannot be changed once it has been set. I am attempting to use a record to increase a value. add_new_num() -> Number = random:uniform(6), STR = #adder{value = 7}, New = add(STR, Number). …
Jonathan
  • 545
  • 1
  • 8
  • 27
0
votes
1 answer

Rebar eunit runs non native (non Hipe) code

I have compiled my Erlang module using rebar compile using the following option in rebar.config {erl_opts, [native, {hipe, [verbose]}, warnings_as_errors, debug_info]}. {eunit_compile_opts, [native, {hipe, [verbose]}, warnings_as_errors,…
Vishal
  • 1,169
  • 2
  • 12
  • 20
0
votes
1 answer

How to verify if Erlang runtime and loader is indeed running native code

I am trying to explore performance improvements by switching to native compilation for my Erlang code (native option and {hipe, [verbose]}). How can I make sure that the Erlang loader is indeed using the native code from the beam file? Is there some…
Vishal
  • 1,169
  • 2
  • 12
  • 20
0
votes
1 answer

Compiling NIF project with rebar on Windows

In order to run my first NIF project on Windows i followed these steps: Download Hellonif -master :https://github.com/vmx/hellonif open command prompt(cmd): 2.1 cd C:\Users\Desktop\hellonif-master =>project path 2.2 SET PATH=C:\Program…
Bou6
  • 84
  • 2
  • 10
0
votes
0 answers

How to start multiple Erlang nodes in single Windows system?

I want to start multiple Erlang nodes inside single Windows 7 machine to test distributed program. I gave following command to start one node but its not working. C:\Users\Shekhar>erl -sname foo -setcookie erlang Error spawning…
Shekhar
  • 11,438
  • 36
  • 130
  • 186
0
votes
2 answers

Split list into 2 lists of equal sum erlang

I want to know how to split a given list into two lists such that both lists have the same sum. I want to do that by using concurrency. I am doing this in erlang. So, I'm doing something like this: Read the list, if its sum is even, then proceed…
Erica Maine
  • 147
  • 1
  • 8
0
votes
1 answer

Erlang: function with variable from another scope

Please, help me to write correctly function on Erlang. Function should remove packages (which successfully sent) from the queue. I think it should be like that, but it does not work. Erlang says: illegal pattern on line 3 :( delete_pkts(AcksList,…
0
votes
2 answers

Difficulty unpacking JSON tuple string

I figured out how to use rebar. I'm trying to use jsx (jiffy doesn't work properly on Windows) to parse json that I obtained using the openexchangerates.org API, but I can't even figure out how to correctly utilize Erlang's extensive binary…
Arthur Collé
  • 2,541
  • 5
  • 27
  • 39
0
votes
1 answer

Why is my Erlang application crashing?

I'm building a simple erlang application and very new to the enviornment, so I'm having trouble making sense of some errors I'm getting. I'm not sure what the root of my problem is here, so if there's anything relevant that I don't post, please let…
Selali Adobor
  • 2,060
  • 18
  • 30
0
votes
1 answer

How to use post and get handlers in erlang-cowboy

Please help me as iam creating a new project i.e..,creating a login page using erlang-cowboy login page contains username,password and submit button when user enters the data and clicks the submit button in browser the details of the user should…
user3382006
  • 69
  • 1
  • 7
0
votes
0 answers

From XMPP and RabbitMQ what should i use for group chat?

I am developing a chat application for android and i phone . Here i am to make persistent groups like whatsapp where members remain joined even after they get offline and after getting online they get their offline group messages. As it is not…
Jagveer Singh
  • 584
  • 7
  • 28
0
votes
1 answer

How to set up yaws 1.89 in ubuntu

When I am trying to install yaws 1.89, the error bellow is raised. Please help me to overcome that error. ~/yaws$ sudo yaws Erlang R16B03 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:true] Eshell V5.10.4 (abort with…
user3382006
  • 69
  • 1
  • 7
0
votes
4 answers

Erlang VM -s argument misbehaving

When I start up a function within the erl shell, it works fine. When I try to invoke the same function with erl ... -s module function, it fails. The line of code that eventually fails is: start(Port) -> mochiweb_http:start([{port, Port}, {loop,…
Eli
  • 1,269
  • 8
  • 17
1 2 3
10
11