inicio mail me! sindicaci;ón

Erlang and the GUIs

Erlang is great about concurrency, fault-tolerance and performance but what about the old simple GUI support?

I made a quick research and I came up with this:

  • Gtk (my favorite toolkit) is available in two libraries: erlgtk is the first hit in Google but I didn’t manage to compile it in OSX so I dropped it down. The project is also discontinued so nothing to see here sadly :-( jungerl is a collection of very interesting stuff for Erlang and beneath it there’s gtkNode which wraps GTK 2.8, supports Glade and seems really promising although it’s not updated since months… Anyway it seems to work well but it requires X11 under OSX so a bit unhandy.

  • OSX Aqua: I haven’t found anything…

  • Qt: I haven’t found anything…

  • Tk: Erlang ships with GS which stands for Graphics System, a portable library indipendent from the underlying graphic system. Here uses Tcl/Tk and seems simple and cool.

For now that’s all. I’m going to use GS for my experiments but it’s nice too see that there’s some support for Gtk too!

I’ll update this post if I found out more.

Update (2006/09/20)

Liam Clarke mentioned wxErlang and I forgot to add EX11 in the list so here are two more:

  • X Window: EX11 is a X Window toolkit written in 100% Erlang that talks directly to the X Server, so its power is quite unlimited. The latest version is 2.5 released in 2004. My opinion is that screenshots look kinda ugly and it’s a bit low level (…since it talks with the X System directly). Anyway the simplest tutorial example didn’t work for me so I can’t say more. Joe Armstrong published a series of slides about EX11 if you want to know more: EX11 - An Erlang GUI.

  • wxWidgets: wx has the ability to use other toolkits for rendering so they (at least in theory) render equally your favorites native apps. wxErlang is a prototype implementation but it definitely looks nice on OSX. The project seems halted though (the latest CVS commit is from 10 months ago). Once more time: this library didn’t even compile on my machine so that’s all.

After digging into these two additional libraries I think I’ll stick with GS and gtkNode for my experiments.

Related posts

  • Erlang is damn intuitive
  • Toying with Erlang
  • Producer/Consumer in Python
  • Gravatar

    Liam Clarke said,

    September 20, 2006 @ 3:06 am

    There’s a Erlang library that interfaces with wxWidgets also.

    Gravatar

    Lawrence said,

    September 20, 2006 @ 2:54 pm

    Yay, I’m gonna look into it ASAP and update this post.

    RSS feed for comments on this post · TrackBack URI

    Leave a Comment