Minimal web server

James Knott james.knott-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Mon Mar 28 16:30:53 UTC 2005


Peter wrote:
> 
> 
> On Sun, 27 Mar 2005, James Knott wrote:
> 
>> Chris F.A. Johnson wrote:
>>
>>>     They use their own. A basic web server is not hard to write. I
>>>     remember seeing a web server written for the Amiga that was 7
>>>     lines of ARexx code.
>>>
>>
>> What's wrong with people that they can't write tight code anymore?
>> I once wrote a useful utility, that was 5 bytes long!  ;-)
> 
> 
> Beyond laughs, there is an example perl web server that is no more than 
> 12 lines. It's in the perl coding examples.

The purpose of the utility I wrote, was simply to return an error code 
of zero.  Someone else was trying to write a batch file (DOS) and needed 
to reset the error code.  It was quite simple to create it using debug. 
  I also tried it in C, but the resulting code was somewhere around 4 or 
5 KB!

Also, years ago in Byte Magazine, they'd occasionally have a contest, to 
see who could write the smallest amount of code, to perform some 
function.  The one I recall, was to write zeros to all of memory.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list