I have written/test a couple of trivial module servlets and Robby you are correct - module servlets can be un/load without problems and the error doesn't seem to affect the servers. So from what I can tell there are no discernible differences, perhaps until I run into very complex scenarios.
<br><br>Thanks! <br>yinso <br><br><div><span class="gmail_quote">On 4/11/07, <b class="gmail_sendername">Robby Findler</b> <<a href="mailto:robby@cs.uchicago.edu">robby@cs.uchicago.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 4/11/07, Yin-So Chen <<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>> wrote:<br>> Really?! Not being familiar with the history of PLT scheme I have to say I<br>> am surprised by the answer - I would have thought module is an older
<br>> concept. Sounds like you are saying unit is slowly fading away?<br><br>Oh, no! I wouldn't say that. It was just that, in the past, unit was<br>our top-level program structure, but we soon realized that units work
<br>better as a general tool for constructing programs and we needed a<br>more first-order construct for just defining the top-level program<br>structure (in order to make compilation more tractable, etc).<br><br>I'm using "we" in the loosest possible sense here. It was Scott Owens
<br>and Matthew Flatt who really nailed down the difference and explained<br>it properly. Probably they can point you to some writings or say more<br>about it.<br><br>> Can module based servlets be loaded/unloaded on demand like unit-based
<br>> servlets? And would badly written module servlet bring down the server?<br>> Unit servlets appear to handle the above fine, but if module servlet also<br>> works, then I am not sure if there are discernible differences (although
<br>> there are still more unit-servlet examples in the doc).<br><br>I think these questions are all answered the same way, regardless of<br>whether or not you use a module servlet or a unit servlet.<br><br>I should probably defer to Jay, tho. There may be some issues I'm not
<br>up to speed with in the web server.<br><br>Robby<br><br>> Thanks,<br>> yinso<br>><br>><br>> On 4/11/07, Robby Findler <<a href="mailto:robby@cs.uchicago.edu">robby@cs.uchicago.edu</a>> wrote:<br>> > I suspect that most everyone wants to use module servlets these days,
<br>> > not unit servlets. Once upon a time, we didn't have modules (and<br>> > servlets existed at that time), so we used units. Nowadays, modules<br>> > work much better with all of our other tools (like the compiler, for
<br>> > example, but also the module browser and things like that), that you<br>> > really want your program to be in a module.<br>> ><br>> > That said, of course, if your program calls for the power of units,
<br>> > use the units inside the module!<br>> ><br>> > Robby<br>> ><br>> > On 4/11/07, Yin-So Chen <<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>> wrote:<br>> > > Hi all -
<br>> > ><br>> > > yet another newbie question - what is the difference between unit-based<br>> > > servlet and module-based servlet and when to choose which? Are the two<br>> > > comparable in terms of capabilities? I look at the unit doc and notices
<br>> > > that it is analogous to a pluggable component and hence appears to have<br>> more<br>> > > flexibility and power than module, so was wondering under what<br>> situations<br>> > > would a module servlet be preferrable over a unit servlet.
<br>> > ><br>> > > Thanks,<br>> > > yinso<br>> > ><br>> > > --<br>> > > <a href="http://www.yinsochen.com">http://www.yinsochen.com</a><br>> > > ...continuous learning...
<br>> > > _________________________________________________<br>> > > For list-related administrative tasks:<br>> > > <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme
</a><br>> > ><br>> > ><br>> ><br>><br>><br>><br>> --<br>><br>> <a href="http://www.yinsochen.com">http://www.yinsochen.com</a><br>> ...continuous learning...<br></blockquote></div>
<br><br clear="all"><br>-- <br><a href="http://www.yinsochen.com">http://www.yinsochen.com</a><br>...continuous learning...