Questions tagged [beam]

This tag should be used for questions about the BEAM, the Erlang virtual machine.

The BEAM (Bogdan/Björn's Erlang Abstract Machine) is the Erlang virtual machine. Besides , there are also other languages that can target the BEAM virtual machine, such as Joxa, , , and others.

Disambiguation

  • Use for questions related to Apache Beam, an SDK for batch and stream processing.
  • Use for questions related to Android Beam, the NFC peer-to-peer mode NDEF message exchange mechanism in Android.
  • Use for questions related to the heuristic search algorithm beam search.
106 questions
0
votes
2 answers

What exactly happens when one calls a 'spawn' function?

I am trying to understand how BEAM VM works, so there is my question. When one spawns a process in erlang, the result is a PID. Does that mean that a process is suspended until requested process is spawned?
Igor Kraglik
  • 3
  • 1
  • 2
0
votes
1 answer

Is there a way to find out or control which process is running on which CPU core in Elixir?

I made a multi-process insertion sort program with Elixir. However, when run on a 32 core machine, it is slower than a single process insertion sort. If the processes sending messages are running on different cores, I believe that synchronization…
0
votes
0 answers

Streaming: VM freezes for large file

I am building a pipeline to process, aggregate and transform data from csv files, then write back to another csv file… I load rows from a 19 column csv file, and with some mathematical operations (map reduce style) write back 30 columns in another…
0
votes
1 answer

Is gen_server restart strategy copy state?

Erlang world not use try-catch as usual. I'm want to know how about performance when restart a process vs try-catch in mainstream language. A Erlang process has it's small stack and heap concept which actually allocate in OS heap. Why it's…
LoranceChen
  • 2,453
  • 2
  • 22
  • 48
0
votes
1 answer

A dynamic language on top of BEAM

I have a question regarding the Erlang language. I saw that people made the Elixir language on top of BEAM, and I was wondering, would it be possible to make a dynamic language like Python or Javascript on top of BEAM? Can you recommend me some…
Vlada
  • 145
  • 10
0
votes
0 answers

Why do I get a `Elixir.ModuleName.function is undefined!` error unless I run `mix clean`

I’m having an unusual problem that I haven’t been able to search out an answer for. I’m using a library (libcluster) that allows you to define a function to use in the config file. So in my umbrella project, in a config/def.exs file I have: config…
philosodad
  • 1,808
  • 14
  • 24
0
votes
1 answer

Error when compiling Erlang modules in Windows

I'm a beginner at programming Erlang and at Stack Overflow, so I hope this isn't a very silly question. I've installed Erlang/OTP 20.1 from the official website, on Windows 10. I'm trying to compile some simple Erlang modules from erl, werl or git…
Bernat
  • 3
  • 2
0
votes
2 answers

Elixir IEX stalls before showing prompt, and doesn't accept input

I recently tried to start iex. I typed iex in the shell (I tried several shells, just in case) and iex doesn't provide any prompt or the like. It just sits there, and if I type special keys like arrows they are escaped and output. If i type…
Garrett Motzner
  • 3,021
  • 1
  • 13
  • 30
0
votes
1 answer

Why elixir debugger is calling built-in function instead of mine if they have same name

Here is a simple module with 2 breakpoints in functions which are calling another functions with names exactly the same as built-in ones: get/1 and put/2 defmodule Test do def call_put() do require IEx; IEx.pry put("k", "v") end def…
mkorszun
  • 4,461
  • 6
  • 28
  • 43
0
votes
1 answer

RabbitMQ cluster status: how to parse Erlang's beam from a shell?

I need to monitor rabbitmq cluster status. REST API doesn't provide information about partitions. So I need to use app rabbitmqctl: # rabbitmqctl cluster_status Cluster status of node 'rabbit@rabbit-1'…
martin
  • 1,707
  • 6
  • 34
  • 62
0
votes
0 answers

Erlang cluster synchronization issues

I have an erlang cluster of 4 nodes running on different hosts. I recently encountered an issue with the cluster in a way that beam process is running in one of the nodes but the application was not running. I could see that my OTP application was…
sad
  • 820
  • 1
  • 9
  • 16
0
votes
1 answer

ALOS Satellite Product to PNG conversion issue (missing rotation)

I'm trying to export a PNG quicklook of an ALOS AVNIR-2 product using the BEAM java APIs. The following picture shows the RGB preview of the prduct, as it appears in the GUI of beam. As you can see, the image is not upright, due to its geocoding.…
INElutTabile
  • 866
  • 2
  • 20
  • 38
0
votes
1 answer

Why does the following code cause the Erlang HiPE compiler crash?

The code is following: -module(hipe_crash). -export([f/6]). f(A, B, C, D, E, L) -> lists:foldl(fun (X, P) -> AVar = case A of 0 -> 1 / D; N -> N / (C - B) end, BVar = case E of …
0
votes
1 answer

Fail to start beam on host AND Can't start newbeam on host

Having some issues as follows: ==> 20120712-1611/tsung_controller@tester0.log <== =INFO REPORT==== 12-Jul-2012::16:12:45 === ts_config_server:(0:<0.100.0>) Can't start newbeam on host tester1 (reason: timeout) ! Aborting! =INFO REPORT====…
ikosuave
  • 46
  • 6
-1
votes
1 answer

What to look to in order to write a BEAM VM language?

I'm about to start a toy project, that is implementing my programming language. I'd like to make a language that runs over BEAM like Elixir. It can be simple, it's just a toy project. I found some links about BEAM bytecode, and that stuff but…
GeekSilva
  • 481
  • 1
  • 5
  • 20