erlang

How can I write code without "needing" comments for readability?

Possible Duplicate: Is it possible to write good and understandable code without any comments? When coding often I hear that if comments are needed then it means that the code is too hard to understand. I agree that code should be readable but often the language itself makes the code hard to follow, because of "plumbing" and s...

I would like to know some "best practices" for Erlang?

I'm quite new to Erlang coding and want to know what some of the "best practices" are in industry with code examples if possible. ...

What is the performance difference between native and bytecode Erlang modules?

What is the performance difference between native and bytecode Erlang modules? ...

Any Erlang vps web hosting exist ?

Where can I found any erlang web hosting ? ...

Monitoring and Prevention Of Systems Limit Crashes For Mnesia In An Erlang System

We have a number of cloud servers and I am building a new one to test provision of resources on. I am getting a fatal crash way before I think I ought to, as some sort of system resource is running out. =INFO REPORT==== 14-Feb-2010::12:40:14 === Setting up: "http://sub48.localhost:9000" as pirate Mnesia('[email protected]'): Data may be...

Erlang: What are the pros and cons of different methods for avoiding intermediate variables?

At one point while traveling the web, I came across a great page which contrasted the clarity and terseness of different methods of doing a sequence of operations without having to make a bunch of throwaway variables, e.g., Var1, Var2, Var3. It tried list comprehensions, folds, maps, etc. For some reason, now matter what I google, I can'...

How do I change the process name of an Erlang VM?

How do I change the process name of an Erlang VM? It isn't very convenient to have beam listed when I do ps -A... Somewhat related to: http://stackoverflow.com/questions/2255444/changing-the-process-name-of-a-python-script ...

How to manage third-party erlang applications ?

How do you manage erlang applications that are not part of the Erlang/OTP release ? Where do you usually install them ? If you install them aside of Erlang/OTP release, how do you tell erlang VM where to look them up (Yes, I know about -pz flag but it seems to be a little awkward for me to use that flag when there are more than one third...

In Erlang how to I convert a String to a binary value?

In Erlang how to I convert a String to a binary value? ...

What console output commands are available in Erlang?

What console output commands are available in Erlang? I know about io:format but was wondering what other output libraries exist. ...

Is Erlang really a functional language?

I hear all the time that Erlang is a functional language, yet it is easy to call databases or non side-effect free code from a function, and commands are easily ordered by using "," commas between them just like Ruby or another language, so where is the "functional" part of Erlang? ...

Should I use try catch in Erlang or should I pass back an error token?

I'm coding in Erlang and a I am bit unsure about how to approach error handling, especially after seeing the ugly errors Erlang always returns. Should I use try catch in Erlang or should I pass back an error token? ...

What are some fundamental Feature/Architectural difference between the BEAM and JVM?

What are some fundamental Feature/Architectural difference between the BEAM and JVM? Yes I know: one was originally built around java and the other built around erlang I understand the JVM (somewhat) and want to compare their structures For example I know that the JVM has one Global GC and BEAM has one per process ...

How do I generate a GUID in Erlang?

I tried: os:cmd("uuidgen -t") : but this is platform dependant and returns a tuple. I just want a binary value which I can use. I want something based on MAC address, 128bit, and where I can just include a module and use module:uuid() to get a string hex UUID, or module:binary_uuid, something simple like that. So far it doesn't seem t...

What does "new" when called on an erlang module do?

I've seen module_name:new used in Erlang code, but there is no reference to a "new" function in the module_name module. What does "new" do? ...

receive from a socket and also from another Erlang process

in an Erlang process, how could i receive from an ssl socket, and at the same time receive from another erlang process with the receive primitive? the idea is to forward what comes from the socket to another process; and backwards. my only option so far is to use some time receiving from each end, then switch. that, of course, will de...

Is "new" in Erlang part of the official standard and should we use it?

I ask this question as I have noticed that alot of OpenSource Erlang projects use "new" to pass parameters to Erlang modules, yet I hear at the same time that "new" is not part of the official language and may not be supported if it contains bugs. Before I use it in my own project I would like to clarify this issue. Update: I have since...

What alternatives are there to parameterised modules in Erlang?

I can see why parameterised modules are used so much, as they allow us to do things like: X = y:new("param"). X:action1(). X.get_property(): : which feels very OO. However, this is only an experimental feature in Erlang and I hear it may be removed, so I need to find an alternative. ...

What experimental features of Erlang should I "not" be using?

I recently found out that I should not be using parameterized modules in Erlang (the new keyword) as they are experimental and may be removed. What other things should I not be using, and why? ...

Erlang neighbour search

I have couple of interconnected computers. On every machine there is running Erlang node and I'd like to communicate with each other passing Erlang terms (peer-to-peer style). However nodes on other computers are listed in nodes() only after I net_adm:pinged them etc. Is there any way how to find out what all nodes (with the same cookie)...