🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sw.components
Article #36

run-time binding

#36
From: johnson
Date: Tue, 20 Jun 1989 17:17
30 lines
1952 bytes
>>>   I don't perceive any need for run-time binding.
>> 
>> Consider a windowing system.

>   I think not; the "large window" can simply rendezvous with each of its 
>   subwindows (an array of tasks) in order to notify them of the redisplay
>   requirement.  In turn, the subwindows then rendezvous with application-
>   specific tasks as necessary.

Talk about using an A-bomb to kill flys!  When a Smalltalker mentions
message sending, he or she means something very different from Ada tasking.
Message sending means run-time binding, which is orders of magnitude more
efficient than tasking.  Sure, an Ada programmer can use tasking for this
purpose, but it is the wrong way to think about the problem and the wrong
way to implement it.  If I were stuck with Ada I would probably handle
things this way, too, and encapsulate the tasking so that I don't have to
think about it.  However, it is harder to use and much less efficient than
run-time binding.

Run-time binding is useful in lots of places.  Most uses of case
statements could profitably be replaced by late-bound procedure
calls.  Run-time binding in languages like C++ is very efficient,
we use late-bound procedure calls in every interrupt in our multiprocessor
operating system, and the performance is fine.  Rendezvous, on the other
hand, is notoriously slow.  In general, parallel programming is hard to
think about.  O-O message sending is easy to think about, however, because
there is no possibility of time-dependencies.

Ralph Johnson
Technical Details
Message-ID: <130200008@p.cs.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!m.cs.uiuc.edu!p.cs.uiuc.edu!johnson

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!m.cs.uiuc.edu!p.cs.uiuc.edu!johnson
From: johnson@p.cs.uiuc.edu
Newsgroups: comp.sw.components
Subject: run-time binding
Message-ID: <130200008@p.cs.uiuc.edu>
Date: 20 Jun 89 17:17:00 GMT
Lines: 30
Nf-ID: #N:p.cs.uiuc.edu:130200008:000:1511
Nf-From: p.cs.uiuc.edu!johnson    Jun 20 12:17:00 1989