🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #6067

Re: Star Demo posted, LightSpeed C is great!

#6067
From: David Phillip Oster
Date: Sat, 14 Jun 1986 01:40
29 lines
2283 bytes
I translated Mr. Hawley's demo  (thanks!) into LightSpeed C, made it a
desk accessory, and added some bells and whistles of my own. The
translation was no problem - the compiler gave two error messages about
obvious, non-portable constructs. The source code for the new version is
posted to net.sources.mac .

I've sped it up (LightSpeed's profiler said that almost all the time wsa
being spent inside LineTo, so I took LineTo out.)  I added 4 different
kinds of stars, that are drawn with Copybits. (The smaller ones have the
copybits calls optimized into FlipPixel.)  You'll find some interesting
routines in the code, even if you aren't interested in a Star Trek-like
stars effect.

Xerox lisp machines have a similar screen hack, but their version has
black holes, novas, spiral galaxies, and planets.  If anyone would like to
extend my version and repost it to the net, feel free. (You should add
comets, Mr. Hawley.)

I posted an earlier note about bugs in desk accessories written in
LightSpeed C.  You do have to be careful if you override a tool trap with
a C procedure, and that procedure references global variables.  But aside
from that, the system works just the way it should, and is a joy to use.

The "about" choice in LightSpeed C is yet another version of this screen
hack.

--- David Phillip Oster		-- "The goal of Computer Science is to
Arpa: oster@lapis.berkeley.edu  -- build something that will last at
Uucp: ucbvax!ucblapis!oster     -- least until we've finished building it."
Technical Details
Message-ID: <829@jade.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!ucbvax!jade!ucblapis!oster
References: <170@joevax.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site jade.BERKELEY.EDU
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!dcdwest!sdcsvax!ucbvax!jade!ucblapis!oster
From: oster@ucblapis.berkeley.edu (David Phillip Oster)
Newsgroups: net.micro.mac
Subject: Re: Star Demo posted, LightSpeed C is great!
Message-ID: <829@jade.BERKELEY.EDU>
Date: Fri, 13-Jun-86 21:40:50 EDT
Article-I.D.: jade.829
Posted: Fri Jun 13 21:40:50 1986
Date-Received: Tue, 17-Jun-86 20:52:51 EDT
References: <170@joevax.UUCP>
Sender: usenet@jade.BERKELEY.EDU
Reply-To: oster@ucblapis.UUCP (David Phillip Oster)
Distribution: net
Organization: University of California, Berkeley
Lines: 29