Tag Archives: Computer Science

Talking to Erlang

In a previous post, Scalable Web Apps: Erlang + Python, I talked broadly about using HTTP to make external applications talk to an Erlang cluster over the internet or network. The following code is an example of a MochiWeb server set up to receive HTTP requests with embedded JSON. HTTP is basically used as a [...]

Why Make Erlang a Functional Language?

Why Does Erlang Have Weird Syntax? I’ve heard the argument many times. People “don’t like Erlang’s syntax so [they] don’t like Erlang.” I, for instance, didn’t understand the block terminator syntax when I was first learning Erlang, so I asked Yariv Sadan about it: Erlang syntax came from Prolog. The ‘end’ keyword is used to [...]

Scalable Web Apps: Erlang + Python

Motivation This post describes how to program scalable web applications with Erlang and Python using computational parallelism. Caching and load balancing are well documented elsewhere and beyond the scope of this post. Web applications, by nature, span two drastically different programming domains: The high-level web design and development domain and the low-level, high-performance, and distributed [...]

Erlang Circular Process Communication

The 1984 Chandy / Misra solution to the dining philosophers problem1 requires philosophers to communicate with each other. In Erlang, one way to do this is to have the philosophers tell the philosopher who sat before them that they are neighbors. Below is my first Erlang program which sets up the circular communication between processes: [...]

Mind Hash Tables: An Estimate of Reality

Science and Philosophy are Models Anyone who’s taken a philosophy course knows that there exists an endless supply of propositions trying to explain anything and everything, from existence to reasoning. Furthermore, anyone who’s taken a science or math course knows that everything science can explain has exceptions. Exceptions will always exist because any time humans [...]