Journal of Omnifarious - My first Erlang program!

Nov. 7th, 2009

02:49 pm - My first Erlang program!

Previous Entry Add to Memories Share Next Entry

I put my first Erlang program in a pastebin. It's a concurrent prime sieve. Likely not the most efficient way to do things, but I'm still all pleased with myself. :-)

I may or may not choose to program more sophisticated things in Erlang, but I figured a passing familiarity was in order. Especially since I'm thinking of using CouchDB for something and it's written in Erlang. While knowing Erlang isn't necessary to understand CouchDB, I figure that it certainly can't hurt.

Tags: ,
Current Location: 1309 NE 45th St, 98105
Current Mood: [mood icon] accomplished
(4 comments | Leave a comment)

Comments:

[User Picture]
From:foxfirefey
Date:November 8th, 2009 03:22 am (UTC)
(Link)
The only thing I really know written in Erlang is ejabberd!
(Reply) (Thread)
[User Picture]
From:omnifarious
Date:November 8th, 2009 09:38 am (UTC)
(Link)

Oh, when I last looked at it, which was a long time ago, it wasn't. It was also quite fussy and difficult to get running and often crashed.

I imagine that it is a whole lot better now.

Erlang actually encourages a style of programming for multi-threaded programs that is how I imagined my StreamModule system would work in a multi-threaded environment. I'm kind of impressed with it.

How did you come to know that ejabberd was written in Erlang? Have you ever hacked on it?



Edited at 2009-11-08 09:38 am (UTC)
(Reply) (Parent) (Thread)
[User Picture]
From:foxfirefey
Date:November 8th, 2009 10:31 am (UTC)
(Link)
No, no, I looked into it when LJ migrated from djabberd to ejabberd.
(Reply) (Parent) (Thread)
[User Picture]
From:omnifarious
Date:November 8th, 2009 05:51 pm (UTC)
(Link)

Oh! Maybe I was thinking of djabberd when I was thinking of the picky and unstable one. I remember it was the first Jabber daemon that was widely available. Anyway, that makes sense. :-)

(Reply) (Parent) (Thread)