Erlang/OTP Forums

Author Message

<  Advanced Erlang/OTP  ~  Reusable Web Components

francesco
Posted: Mon Oct 09, 2006 12:42 pm Reply with quote
User Joined: 07 Jul 2006 Posts: 249 Location: London
The conclusions of a paper we presented at the ACM SIGPLAN Erlang workshop in Portland this year was that the major hurdle to developing glue and logic in Erlang was the lack of components. Look at trapexit. In a few days, two interns put together a site using the media wiki and phpBB. This is a dream when using Erlang. On our end, we've had to build bulletins, mailing lists, content servers, calendar applications, and so much more.

My question: For those of you developing web based applications in Erlang, what reusable components are you aware of which have been released as open source? The one I am aware of is the Wiki.. Nothing close to the media wiki, but still interesting enough. Anything else?

Francesco
View user's profile Send private message Visit poster's website
anders_n
Posted: Mon Oct 09, 2006 8:59 pm Reply with quote
User Joined: 28 Feb 2005 Posts: 155 Location: Saltillo, Mexico
There is a blog component in yfront in jungerl. It is mostly a mnesia
backend for storing articles and comments.
I have spent a little time to add some administration tools to it
but it is not yet in shape to be released.

/Anders Nygren
View user's profile Send private message Yahoo Messenger
uwiger
Posted: Tue Oct 10, 2006 6:16 am Reply with quote
User Joined: 03 Jul 2006 Posts: 604 Location: Sweden
francesco wrote:

My question: For those of you developing web based applications in Erlang, what reusable components are you aware of which have been released as open source? The one I am aware of is the Wiki.. Nothing close to the media wiki, but still interesting enough. Anything else?


Joe and I have a small project that we hope to have in presentable shape in time for EUC06. It could possibly become an on-line web development framework where one can publish reusable components with relative ease.

I want to get some more finishing touches in place before I say too much about it, though.

/Ulf W
View user's profile Send private message Visit poster's website
tobbe
Posted: Tue Oct 10, 2006 8:37 am Reply with quote
User Joined: 19 Jan 2005 Posts: 274 Location: Stockholm, Sweden
anders_n wrote:
There is a blog component in yfront in jungerl. It is mostly a mnesia
backend for storing articles and comments.
I have spent a little time to add some administration tools to it
but it is not yet in shape to be released.

/Anders Nygren


Very good! The intention with Yfront is to be a container for
general plugins and tools for Web applications.

To see the Yfront blog component in action, look here:

http://u1.noneg.se/wblog.yaws?action=view&id=1159303442906231

Also, in jungerl there is an app. called 'js' , it is a layer ontop of the
prototype Javascript library. Lately, I've started to look into the Dojo
toolkit (http://www.dojotoolkit.org/) which looks very nice. Other good
Javascript libraries are http://script.aculo.us/ and the X-library http://cross-browser.com/ .

Cheers, Tobbe
View user's profile Send private message Send e-mail Visit poster's website
martin
Posted: Thu Oct 12, 2006 10:51 am Reply with quote
User Joined: 06 Aug 2006 Posts: 11
tobbe wrote:


Very good! The intention with Yfront is to be a container for
general plugins and tools for Web applications.

To see the Yfront blog component in action, look here:

http://u1.noneg.se/wblog.yaws?action=view&id=1159303442906231

Also, in jungerl there is an app. called 'js' , it is a layer ontop of the
prototype Javascript library. Lately, I've started to look into the Dojo
toolkit (http://www.dojotoolkit.org/) which looks very nice. Other good
Javascript libraries are http://script.aculo.us/ and the X-library http://cross-browser.com/ .

Cheers, Tobbe


There is something about the web component in erlang thing i find interesting.
All components i've seen this far are very tightly coupled with Yaws.

Why don't we build a framework where erlang applications can bundle the functionality of a components? Much like applications do for normal erlang systems. Provide a way of accessing this functionality through HTML?
Much like the API of the normal application.

Perhaps something similar to JSP http://www.sun.com where you can write something like <?:my_component action="do something clever" ...../>.
On the part of controllers which modifies the model the situation could be similar, bind a URL to a MFA where the MFA verify the input and perform the action and redirect back to a view.

All this howerver requires a common environment, so why not build a common platform for this? Not dependent on what webserver is running it? This way everybody in the community can contribute applications capable of being plugged in to a web interface of an existing system.

//Martin
View user's profile Send private message
tobbe
Posted: Thu Oct 12, 2006 11:08 am Reply with quote
User Joined: 19 Jan 2005 Posts: 274 Location: Stockholm, Sweden
Quote:

All components i've seen this far are very tightly coupled with Yaws.


Not really. For example, the wblog in yfront doesn't require Yaws.
It just returns an ehtml structure that you can do whatever with.

So I don't see why any web-component should need to rely on Yaws.

--Tobbe
View user's profile Send private message Send e-mail Visit poster's website
martin
Posted: Thu Oct 12, 2006 1:27 pm Reply with quote
User Joined: 06 Aug 2006 Posts: 11
Quote:

It just returns an ehtml structure that you can do whatever with.


I guess what im looking for is some way for me as a erlang programmer, who is not the least interested in writing fancy webpages with colours and lines to hand this tedious task to a webdeveloper in a clean way where i can separate my erlang code from all that HTML junk. Thats where i think the JSP approach can have some thing to offer.

//Martin
View user's profile Send private message
andreas
Posted: Fri Oct 13, 2006 9:24 am Reply with quote
User Joined: 03 Jul 2006 Posts: 17
Martin have you looked at the W3C [url=http://www.w3.org/Jigsaw/]Jigsaw[/url] server? I have briefly lookad at the design overview.

The strength of Appatch (and Jigsaw?) is that is just a micro core that makes up the server. Everything else is extensions.

A question regarding YAWS: Is it to much core?
Should some of its functionality become extensions instend?
In other words, a new generic framwork.

[/url]
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum