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'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?
...
Where can I found any erlang web hosting ?
...
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...
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?
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 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?
...
What console output commands are available in Erlang?
I know about io:format but was wondering what other output libraries exist.
...
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?
...
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?
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
...
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...
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?
...
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...
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...
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.
...
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?
...
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)...