tags:

views:

3844

answers:

14

I'm interested in looking at Erlang and want to follow the path of least resistance in getting up and running.

At present, I'm planning on installing Erlang R12B-3 and Erlide (Eclipse plugin). This is largely a Google-result-based decision. Initially this will be on a Windows XP system, though I am likely to reproduce the environment on Ubuntu shortly after.

Is there a significantly better choice? Even if it is tied to one platform.

Please share your experiences.

+9  A: 

I've only done a small bit of coding in Erlang but I found the most useful method was just to write the code in a text editor and have a terminal open ready to build my code as I need to (this was in Linux, but a similar idea would work in Windows, I'm sure).

Your question didn't mention it, but if you're looking for a good book on Erlang, try this one by O'Reilly.

Justin Bennett
I want to second the book recommendation. It's really awesome.
Till
Minor correction: That book isn't an O'Reilly book. O'Reilly and Pragmatic Press are two different, and competing, publishers.
Nick Gerakines
+1  A: 

I like Justin's suggestion, but I'll add to it: this solution is great for learning a language. If you don't rely on something like code-completion, then it forces you to learn the language better. (If you are working with something with a huge API, like Java or Cocoa, then you'll want the code completion, however!)

It's also language-agnostic, and in the case of an interpreted language, particularly one that has an interactive interpreter, you'll probably spend just as much time in the shell/interpreter typing in commands. Even in a large-ish python project, I still work in an editor and 4 or 5 terminal windows.

So, the trick is more about getting an editor which works for you. I'm not about to suggest one, as that's heading towards evangelism!

Matthew Schinckel
A: 

From what i've tried (and are still up to do), a good addition to an erlang dev. environment would be a virtual machine running ubuntu/yaws/erlang. Perhaps Erlyweb (erlang/yaws framework) would be nice checking out too.

Ciaran's posts (this would be the first of his "series") about his erlang install is nice, as he details the steps in setting up the server (and other stuff like xmpp with jabberlang).

Berzemus
On Win32, you way want to check out [coLinux][1] for this purpose.[1]http://www.colinux.org
none
A: 

Just a quick note:
The Erlang "compiling" process described in Ciaran's post (described for Ubuntu 6.10 btw) can be easily skipped using apt command in any Debian based distro:

apt-get install erlang

Do not forget to install these packages if you see it fit:
erlang-doc-html - Erlang HTML document pages
erlang-examples - Some application examples
erlang-manpages - Erlang MAN pages
erlang-mode - editing mode for Emacs

Good Luck!

ramayac
+1  A: 

I just use Scite. Type something and press f5 to see the results.

Bharani
+2  A: 

You coud also try a virtual server on demand service like this one from CohesiveFT

Select the components you want (e.g. erlangrb12 + yaws + mysql + erlyweb) and it will build a vm image for you to download or to put onto ec2.

Rolling you own locally is quite straightforward too if you follow the instructions in the pragmatic programmers book Programming Erlang

rhys
A: 

Since you're switching to Ubuntu eventually anyways, I highly recommend using erlang-mode for emacs (which comes bundled with the Erlang distribution). It is officially what all the core developers use and what many other developers use because of the many features it offers you.

Installing the Erlang distribution itself should be simple :)

Mitchell
+3  A: 

I'm using Erlang in a few production systems personally as well at the office. For client side testing, documentation and development I use a MacBook Pro as the OS/platform and TextMate with the Erlang bundle as an editor.

For sever side development and deployment we use RHEL 4.x/5.x in production and for editing I use VIM. Personally, I've got 4 machines (slices on slicehost.com) running debian using Erlang for a few websites and jobs.

I try to go with the smallest 'engineering environment possible', usually the one with the fewest dependancies from apt or yum.

Nick Gerakines
+12  A: 

I highly recommend the Erlang mode shipped with the standard Erlang distribution. I've put together a "works out of the box" Emacs configuration which includes:

  • Syntax highlighting & context-sensitive indentation
  • Dynamic compilation with on-the-fly error highlighting
  • Integrated Erlang shell
  • And more....

You can browse my GitHub repo here:

http://github.com/kevsmith/hypotheticalabs/tree/master

+3  A: 

To add to the Emacs suggestions, I would also recommend that you look at the advantages of distel when running the Emacs erlang-mode.

+1  A: 
Dylan White
+5  A: 

You could also try NetBeans there's a very nice Erlang module available: ErlyBird

  1. Install Erlang: sudo aptitude install erlang
  2. Install a recent JDK: sudo aptitute install sun-java6-jdk
  3. Download and install (the smallest) NetBeans edition (e.g. the PHP one): www.netbeans.org/downloads
  4. download the erlang module ErlyBird: sourceforge.net/projects/erlybird
  5. manually install the modules via NetBeans

ErlyBird features:

  • syntax checking
  • syntax highlighting
  • auto-completion
  • pretty formatter
  • occurrences mark
  • brace matching
  • indentation
  • code folding
  • function navigator
  • go to declaration
  • project management
  • Erlang shell console
Juve
+2  A: 

I've seen answers suggesting TextMate here, so I wanted to add another good Mac OSX tool:

ErlangXCode plugin to XCode.

I've been using this since I started with Erlang and really do like it.

The download link on his blog is broken, here's the real download:

http://github.com/JonGretar/erlangxcode/tree/master

marcc
How do you install the plug in?
J. Pablo Fernández
A: 

I have had good success with Erlide.

Arthur Ulfeldt