Thread: Re: [Simpleweb-Support] simple server, mamba
Brought to you by:
niallg
|
From: Niall G. <ni...@em...> - 2005-03-17 03:37:27
|
<P>Hi,</P>
<P>Yes, the Mamba standalonbe sever uses Simple 2.4. However if you would l=
ike i can email you a server implementation that uses the latest version of=
Simple that can use templates and sessions. I am currently working on a de=
monstration package and an improved introduction so that users can get=
a server up and running much easier. Let me know if you would like me to e=
mail the server implementation to you.</P>
<P>Niall</P>
<P><BR><BR>----- Original Message -----<BR>From: sszretter <SSZRETTER@HOTMA=
IL.COM><BR>To: sim...@li...<BR>Subject: [Simplew=
eb-Support] simple server, mamba<BR>Date: Wed, 16 Mar 2005 11:55:34 -0500<B=
R><BR></P>
<STYLE type=3Dtext/css><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></STYLE>
<DIV>I am interested in using the Simple engine to serve pages and objects,=
but need a starting point. I checked out the mamba engine that uses =
Simple, but it uses version 2.4 of Simple. Mamba is probably ac=
ceptable if it could use the latest Simple, OR maybe someone has another su=
ggestion??</DIV>
<DIV><BR></DIV>
<DIV>I am mainly interested in creating a stand alone java app that serves =
up static pages and images from the hard disk, as well as objects that prod=
uce html output. Simple sounds like it does this, but is for me just =
missing the stand-alone app framework...</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><TT>-- </TT></DIV>
<DIV>cool software and services: www.eesco.com</DIV><BR>
--=20
<p>___________________________________________________________<br>Sign-up f=
or Ads Free at Mail.com<br>
<a href=3D"http://mail01.mail.com/scripts/payment/adtracking.cgi?bannercode=
=3Dadsfreejump01" target=3D"_blank">http://www.mail.com/?sr=3Dsignup</a></p>
|
|
From: Niall G. <ni...@em...> - 2005-03-18 00:26:29
Attachments:
mamba-1.1.4.jar
|
<P>Hi,</P>
<P>Here is the JAR file for Mamba 1.1.4. To view the source, simply extract=
the jar file using the following command:</P>
<P>jar xvf mamba-1.1.4.jar</P>
<P>Niall</P>
<P> </P>
<P><BR><BR>----- Original Message -----<BR>From: sszretter <SSZRETTER@HOTMA=
IL.COM><BR>To: sim...@li...<BR>Subject: Re: [Sim=
pleweb-Support] simple server, mamba<BR>Date: Thu, 17 Mar 2005 06:25:44 -05=
00<BR><BR></P>
<STYLE type=3Dtext/css><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></STYLE>
<DIV><BR></DIV>
<DIV>Yes,</DIV>
<DIV><BR></DIV>
<DIV>Please email, that is great!</DIV>
<DIV>Thanks!</DIV>
<DIV>Scott</DIV>
<DIV><BR></DIV>
<BLOCKQUOTE cite=3D"" type=3D"cite">Hi,<BR></BLOCKQUOTE>
<BLOCKQUOTE cite=3D"" type=3D"cite">Yes, the Mamba standalonbe sever uses S=
imple 2.4. However if you would like i can email you a server implementatio=
n that uses the latest version of Simple that can use templates and session=
s. I am currently working on a demonstration package and an improved introd=
uction so that users can get a server up and running much easier. Let =
me know if you would like me to email the server implementation to you.<BR>=
</BLOCKQUOTE>
<BLOCKQUOTE cite=3D"" type=3D"cite">Niall<BR></BLOCKQUOTE>
<DIV><BR><BR></DIV>
<DIV><TT>-- </TT></DIV>
<DIV>cool software and services: www.eesco.com</DIV><BR>
--=20
<p>___________________________________________________________<br>Sign-up f=
or Ads Free at Mail.com<br>
<a href=3D"http://mail01.mail.com/scripts/payment/adtracking.cgi?bannercode=
=3Dadsfreejump01" target=3D"_blank">http://www.mail.com/?sr=3Dsignup</a></p>
|
|
From: Niall G. <gal...@ya...> - 2005-03-18 00:35:42
|
Hi, I have had a look at you implementation in LUA. Just wondering, you have taken a different approach on a few things, any ideas you think might be useful in Simple? Niall --- PA <pet...@gm...> wrote: > > On Mar 17, 2005, at 04:37, Niall Gallagher wrote: > > > I am currently working on a demonstration package > and an improved > > introduction so that users can get a server up and > running much > > easier. > > Talking of which, albeit slightly off-topic, I'm > somewhat > re-implementing simple-core in Lua [1]. > > Here is a brief illustration: > > -- create the application server > local anApplication = LWApplication.new( "*", 1080 ) > > -- register a service > anApplication.registerService( > LWDirectoryService.new( "/prefix/", > "/Directory/Path" ) ) > > -- start the application > anApplication.start() > > As easy as 123 :) > > Gory details available online: > > http://dev.alt.textdrive.com/browser/LW/ > > As well as a short introduction to Lua: > > http://alt.textdrive.com/lua/19/lua-story-of-o > > Cheers > > -- > PA, Onnay Equitursay > http://alt.textdrive.com/ > > [1] http://www.lua.org/about.html > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT > Products from real users. > Discover which products truly live up to the hype. > Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: PA <pet...@gm...> - 2005-03-19 08:29:23
|
Hi Niall, On Mar 18, 2005, at 01:35, Niall Gallagher wrote: > I have had a look at you implementation in LUA. Just > wondering, you have taken a different approach on a > few things, any ideas you think might be useful in > Simple? Well, the implementation itself is quite different as the underlying=20 language and VM are very much different. That said, I think that=20 conceptually they are very close. Or to put it another way, Simple is=20 very much the inspiration for LuaWeb :) Both Simple and LuaWeb provides 3 main functionalities as I see it: an=20= event dispatcher, a core HTTP engine and the scaffolding for an app=20 server. Concurrent event dispatching in Lua is handled quite differently than=20 in Simple as Lua provides coroutine instead of threads: "Non-Preemptive Multithreading" http://www.lua.org/pil/9.4.html The end result being somewhat similar to java.nio selectors as well as=20= what Simple itself does: limit the number to threads while keeping=20 concurrency high nonetheless. The HTTP engine itself is quite similar in both implementation:=20 requests, responses, services, etc. In both libraries, an HTTP engine=20 is defined as a set of services which handle a subset of the URL=20 namespace. Finally, there is the app server scaffolding. This is perhaps where=20 Simple and LuaWeb diverge the most. But this is somewhat to be expected=20= as everyone has their own like and dislike about how an app server=20 should behave. Even ZO=CB, while happily using Simple since the summer = of=20 2003, has its own implementation of an app server build on top of=20 Simple itself... Perhaps one thing which would be beneficial though, is to have the=20 Simple HTTP engine emphasize the HTTP methods themselves (e.g. GET vs=20 HEAD vs OPTIONS, etc). For example, in LuaWeb, the default HTTP service implements HEAD in=20 terms of GET. That way all the services can handle a HEAD request=20 out-of-the-box. In contrast, each Simple services has to explicitly=20 switch between the different HTTP methods in their process() method. As=20= an illustration, contrast the implementation of=20 simple.http.serve.FileResource and LWFileService: http://dev.alt.textdrive.com/file/LW/LWFileService.lua The same applies for OPTIONS which is implemented by the default=20 LWService in terms of what HTTP methods a service effectively provides. Emphasizing the HTTP methods upfront provides a nice logical=20 distinction between what your custom service needs to do, as there is=20 no need for conditional execution (e.g. GET vs POST vs DELETE). Most likely there are other differences here and there, but, all in=20 all, I found both library quite similar in purpose if not in execution=20= :) Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ |
|
From: sszretter <ssz...@ho...> - 2005-03-17 11:26:04
|
Yes, Please email, that is great! Thanks! Scott >Hi, > >Yes, the Mamba standalonbe sever uses Simple 2.4. However if you >would like i can email you a server implementation that uses the >latest version of Simple that can use templates and sessions. I am >currently working on a demonstration package and an improved >introduction so that users can get a server up and running much >easier. Let me know if you would like me to email the server >implementation to you. > >Niall > -- cool software and services: www.eesco.com |
|
From: PA <pet...@gm...> - 2005-03-17 11:49:21
|
On Mar 17, 2005, at 04:37, Niall Gallagher wrote: > I am currently working on a demonstration package and an improved=20 > introduction so that users=A0can get a server up and running much=20 > easier. Talking of which, albeit slightly off-topic, I'm somewhat=20 re-implementing simple-core in Lua [1]. Here is a brief illustration: -- create the application server local anApplication =3D LWApplication.new( "*", 1080 ) -- register a service anApplication.registerService( LWDirectoryService.new( "/prefix/",=20 "/Directory/Path" ) ) -- start the application anApplication.start() As easy as 123 :) Gory details available online: http://dev.alt.textdrive.com/browser/LW/ As well as a short introduction to Lua: http://alt.textdrive.com/lua/19/lua-story-of-o Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ [1] http://www.lua.org/about.html |