Archive for the 'erlang' Category

erlang

Tuesday, November 27th, 2007

For some reason, the Gentoo install of erlang put the man pages into man sections that ended in “erl”. For example, instead a directory named man3 for the 3rd man page section, it’s man3erl.
I wrote a quick alias erlman that only searches these erlang man page sections.
~/.bashrc

 

alias erlman="man -S 1erl:3erl:4erl:6erl"

 

Functional Programming Frenzy

Friday, August 17th, 2007

My journey into the world of Erlang is progressing nicely. I’m really excited by the possibilities the language offers.

I wanted to get more perspective on functional programming by learning another functional language as well. Since my forays into LISP over the years never amounted to much, I decided to try out Haskell. [...]

Terminal.app v. erlang and Latin-1 characters

Saturday, August 4th, 2007

On pages 29-30 of “Programming Erlang” by Joe Armstrong, the author goes over character strings. Erlang uses Latin-1 as it’s character set. At first, Terminal.app wasn’t showing the non-US / ASCII characters.
There’s a two-step process to solve this:

Terminal->Window Settings…->Display->”Character Set Encoding” set to “Western (ISO Latin 1)”
Set the environment variable LC_ALL to “en_US” [...]

Wha-wha-what?! You can make your own control structures?

Thursday, August 2nd, 2007

I’m working through the Programming Erlang book that my friend zuzu recommended to me. Forty-six pages in, and so far, so good.
I did, however, just have my mind blown. I was going through an example for creating a for-loop-like function, because erlang doesn’t have a for-loop. “Well,” I thought, “that’s interesting that [...]

erlang TextMate Bundle

Tuesday, July 31st, 2007

I found this post containing a script that svn checkouts a fairly functional erlang TextMate bundle. Neat-o!
I edited the bundle to allow it to update itself, using a slightly modified form of the original script.

Bundles->Bundle Editor->Show Bundle Editor
Click on the menu entry text “erlang”
Drag a new separator to the bottom of the erlang bundle [...]

erlang

Tuesday, July 31st, 2007

I believe erlang is quickly becoming that “language I always should’ve learned” language — and all this time, I thought that language was LISP.

notes about computers and lifestyle