This category contains 7 posts

The growth of Erlang: The Stack Overflow Case Study

One of the most popular technical Questions and Answers (Q&A) websites is nowadays represented by Stack Overflow. Compared to a more traditional mailing list, it provides different advantages: More structured information Focus on the problem/issue Information easier to find Threads easier to follow Concept of reputation (most active users “rewarded”) Up/Down votes Etc. I’m not suggesting … Continue reading

How to manage multiple Erlang installations

Sometimes you need to use different Erlang versions for different projects. I personally have to use an old R12B-5 for one of my projects, which won’t compile on any of the latest Erlang versions. The question is then: How to switch from one version of Erlang to another one in a simple way? There are no … Continue reading

How they tried to fool tryerlang.org

Preface tryerlang.org is an Interactive Erlang Shell which allows you to try the power of Erlang directly in your browser, without installing anything in your machine. In the first months of his existence, tryerlang.org has been subjected to a countless number of attacks, aiming at bringing the Erlang node down. Studying the tryerlang.org’s logs has been so … Continue reading

tryerlang.org – Slides from the Erlang Factory

I had the honor to present tryerlang.org yesterday at the London Erlang Factory. If you want, you can download the slides of my “lightning talk” from here. Thanks for being there.

Erlang Quickcheck Design Patterns – Black Box

Name Black Box Also Known As ETS Driven Testing Intent When writing Quickcheck unit tests for an Erlang application, it usually happens that you require to stub some external application, since you’re not interested in System Tests, but you want to test your application as a mere black box. Motivation You want complete control on … Continue reading

Tracing Erlang Functions

Tracing Erlang functions for debugging purposes is probably simpler than you could even imagine. Let say you have the following module and you want trace one of its functions. -module(math). -export([sum/2, diff/2]). sum(A, B) -> A + B. diff(A, B) -> A – B. Just start the tracer: > dbg:tracer() Say the tracer that you … Continue reading

The v(Number) function in Erlang

Maybe, someone of you doesn’t still know about the existence of the Erlang function v(Number). You can use this function within an Erlang shell and it will return the value for the Number-th line of the shell. For example: Eshell V5.6.5 (abort with ^G) 1> 2 * 2. 4 2> v(1). 4 3> I found … Continue reading