# develop-05 9101 Winter 1991 — source transcripts, page 1

[Canonical transcript page](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1)

## Transcribed source material

Machine transcriptions and image descriptions; uncertain copy may be marked [illegible]. Verify against the linked originals. Historical rights remain with the original owners.

These are transcribed excerpts, not the full publications. Open the originals for remaining pages.

### Image 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-ef75e8957eb32369df7c9f383b18cf8ece3a8be0bb71f772b26efefc5a6db666)

Transcribed text:

develop
The Apple Technical Journal

ASYNCHRONOUS BACKGROUND NETWORKING ON THE MACINTOSH

APPLE II Q & A

MACINTOSH Q & A

SYSTEM 7.0 Q & A

THE VETERAN NEOPHYTE

DEVELOPER ESSENTIALS: VOLUME 2, ISSUE 1

SCANNING FROM PRODOS

PRINT HINTS

PALETTE MANAGER ANIMATION

THE POWER OF MACINTOSH COMMON LISP

Vol.2, Issue 1 Winter 1991
Apple Computer, Inc.

Image description: A grayscale dithered photograph shows a woman's profile on the right with a gold question-mark earring, beside a lit light bulb in the lower left against a dark background, framed by a yellow border, with a list of article titles in bold sans-serif type on the right.

Reading notes: Headline wordmark 'develop' is stylized display type; transcribed as lowercase as printed. Article list reading order follows top-to-bottom column order.

Printed product names: develop: The Apple Technical Journal

Printed dates: Winter 1991

Languages: English

[Original Image 1](https://www.vintageapple.net/files/5452a27264bbc8624b605fe8bd282f7288a16b5c5b37b6e5896854c522eeaa85/79a763af5386e25d80060247.webp)

### PDF page 1

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-2720d0cd044b1b0f61d327ae0ca6ae23d3933af725124377408aa53682db933d)

Transcribed text:

d e v e l o p T h e   A p p l e   T e c h n i c a l   J o u r n a l
ASYNCHRONOUS
BACKGROUND
NETWORKING ON
THE MACINTOSH
APPLE II Q & A
MACINTOSH Q & A
SYSTEM 7.0 Q & A
THE VETERAN
NEOPHYTE
DEVELOPER
ESSENTIALS:
VOLUME 2, ISSUE 1
SCANNING FROM
PRODOS
PRINT HINTS
PALETTE MANAGER
ANIMATION
THE POWER OF
MACINTOSH
COMMON LISP
V ol . 2 , I s s ue 1   Winter 1991
Apple Computer, Inc.

Reading notes: Masthead and volume line are letterspaced in the source (for example 'd e v e l o p' and 'V ol . 2 , I s s ue 1'), so the headline and volume line were normalized to standard spelling. Transcript is intentionally empty per instructions; the cover-line text was used only to fill the other fields. Productnames are drawn from cover-line topics, so the 'advertised product' status of these items is uncertain. Reading order of the cover lines follows the supplied copy and may not match the visual layout exactly.

Printed product names: Apple II · Macintosh · System 7.0 · ProDOS · Macintosh Common Lisp

Printed dates: Winter 1991

Languages: English

[Original PDF page 1](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=1)

### PDF page 2

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-8b1ecf08ef7e064f3a99da0e3bdb4a3afa06ac3459ad7b3544274fec958214bd)

Transcribed text:

E D I T O R I A L
Editor in Chief’s Clothing   Louella Pizzuti
Technical Buckstopper   Dave Johnson
Managing Editor   Monica Meffert
Developmental Editors   Lorraine Anderson,
Judy Bligh, Judy Helfand,
Loralee Windsor
Editorial Assistant   Patti Kemp
Copy Editor   Toni Haskell
Production Manager   Hartley Lesser
Indexer   Ira Kleinberg
Manager, Developer Technical Communications
David Krathwohl
A R T   &   P R O D U C T I O N
Design   Joss Parsey
Technical Illustration   J. Goldstein
Formatting   Bruce Potterton
Printing   Craftsman Press
Film Preparation   Aptos Post, Inc.
Production   PrePress Assembly
Photographer   Ralph Portillo
Circulation Management   Dee Kiamy
Online Production   Cassi Carpenter
R E V I E W   B O A R D
Pete “Luke” Alexander
Larry “Cat Couch” Rosenstein
Andy “The Shebanator” Shebanow
To create the cover, Hal Rucker,
Cleo Huggins, a flashlight, black
construction paper, a lightbulb, a
chair and a whole lot of duct tape
came together.
d e v e l o p , The Apple Technical
Journal,   is a quarterly publication
of the Developer Technical
Communications group.

Reading notes: Transcript intentionally left empty because the exact extracted text is preserved separately; no image was supplied, so layout and visual description rely only on the supplied copy. No headline is visibly identifiable; the section headings E D I T O R I A L and A R T & P R O D U C T I O N and R E V I E W B O A R D are the closest structural labels and were not treated as a headline. The Apple Technical Journal is named as a quarterly publication rather than an advertised product, so it was not listed in productNames. Reading order across the two-column staff lists and the cover-credit paragraph may not match the original page layout. The copy contains no explicit advertised prices or printed dates.

Languages: English

[Original PDF page 2](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=2)

### PDF page 3

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-d45626d370b305a833e544e677f0c55438c2a3765757104a2c9146746121719e)

Transcribed text:

Asynchronous Background Networking on the Macintosh
by Harry Chesley   A MacApp class for handling asynchronous network
activities, used in an application that propagates messages among machines on
the AppleTalk network.   6
Apple II Q & A   Answers to your product development questions.   31
Macintosh Q & A   Answers to your product development questions.   34
System 7.0 Q & A   Answers to your product development questions.   44
The Veteran Neophyte   by Dave Johnson   Commentary from
the trenches.   47
Developer Essentials: Volume 2, Issue 1   The latest disc containing
essential tools for developers.   49
Scanning from ProDOS   by Matt Gulick   Including support for the Apple
Scanner in your Apple II applications: it’s easier than you think.   51
Print Hints with Luke & Zz   Tips and tricks from the print masters. This time:
a cautionary fable, and a little known constant.   76
Palette Manager Animation   by Rich Collyer   Techniques for color table
animation are presented, along with some of the newer features of the Palette
Manager and the reasons you should use it.   78
The Power of Macintosh Common Lisp   By Ruben Kleiman
An introduction to the Macintosh Common Lisp development environment,
highlighting its key features and strengths.   85
Index   114
CONTENTS
CONTENTS   Winter 1991
1 © 1991 Apple Computer, Inc. All rights reserved.
Apple, the Apple logo, Apple IIGS, AppleLink, AppleShare, AppleTalk, APDA, APDAlog, GS/OS,
HyperTalk, ImageWriter, LaserWriter, LocalTalk, Mac, MacAPP, Macintosh, MPW, MultiFinder and
ProDOS are registered trademarks of Apple Computer, Inc. Develop, Finder, HyperMover, QuickDraw,
and ViewEdit are trademarks of Apple Computer, Inc. Hypercard is a registered trademark of Apple
Computer, Inc. and is licensed to Claris Corporation. ACOT is a service mark of Apple Computer, Inc.
IBM is a registered tradmark of International Business Machines Corporation. MacDraw is a registered
trademark of Claris Corporation. MacWeek is a registered trademark of Coast Associate Publishing,
L.P. NuBus is a trademark of Texas Instruments. Postscript is a registered trademark of Adobe Systems
Incorporated. Prototype is a trademark of Smethers Barnes.

Printed product names: Apple IIGS · AppleLink · AppleShare · AppleTalk · APDA · APDAlog · GS/OS · HyperTalk · ImageWriter · LaserWriter · LocalTalk · Mac · MacAPP · Macintosh · MPW · MultiFinder · ProDOS · HyperMover · QuickDraw · ViewEdit · Develop · Finder · Hypercard · ACOT · IBM · MacDraw · MacWeek · NuBus · Postscript · Prototype

Printed dates: Winter 1991 · 1991

Languages: English

[Original PDF page 3](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=3)

### PDF page 4

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-e81e1c8a58dad330f7cf343a6d5f0c468e6a116fc3a09d290d69461597779f8e)

Transcribed text:

d e v e l o p   Winter 1991
SUBSCRIPTION INFORMATION
Use the order form on the last page of the journal
to subscribe to develop. Please address all
subscription (and subscription-related) inquiries
to develop, Apple Computer, Inc., P.O. Box 531,
Mt. Morris, IL 61054 (AppleLink Dev.Subs).•
BACK ISSUES
Back issues of develop are available through
APDA ®  (see inside back cover for APDA
information), and are, of course, there for the
browsing on each CD.•
2
Dear Readers,
Have you ever searched and searched for the answers to your questions only to find
that they were right there under your nose the whole time? That’s happened a lot
with   develop . We’ve made several changes in the one short year that we’ve been
around: we’ve started printing the code dark enough so that you can read it, we’re
printing on recycled paper (see the letters section), we’ve added two columns, and
we’ve trashed themes. The first two changes were direct results of your comments
and our research (you see, we really do want to hear what you have to say), the other
two were things I’m sure you thought of, but never got around to writing about.
The columns should help reduce the commitment that reading   develop   has
become—we hope they’ll provide you with some food for thought and with some
time left over to ruminate.
And the themes, well, they just weren’t working. Since the articles were only loosely
grouped around a theme, you didn’t get enough information to decide whether to
read an issue or to pass it along (I most sincerely hope you’d never consider trashing
it); it also forced us to defer some articles until there was a theme or an issue they fit
in. So without themes, we’ll let you decide how to categorize them (and still look
forward to your article suggestions and ideas), and we’ll concentrate on filling each
issue with thorough, helpful, and interesting articles.
We’re a nosey bunch and we want to know what you’re thinking and what you’re
hoping. (Don’t consider this a threat, but if we don’t get more feedback, we’ll have
to do a survey to figure out what you want.)
So, nose around the articles and the code and pick out what interests you. Then let
us know what intrigued you and what baffled you (we strive to intrigue, not baffle).
Louella Pizzuti
Editor
2
LOUELLA PIZZUTI

Reading notes: Spaced-out letters in the masthead and body text (e.g., 'd e v e l o p') may reflect OCR spacing artifacts.

Printed dates: Winter 1991

Languages: English

[Original PDF page 4](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=4)

### PDF page 5

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-6d7d0a593a783a4b3a93205da0cf735f3d2c015913fdb02ed0c40684a1d9dda1)

Transcribed text:

Thanks for the excellent article in the
October 1990 issue of   develop   dealing
with polymorphism in C++ stand-alone
code resources. I have one question
about the code that accompanied it
on the disc; it concerns the file
WindowDef_main.cp: why are the
overloaded “new” and “delete”
operator definitions bracketed by
the #ifdef NEEDED and #endif
statements? Is NEEDED defined
somewhere else? (I couldn’t find it
in any of the other files on the CD.)
Are there circumstances in which you
wouldn’t want to overload the storage
operators for a window definition
function? I’m confused.
—Carlos Weber, M.D.
Yahoo, a technical buck to stop! Lemme at
it!
The code in question (#ifdef NEEDED...
#endif) shouldn’t be there at all, and as a
matter of fact is ignored by the compiler,
since NEEDED isn’t defined. It is left over
from when Patrick was developing the code
and still experimenting.
In the final version he is basing his
WindowDefinition class on the
Relocatable class, which is in turn based on
HandleObject, an Apple ®  extension to C++
which uses handles instead of pointers when
allocating space for new objects. No
overloading of the storage operators is
necessary.
Sorry about the confusion. I should have
spotted that code and yanked it out before
we published.
—Dave Johnson
In   develop , Issue 4, you advocate
installing DRVR resources at startup
time by changing their resource ID to
an empty slot in the Unit Table and
then calling OpenDriver rather than
use _DrvrInstall due to its bug.
The problem with this method is
that it actually modifies the DRVR
resource, which has two consequences:
1. According to Apple you are not
supposed to modify yourself; and 2. it
sets the last date modified field on the
file. This latter problem causes backup
programs to think the file has really
changed and it worries users that
perhaps some virus has modified that
file when they know they didn’t.
Thus, in my opinion, it is much better
to use _DrvrInstall and, until Apple
fixes the bug, stuff the DCE yourself.
This method does not suffer the side
effects of the OpenDriver method.
—Jeff Shulman
You’re right, it’s easier to use the method
outlined in my article, but it’s “better”to
use _DrvrInstall and manually put the
pointer to the driver into the appropriate
field in the DCE.
—Tim Enwall
LETTERS   Winter 1991
3 COMMENTS
We welcome timely letters to the editors,
especially from readers wishing to react to
articles that we publish in develop. Letters should
be addressed to Dave Johnson or Louella Pizzuti
at Apple Computer, Inc., Developer Programs,
20525 Mariani Ave., M/S 75-3B, Cupertino,
CA 95014 (AppleLink: Johnson.DK or Pizzuti1).
All letters should include name and company
name as well as address and phone number.
Letters may be excerpted or edited for clarity
(or to make them look like they say what we
wish they did).•
LETTERS

Reading notes: Possible reading-order ambiguity where letter headers and sign-offs are interleaved in the extracted text Name 'Yahoo' and phrase 'a technical buck to stop' are unclear in context

Printed product names: develop · Apple · HandleObject · DRVR · _DrvrInstall · OpenDriver · AppleLink

Printed dates: October 1990 · Winter 1991

Languages: English

[Original PDF page 5](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=5)

### PDF page 6

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-f131595ce2068ddab4ec14816314b1dcfdc2ec00ccefd768a93cc4fd569132ca)

Transcribed text:

d e v e l o p   Winter 1991
4
I have a question about the article on
the 8•24 GC card in   develop,   Issue 3,
which, incidentally, was excellent. On
pages 338 and 339 you mention the files
that must be present to use the card. Is
the GC file a transparent patching
upgrade or is it a supplemental code
block that duplicates all of the 32-Bit
QD file functionality?
Good luck with Dogcow breeding,
—David
The 8•24 GC file contains more (and less)
than just the 29000 equivalent of 32-Bit
QuickDraw ™ ; it also contains the IPC
software that steals QD calls and transfers
them to the card, the shell (GC OS) that
receives the commands and dispatches them
as well as doing the Memory Management
chores and such, and finally the ‘drawing’
parts of 32 QD. Note that calls that do not
cause any drawing to take place, such as
NewGWorld, are not part of GC QD but
are executed by the main processor even
when acceleration is on.
All these functions are not part of 32 QD
and therefore make it necessary to have the
8•24 GC file present when you want to
have acceleration. So when running 6.0.x
you need both files, 32 QuickDraw and
8•24 GC; under 7.0 you will need to have
the 8•24 GC file present.
—Guillermo Ortiz
Have you guys considered adding
perfume to the CD envelope, to try to
raise a little capital from advertising to
offset your costs? “C perfume, for the
programmer in every man,” “L’Air du
Comp, as fresh as a new CPU.”
—Jason Rusoff
My copy of   develop   arrived in my P.O.
box this morning and therein lies the
problem. In its original shape   develop
will not fit into my P.O. box so its shape
was altered to make it fit. The CD is
warped, and try as it might, the Finder ™
cannot make the “minor repairs” it says
are needed. Unfortunately, we out here
on the frontier don’t have someone to
bring our mail to us each day; we have to
go fetch it—and pay for the privilege. So
I’m stuck with the U.S. Postal Service
and an unusable CD.
Perhaps a large “DO NOT BEND”
on the outside of subsequent issues
will avert deformation. Then again,
maybe not. Would you kindly use
your considerable influence to get
me a flat CD?
And if the printed warning doesn’t work,
how about a steel plate in each issue?
Make that a really stiff steel plate. You
know how those Postal Service people
are—neither rain nor snow nor CD. . .
—Warren Michelsen
Sorry about that mangled CD—pushing the
limits on information distribution sometimes
we run into hassles like how to actually get
the information into the hands (and drives)
of the folks that need it. Hopefully our “DO
NOT BEND” notice will help because I’d
sure hate to have to resort to a steel plate.
If in fact, the warning doesn’t help, you
can contact the fulfillment house (see the
subscription order form at the back of the
issue for contact information) and tell
them that your CD was mauled; they’ll
be happy to send you a new copy.
—Louella
LETTERS

Reading notes: Possible line-break hyphenation or reading-order issues in the letters column text

Printed product names: 8•24 GC · 32-Bit QuickDraw · QuickDraw · Finder · develop

Printed dates: Winter 1991

Languages: English

[Original PDF page 6](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=6)

### PDF page 7

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-14fdf92af6695b73ee252abcdff3d446c4959a4bdc24b3e9f25612146f48ec70)

Transcribed text:

In response to recent concern regarding
the ecological soundness of your page
layout, I have the following comments:
CD-ROM and electronic magazines are
examples of technologies that—provided
they are adopted—are ecologically
superior to more traditional media,
such as paper.
develop   is encouraging the adoption of
these new media, and thus can easily
defend its spacious page layout. It is
one of the few publications that
can have a positive environmental
impact—provided that developers
absorb and act upon its contents.
Incorporating these new technologies
into useful products is the first step
toward their eventual widespread
adoption. By keeping   develop   easy-to-
read, you are encouraging this trend.
P.S. Providing an e-mail address
for comments would also decrease
paper usage!
—Bryn Dyment
Thanks for your words of encouragement.
Pushing CD distribution is one way we’re
trying to get away from killing forests; using
recycled paper is another. Our production
manager, Hartley Lesser, found a paper that
meets our quality standards, that doesn’t use
toxic chemicals for de-inking, and that’s
available in the quantities we require. This
issue is the first one printed on the new
paper—let us know what you think.
Also, we are now even more available
electronically (although Dave’s much more
connected than I am), so if you’d rather
send e-mail, feel free to use the addresses
we provide.
—Louella
May it be known by you and your
wonderfully talented crew how very
much I appreciate your efforts on behalf
of creating the wonderful, informative,
interesting, entertaining, and otherwise
“slick” magazine,   develop . The
opportunity to see what others are
doing, who those others are, and perhaps
to learn more than you would from
MacWeek , but less than from
Inside Macintosh,   is indeed welcome.
Add to this the fact that you include a
CD-ROM and I am hard-pressed to
even IMAGINE a more valuable
offering. Great job. Thanks a zillion!!
—Lance Drake
I noticed that Apple is looking for a
new editor-in-chief for the major
publications. You’re not going anywhere,
are you?
—A concerned reader
First of all, believe it or not, I did
not make up this letter (or even the
signature). Our group (Developer
Technical Communications) recently
reorganized and now my grouplet is
responsible for not only develop, but also
technical updates (like the Q & A stack),
Technical Notes, Sample Code, and
reporting compatibility bugs to developers.
Since I need to spend my time doing the
things that managers do, I’m looking for
someone to do all the real work. If this
sounds fun and you think you’d be
qualified, let me know.
—Louella
LETTERS   Winter 1991
5

Reading notes: Reading order of the first letter is uncertain due to a line break and a hyphenated 'easy-to-read' split across lines. The page header 'LETTERS' and folio '5' appear at the end and may not belong to the reading sequence.

Printed product names: develop · MacWeek · Inside Macintosh · Technical Notes · Sample Code · Q & A stack

Printed dates: Winter 1991

Languages: English

[Original PDF page 7](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=7)

### PDF page 8

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-06abb0ae868906d551895bc5af5d31ae100f980945f4bde9451a3fbc27a01e17)

ASYNCHRONOUS BACKGROUND NETWORKING ON THE MACINTOSH

Transcribed text:

d e v e l o p   Winter 1991
HARRY CHESLEY   Due to a rare psychological
impediment, Harry Chesley frequently finds himself
incapable of giving short, simple answers to
questions, instead reciting long stories that are
only vaguely related to the original question. To
spare you from having to read about Harry for
hours, we took great care not to ask him too many
questions about himself. Despite this cautious
approach, we did discover that he has been at
Apple so long that he no longer remembers his
official title, that he has been programming the
Macintosh since the 512K came out (and made it
possible to do so without a Lisa), and that the first
personal computer he bought was an Apple I (still
buried in the closet somewhere). In the interest of
brevity, the long stories behind each of these facts
have been omitted. Even longer stories surround
other events of his past life. He’s been an
6
HARRY R. CHESLEY
LACS is a program that provides lightweight asynchronous conferencing
for Macintosh ®  computers connected to the same AppleTalk ®  network. This
article discusses the techniques used for implementing the asynchronous
network operations, techniques that work well even when the application is
running in the background under MultiFinder ® . While the article
provides the basic algorithms and techniques, the   Developer Essentials
disc includes full source code for the entire LACS application.
Every Macintosh includes a local area network—LocalTalk ® . Any two or more
Macintosh computers can easily be configured to communicate with each other,
passing data back and forth to work together as a larger system. There are many
applications of computers that require or benefit from this sort of multiple
workstation operation. Most of these applications involve groups of people working
together and are known as collaborative computing, or computer supported
cooperative work. While there are limited numbers of applications available in this
category today, the numbers are increasing rapidly, and the potential for this genre
is exciting.
Similarly, with the advent of MultiFinder and the ability to run programs in the
background while the user continues working on a foreground application, it has
become possible to write applications that operate on the user’s behalf even when
not immediately controlled by the user. These sorts of background “daemons” have
long been available on mini, main-frame, and even workstation computers, but are
relatively new to personal computers.
Network and background applications are, by their very nature, asynchronous.
Network applications must communicate with other machines that may be slower
than the local machine or busy with some other task. The other machines may even
be temporarily turned off. Background operations must step very lightly to make
sure that they don’t affect the responsiveness of the system as perceived by the user.
This usually involves using asynchronous techniques.
6
ASYNCHRONOUS
BACKGROUND
NETWORKING
ON THE
MACINTOSH

Reading notes: Running header 'd e v e l o p' and page numbers appear in the extracted text and may affect reading order.

Printed product names: Macintosh · LocalTalk · AppleTalk · MultiFinder · Developer Essentials · LACS · Lisa · Apple I · 512K

Printed dates: Winter 1991

Languages: English

[Original PDF page 8](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=8)

### PDF page 9

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-e483e3c56c0d7505b49706fbc1df1e2f7ab99b873a2ae81bcb4c6be97e859039)

Transcribed text:

Asynchronous programs are often the hardest to design and develop. Our minds
don’t deal well with multi-threaded algorithms. And the Macintosh today has little
in the way of development tools to help in this respect—there are no facilities for
lightweight processes within Macintosh applications, for example.
The Lightweight Asynchronous Conferencing System (LACS) is a program
that uses asynchronous background networking to propagate information from
machine to machine. It distributes messages over a network of locally connected
Macintosh computers. The LACS implementation provides examples of how to do
the following:
• Invoke network operations asynchronously.
• Use an abstract superclass to simplify asynchronous design.
• Use NBP and ADSP.
• Operate in the background under MultiFinder.
• Implement a distributed database without requiring central
control or coordination.
This article describes LACS, concentrating on the first two of these elements,
with some limited discussion of the other items. You’re encouraged to examine the
source code of LACS (provided on the   Developer Essentials   disc) in order to uncover
more details.
THE LIGHTWEIGHT ASYNCHRONOUS CONFERENCING
SYSTEM (LACS) APPLICATION
LACS spreads messages from machine to machine across the local network. It is
designed to run in the background under MultiFinder and communicate quietly
with other machines. It uses the AppleTalk Name Binding Protocol (NBP) to
find other machines to communicate with, and it uses the AppleTalk Data Stream
Protocol (ADSP) to actually exchange messages. When new messages come in, the
Notification Manager is used to alert the user.
LACS is written in Object Pascal using MacApp ® . It uses object-oriented techniques
to simplify the problem of implementing periodic asynchronous functions. To
accomplish this, it uses an abstract superclass that provides a framework for other
classes of the same type.
From the user’s point of view, the application consists of three windows: Messages,
New Message, and Status. Figure 1 shows these three windows. To create a new
message, the user simply types in the New Message window and clicks the Send
Message button. The message can be any text the user wants—but no pictures or
graphics in this edition. The application then spreads the message to other locally
connected Macintosh computers. When a new message arrives from another
machine, it appears in the Messages window on that machine. The Messages
ASYNCHRONOUS BACKGROUND NETWORKING ON THE MACINTOSH   Winter 1991
7 independent Mac software developer (the genesis
of PackIt is a novella unto itself) and worked in a
startup company named Metapath and at SRI
(don’t even ask). His favorite pastimes are
playing with his two-and-a-half year old daughter
(she has her own Macintosh but doesn’t yet know
how to run MPW ® ) and programming. Given the
opportunity, he also enjoys writing about himself
in the third person. •

Reading notes: Running header and page-number fragments may interleave with body text in the extracted copy Author biography appears at the end of the source and its reading order relative to the article is uncertain

Printed product names: MultiFinder · MacApp · Developer Essentials · MPW

Printed dates: Winter 1991

Languages: English

[Original PDF page 9](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=9)

### PDF page 10

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-fb19c5858d5be25a23e2b03ed2321d4cac1c4d96f9a6c098491e0dfb7f0c24cb)

Transcribed text:

