From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,23a2bccf801215c3 X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.125.233 with SMTP id mt9mr7066878pbb.5.1334497305641; Sun, 15 Apr 2012 06:41:45 -0700 (PDT) Path: r9ni59195pbh.0!nntp.google.com!news2.google.com!goblin3!goblin.stu.neva.ru!news.mb-net.net!open-news-network.org!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: comp.sys.dec Subject: Re: Web server running on RSX-11M-PLUS Date: Sun, 15 Apr 2012 15:41:44 +0200 Organization: Update Computer Club Message-ID: References: NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1334497305 14856 178.83.31.172 (15 Apr 2012 13:41:45 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Sun, 15 Apr 2012 13:41:45 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-04-15 14:07, ChrisQ wrote: > On 04/12/12 14:13, Johnny Billquist wrote: >> Ok. I just thought I'd stir some interest and just general noise by >> announcing that I've written a small web-server running under RSX. >> It's written in BASIC+2, and uses the TCP/IP stack for RSX that I've >> also written. There are probably a bunch of bugs and issues still >> around, so I'm happy to take any bug reports, comments or whatever. >> >> The url is http://madame.update.uu.se/, and if anyone is curious about >> the code, it's at mim.update.uu.se (same machine, other IP), under >> MIM::DU:[HTTPD]WWW.B2S (also on HECnet) >> >> If people have any interest in this stuff, or something else/more, I'm >> interested in hearing about it. The TCP/IP stack will eventually (soon) >> be available for others to download and use, and apart from the web >> server, I've also written a telnet client, and a few small services >> under TCP, as well as some tools for administration. I have some >> polishing to do, I need to finish a DNS resolved, and I'd like to also >> finish FTP and a telnet server, but I might be open to distributing >> things before I've finished all those things, especially if someone is >> interested in helping writing stuff. >> >> I have interfaces completed for BASIC+2, PDP-11 C, Macro-11. FORTRAN 77 >> should also work, but I haven't tried it yet. >> >> This all runs under RSX-11M-PLUS V4.6, but I think it should be possible >> to get running under almost any M+ version, but there might be some >> hacking needed for some versions. >> It will not work under 11M, and I never expect it to. One or two drivers >> as well as one or two tools really are big enough that I need to use the >> split I/D space feature in M+. Rewriting stuff to not need that is way >> too much work. >> >> Johnny > > That is amazing and a real achievement. I guess the tcp/ip stack must > be written in macro ?. The first thing any machine needs to be really > usefull > is network access. Yes, it's all MACRO-11 for the actual stack and basic tools. The web server is the first piece I've written in an HLL here. And it was much because I wanted to write the HLL interface routines, and needed a small pet project to do to test the interface. Using TCP/IP from BASIC+2 in RSX is ridicously easy. You just INPUT and PRINT as usual, but to a file you opened that is the TCP connection. > I have somewhere a Whitesmiths C cross compiler on 5.25" floppies that runs > on an ibm pc under dos, translating to pdp11 macro source. Leftover from a > mid eighties project. Don't know about licensing issues now, but you > would be > welcome to a copy of the disks and docs if you ever need them. I think > gcc has a port to pdp11 as well. That's if you ever need a decent language > to program in :-)... Thanks. I already know about the gcc implementation, having helped some on that many years ago. However, it's more of a curiosity than anything useful, as you have absolutely no libraries to go with it. And you can forget about glibc. :-) I know that Whitesmith did a C compiler for the PDP-11, along with libraries and all, but I have never tried it. I do have DECUS C, which I have modified over the years, and that is usable but perhaps a little restricted for some people (pure K&R, and some additional restrictions). I also happen to have the DEC PDP-11 C compiler for RSX, which is pretty much a full blown ANSI C. Not overly impressed by the code it generates, but it's a rather nice compiler over all (very little, if any optimization done by the compiler). And yes, I have also been working on the TCP/IP interface to that. I have a somewhat usable version, but I'm fighting with myself about if I should go with my original idea, in which where you actually open the tcp socket and get a file handle, to which you can then do printf() and so on, or if I should implement the Unix style socket interface. The Unix style sockets is something people know, which in a way makes it easier for people to write code, but on the other hand, it's a stupid interface and somewhat inefficient. The biggest problem with my current interface is that C have this idiotic idea that a file handle can only be used for input *or* output, not both. And the PDP-11 C libraries enforce this, so I have a small routine that resets the library opinion in which direction I/O is going, which I need to use whenever I "change" the direction of I/O. C is a decent language for some things, but not all. It's very nice for handling structured data of all kinds and forms, but it's horrible to process strings. BASIC on the other hand is very nice to do string processing in, and it's pretty fast to do development. And if you haven't looked at BASIC+2 or VMS BASIC, you'd be surprised about the language. It's pretty far from the BASIC of various Micros... Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol