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
3
votes
1 answer

Passing a binary to erlang nif

I'm writing some Erlang code that basically accepts some binary data from a TCP connection and then uses a C nif to decrypt the data and return the decrypted data. The problem is that I can't seem to figure out how to modify the passed in…
tkblackbelt
  • 391
  • 2
  • 10
2
votes
0 answers

Erlang crash dump memory data inconsistency in processes

We have an erlang application that crashed due to memory issue: Thu Jun 9 13:22:19 202 Slogan: eheap_alloc: Cannot allocate 3936326656 bytes of memory (of type "heap"). System version: Erlang/OTP 23 [erts-11.1.1] [source] [64-bit] [smp:48:48]…
SilverBlaZe
  • 85
  • 1
  • 5
2
votes
1 answer

Erl() function not working in 64 bit O365 Excel VBA

I work with Excel spreadsheets that use the vba Erl() function for error handling. The vba code might look something like this: Sub doSomething() Dim v as variant Dim v1 as Variant On Error goto err_Handler 10 v =…
C Tauss
  • 88
  • 4
2
votes
2 answers

The erl program outputs different values than what is output by the erlang shell

Given the following erlang function -module(fibonacci). -export([my_function_3/1]). my_function_3(Arg1) when Arg1==3 -> io:format("=3"); my_function_3(Arg1) when Arg1<3 -> io:format("<3"); my_function_3(Arg1) when Arg1>3 ->…
gfe
  • 157
  • 5
2
votes
1 answer

a erlang actor little demo

I am a rookie in Erlang, tired to write the code for spider: -module(http). -compile([export_all]). init() -> ssl:start(), inets:start(), register(m, spawn(fun() -> loop() end)), register(fetch, spawn(fun() -> x() end)), ok. start() -> …
riskers
  • 178
  • 13
2
votes
2 answers

What is (k)ill for in the iex break menu?

I access the Break Menu of eix 1.8.2 by pressing CTRL + C. It looks like this: BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded (v)ersion (k)ill (D)b-tables (d)istribution At first I assumed kill would be similar to abort (ie, just ends…
Alex V
  • 3,416
  • 2
  • 33
  • 52
2
votes
2 answers

How to take input as tuple and store it in a variable in Erlang?

I want to take input from user and store it in a variable so that I pass this to another function. Thanks in advance..
Jagan
  • 41
  • 4
2
votes
1 answer

Why are common Erlang application (Common Test, Dialyzer, leex, yecc etc.) not available in the `erl` shell?

Getting back to Erlang and I noticed that I am unable to run any of the supporting frameworks that have their own user guides, such as EUnit, Common Test, leex, yecc, Dyalizer, Typer etc. According to the Common Test User's Guide, "the Common Test…
toraritte
  • 6,300
  • 3
  • 46
  • 67
2
votes
0 answers

We are not receiving push notification when large text send by user.

We are not receiving a push notification when large text sends by the user. We are using below mod_apns.erl file. mod_apns.erl - https://github.com/joanlopez/ejabberd-mod-apns/blob/master/src/mod_apns.erl Ejabberd version - 16.09 How to truncate…
2
votes
2 answers

Illegal expression when pattern matching with maps in Erlang

I'm trying to execute sample code on the interactive shell from Armstrong's Erlang book. This is what the book says is the case: 1> Henry8 = #{ class => king, born => 1491, died => 1547 }. #{ born => 1491, class=> king, died => 1547 }. 2> #{ born…
2
votes
2 answers

Connection refused when trying to run Rabbitmq

Recently I have installed Rabbitmq 3.6.2 on Ubuntu 14, but whenever i run rabbitmq-server command it gives me error: {error_logger,{{2016,7,5},{13,45,12}},"Protocol: ~tp: register/listen error:…
Tadas Stra
  • 515
  • 5
  • 17
2
votes
1 answer

How do I check if a element is contained within a list?

How can I catch word from list and return True in Erlang? catch_word(msg) -> Bad = ["BadWord1", "BadWord2"], case Bad in msg of true -> true; false -> false end. catch_word("Hello, How are u…
deounix
  • 141
  • 2
  • 4
  • 18
2
votes
0 answers

What does output of Erlang command : erl mean?

When I type erl at terminal , I get the following output: I am just interested in each of the things which is shown in the output of erl command. For example: What does 17 signify? What does erts-6.2 signify? (Erlang Runtime System?) What does…
a3.14_Infinity
  • 5,653
  • 7
  • 42
  • 66
2
votes
1 answer

Issues in converting the mod_confirm_delivery module for newer binarized ejabberd versions

I have tried making a module hosted at : https://github.com/johanvorster/ejabberd_confirm_delivery I am using ejabberd ver 14.07. The changes i did: 1. Removed all the ?INFO_MSG statements 2. binarised all the strings. Every occurence of "abc" has…
bit_by_bit
  • 337
  • 2
  • 14
2
votes
1 answer

How to add a plugin to CouchDB

I need to install plugin to CouchDB. The problem is that the only folder I can access on the server is user home directory. After I set ERL_LIBS env variable I can call my plugin module from erl console, but CouchDB returns…
1 2
3
10 11