Figure 1
LACS User Interface
8
Status
Total messages seen: 82
Hot message count: 82
Total passed on: 0
Cold message count: 0
Talking with:
Bean Sweany @ Electric Futures Division
Way Cool @ The Stables
Morton Salmon @ Fisheries Zone
Bored and idle...
New Message
Signature: Harry Chesley @ De Anza 3/4-North
Expires: Dec 9, 1990 5:00 AM
Send Message
Messages
Unread Messages: Notify on new
This must be a cold rumor.
Lisence Plates : Apple 1
Lisence Plates : MK LOVE
"If everyone would stop breathing germs on me..."
re: "She's out of circulation. I, however, am a..."
This rumor no Log Lady. Oops!
Read Messages:
The real goal of Artificial Intelligence is to bui...
Is there anything better than cold showers for...
Lots of indications that our new products are r...
"All my life I said I wanted to be someone...I c...
A year spent in artificial intelligence is enough...
The older a man gets, the farther he had to wa...
"Sometimes a cigar is just a cigar." -- Sigmund Freud
Originated: Dec 4, 1990 11:13 AM Expires: Dec 19, 1990 5:00 AM
Forward this message to other LACSs
develop Winter 1991

Image description: A black-and-white screenshot of a LACS user interface showing a Status panel, a New Message panel, and a Messages panel with unread and read message lists, with a figure caption below and the page number 8 and magazine footer.

Reading notes: Message list entries are truncated with ellipses and right-edge text is cut off in the scan Lines in the Unread and Read lists partly obscured by scroll bars Caption and page footer are outside the interface screenshot and were included in reading order

Printed dates: Dec 9, 1990 · Dec 4, 1990 · Dec 19, 1990 · 1990 · Winter 1991

Languages: English

[Original PDF page 10](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=10)

### PDF page 11

[Cite this scan](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/1#scan-01df568eaec7ea16271af114fd635f5428717ae09cad0a0bc1f0c3d8e5df246e)

Transcribed text:

window displays two lists of messages, one for those which have yet to be read and
one for those which the user has already read at least once. Only the first few words
of each message appear in the read or unread list. When the user clicks on an entry
in one of the lists, the full text of the message appears in a third section of the
window. The Status window contains information about how many messages have
been seen, what other machines are actively communicating, and so on.
There is more to the program than is covered in this brief description; for example,
users can set expiration dates for the messages they create. You might want to
run LACS to experience what it does and how it goes about it. However, the above
description is sufficient for our purposes here. The basic operation and intent of the
program is quite simple.
ALGORITHM FOR DISTRIBUTING MESSAGES
From the programmer’s point of view, LACS maintains a distributed database of
messages across multiple loosely connected computers. The central problem is
how to distribute database updates across the network quickly and efficiently. The
solution comes from a paper published by Xerox PARC:   Epidemic Algorithms for
Replicated Database Maintenance.   (See references at the end of the article. Seems like
everything interesting comes from PARC, doesn’t it?) In fact, LACS was directly
inspired by reading this paper.
In oversimplified form, the algorithm operates as follows: When a new message is
first heard, it is considered “hot.” The program then tries to tell other network nodes
the new message. When a node passes on a message, the receiving node tells whether
it’s already heard the message or not. The more times the program tries to spread
the message to nodes that have already heard it, the cooler the message becomes.
Eventually it becomes completely cold and the program stops trying to spread the
message to more nodes. The people at Xerox called the action of this algorithm
“rumor mongering.”
In LACS, the algorithm is implemented on top of the AppleTalk protocols. The
Name Binding Protocol (NBP) is used to register LACS on the network. This allows
the application to find other machines that are interested in exchanging messages.
Each copy of LACS registers itself using the local machine’s Chooser name with an
NBP type of “LACS.” The program then builds a list of other nodes of type “LACS.”
Rather than trying to maintain a list of all the systems on the net (potentially a very
large list), it keeps up to ten nodes with which it communicates directly. These nodes
communicate with up to ten others, they communicate with up to ten others, and so
forth. Periodically, one of the entries in the local list is replaced with another machine
chosen at random, so that the list slowly changes over time.
ASYNCHRONOUS BACKGROUND NETWORKING ON THE MACINTOSH   Winter 1991
9

Printed dates: 1991

Languages: English

[Original PDF page 11](https://www.vintageapple.net/files/47661ca6e2c1bcdc3e67a31286dd552e4c28ddc255bc56c9505ab2ec2c862a97/develop-05_9101_Winter_1991.pdf#page=11)

[Next transcribed scans](https://www.vintageapple.net/transcripts/media/va-develop-05-9101-winter-1991-5330fc/2.md)
