TweetFollow Us on Twitter

May 95 Dialog Box
Volume Number:11
Issue Number:5
Column Tag:Dialog Box

Dialog Box

By Scott T Boyd, Editor

Concerned By The Rising Tide

I have developed several large programs for use in my engineering classes during the past six years. Although I am not a professional programmer, I believe my programs to be of commercial quality and at least one has been fairly widely distributed among universities. My programs have all been developed in Pascal with separate versions to operate within the Macintosh, DOS and Windows environments. I use Borland’s Pascal on the PC and Think Pascal on the Macintosh. I use objects extensively for both operating system needs and for my own applications.

I have been watching with some concern as the popularity of Pascal has declined in favor of C/C++. I decided to learn C/C++ so that I could see for myself why it is gaining in popularity. The basic concepts and constructs of Pascal and C++ are quite similar and, after getting used to the syntax, it was not difficult to translate code from Pascal to C/C++.

Having now translated several small programs and one large application, I thought that you might be interested in a summary of my assessment of the two languages.

One feature provided by Pascal that I sorely miss in C/C++ is nested procedures. In Pascal, a function or procedure can be placed within another function or procedure so that it visible only to the external routine. Variables declared within the nested routine are local to that routine and not accessible to the external routine whereas variables declared in the external routine are accessible to the nested routine. I find this nesting capability to be very helpful and I often nest my routines four or five levels deep. I find the nesting parallels my thinking and aid programming. As with objects, nested routines tends to encapsulate code and data and make the overall function of a routine more clear. Nested routines are not allowed in C++. I was forced to de-nest all of my routines in translating from Pascal to C++ resulting in a large number of routines all at the same level. The difference in variable scoping complicated this process.

A serious disadvantage of C++ that I encountered is that the time required to compile and link was much greater than in Pascal. Because I program in a manner in which I make a change and then test it, I found the speed difference to be irritating. The difference exists on both the Macintosh and the PC even though the Pascal and C++ compilers were from the same vendors. I understand that pre-compiled headers can be used to speed the compile/link process and I experimented with them, but I never approached the compile and link speed of Pascal. Why is it that Pascal does not require pre-compiled headers? I truly don’t understand why this difference exists. Does it reflect poor compiler design or an innate problem with C++?

I also noted that small programs compiled as code resources were much larger when compiled in C++ than in Pascal. This size difference is probably due to C++ including some libraries but I was unsuccessful in finding a way to reduce the size. In any case, I did not observe significant execution speed differences between programs compiled in Pascal and C++.

In summary, I have not found any capabilities in C++ that I need and do not already have in Pascal. I find the Pascal environment preferable, and I found the auto-formatting and integrated debugging provided by Think Pascal on the Macintosh to be much more friendly than the C/C++ environment. I’m curious to know if I am missing something or whether others have had similar experiences.

- S.A. Klein, University of Wisconsin Madison
klein@engr.wisc.edu

OpenDoc Draws Some Fire

I read the OpenDoc and SOM articles in the January MacTech. I have some comments, mostly skeptical ones.

It seems to me, OpenDoc was born as a succession of ideas:

• Bundle MacApp into the MacOS ROM and System 7.5, and

• change this class library into robust objects for everyone.

• Emphasize document mobility among apps using these objects.

• Call it “Documents On-top-of Classes”, or DOC.

Now, the Apple budget guys come into the picture.

• No more free lunch, so it doesn’t go into the ROMs.

• No more funding either, so spin it off to a 3rd party: CIL.ORG.

• IBM wants a kickback for PowerPC, so push SOM.

The Apple Evangelists have a field day!

• Model all users as “document fiddlers”: readers, writers, editors.

• Model all data processing as “document processing”.

• Model all software vendors (eg, Microsoft) as “editor vendors”.

• Hook up with other popular hype floating around:

- Cobra Objects Really Biting Applications (CORBA)

- Subtle Object Mangler (SOM)

• Rename the project OpenDoc, reflecting the open question of “Who pays for all of this?”

Now we are faced with some questions. What is Apple’s strategic perspective on this; e.g., will they push OpenDoc as a replacement for MacApp?

Will OpenDoc be an optional, extra-cost item (like System 7 Pro), or a developer giveaway on the ETO disk? Or perhaps just a standard for other developers since Apple doesn’t manufacture any “editors” except TeachText and ResEdit?

What is Microsoft’s perspective on all this, given that they are probably the biggest producer of “commercial editors” (formerly known as “business software”)? The MacTech article says the OLE is just a subset of OLE - how is this enforced, and does Microsoft agree?

Before Apple pushes the hype of OpenDoc, shouldn’t it first come up with some systematic scheme about parts? What are standard “parts” anyway? If each developer whips up their own set of “parts”, how does this lead to interoperability?

Is Apple committed to supporting this technology in the future, or just committed to advertising and evangelizing the idea?

As an analogy, compare “handlers and parts” with the “Communications Toolbox and Tools”. Apple did OK with the first one, but skimped on the second, and the result is a less useful system. Certainly modem communication has not become easier as a result of the CommToolbox. What prevents this from happening with OpenDoc?

More brickbats - Compare the OpenDoc plan with the MIT X-Windows project, which also started out as a simple idea (a windowing system for Unix) but ended up so complex it rivals Vax/VMS. Problems include being the lowest common denominator to all types of hardware, too many toolkits but no standard of functionality within them, and implementation by student/researchers with little vested interest in simplicity. The result is a system which works well, but don’t try to program it directly without lots of available staff time. What will keep OpenDoc from becoming so complicated when it’s finished?

Compare the OpenDoc plan with Ada, the programming language of the future just ten years ago. Ada has all sorts of “necessary” features for dealing with interrupts, multi-tasking, events, and real-time structures. Too bad most operating systems can’t or don’t or won’t provide all the necessary support for these things, otherwise we’d be using it today. The OpenDoc plan appears to require standardized features across operating systems (eg: network clipboards) which just aren’t present today, at least, not in an “open” sense. Ask yourself again, what is Apple’s role in all of this, and what guarantees us that Apple won’t change its commitment like it did with Bedrock.

Compare the OpenDoc plan with OSI (Open Systems Interconnect), the new reference standard network protocol, which has made itself obsolete in just a few years. Why should we believe that OpenDoc will be any more of a universal standard than OSI ?

Compare the OpenDoc plan with Apple’s OpenTransport. Unlike OpenDoc, the OpenTransport plan has specific goals, a specific plan of implementation and timeframe, and a specific support commitment from Apple. The marketing side of OpenTransport exactly matches its technical specifications. On the other hand, the OpenDoc literature talks about “Apple’s approach towards reducing the complexity of computing today”, and “providing users with a new level of computer power, flexibility, and ease of use”. Sounds like they’re talking about the Mac itself, until you read the fine print about compound documents.

The OpenDoc blurb talks about user interfaces and standard user operations, yet from what I can see, these implicit issues lack any sort of formal model or standard definition. Just what does standard text editing mean anyway, and why should I switch away from MS-Word to some new editor?

So far, OpenDoc is a philosophy rather than a product. Example: consider a C++ program as a document. There are a variety of handlers available: editors: MPW, vi, emacs, Think Project, BBEdit; Lint’ers; parenthesis matchers; compilers for the code. Yet the “document” - source code for some program - is already “sharable” with the first set, and usually incompatible with the last set. That is, a large body of code typically cannot be sent to just any other compiler, certainly not cross-platform, without manual intervention, setting compilation flags, adjust the code a bit, etc. What value does OpenDoc add to this scenario?

I suppose I have the wrong idea - I’m not supposed to think of “source code” as a document. Instead, the main focus of my work should be writing letters with text processors, and this entitles me to subscribe to the OpenDoc hype. Unfortunately this isn’t true, and therefore I’m concerned that OpenDoc will just lead to a more complicated development environment with little added benefit.

Well, these are my observations. - John Buehrer, jdb@ecofin.ch

Apple’s Jens Alfke responds:

John Buehrer seems to have gotten a very mistaken impression of what OpenDoc is and what it aims to do; this is understandable, since it’s hard to describe a complex system in a short article.

The three major assumptions he makes are that OpenDoc is supposed to be a universal solution for all types of software; that it is a framework (like MacApp or PowerPlant); and that it is vaporware without an implementation. None of these is true.

• OpenDoc does not claim to “model all data processing as ‘document processing’” and we do not expect every type of software to become a part editor. However, most of what users do with their computers is document processing - text, spreadsheets, drawings, page layouts, et cetera - so focusing OpenDoc on documents doesn’t seem like much of a restriction. But there is certainly still room for traditional apps and other types of software in the world.

• OpenDoc is not a framework in the traditional sense. The developer does not assemble classes provided by OpenDoc to produce a piece of software; rather, OpenDoc assembles the developer’s editors at runtime to produce a document. In other words, OpenDoc lives in the spaces between editors, not within them. It’s more like that Macintosh Toolbox in that regard.

Frameworks can certainly take advantage of OpenDoc (and MacApp 3.5 and the OpenDoc Parts Framework will do so, as may PowerPlant) but the tasks they perform are orthogonal. OpenDoc itself does the minimum it can do to guarantee smooth operation of multiple components in a document; everything beyond that is a job for the developer or for a framework.

(The history of OpenDoc really had nothing to do with the MacApp project; instead, it grew out of an investigation of how to extend technologies like Apple Events, the Edition Manager and Bento into a true compound document architecture.)

• Mr. Buehrer also seems concerned whether OpenDoc really exists and whether Apple is truly committed to it. OpenDoc has an large engineering effort, of which I’m a part, and a public delivery schedule. We’ve done a lot more than just “advertising and evangelizing the idea”; we’ve been working on the implementation since 1992. The software on the CD should attest to this. Moreover, Apple executives from Spindler on down are committed to OpenDoc; they rightly see it as an absolute necessity if Apple is to maintain its technological leadership and its control of its platform. From my position in the engineering trenches I see every indication that OpenDoc is one of the most high-priority projects at Apple.

He then asks what will keep OpenDoc from becoming unusably complex. Some complexity is inevitable, but what developers who’ve used it tell us is that the architecture makes sense and that it’s much cleaner than OLE. Take a look for yourself; the APIs on the CD are pretty close to final (in the next release they truly will be frozen.)

He sums it up by saying that “So far, OpenDoc is a philosophy rather than a product.” One might get this impression by reading just the (admittedly rather marketing-oriented) article in the magazine. But if you go beyond that and examine the more technical documentation provided on the CD or on the Internet (by FTP from cilabs.org) we hope you’ll see that OpenDoc is solid, implemented, and well on its way to completion. - Jens Alfke, OpenDoc Engineering Team

An Interesting Design Philosophy

Here’s a Word 6 “glitch” I thought you might find interesting. Go into Word and try to type control-Q or control-T (in Chicago font, the command key symbol and the apple symbol, respectively). Of course, nothing happens. Someone at Microsoft decided that the control keys shouldn’t be typeable! So I got onto the MSWord forum and asked for help. These folks are great. To their credit, every question I’ve posed them has been answered promptly and accurately, if not necessarily to my satisfaction. However, below is their response to my query. As Dave Barry would say, “I’m not making this up!”

- Dave Mark

from the MSWord forum:

Word 6 now inserts special characters with the Symbol dialog. To access the dialog, choose Symbol from the Insert menu and click on the Symbols tab. The drawback to using the Symbol pallet is that special characters below the value of 32 (check Appendix A to determine what value is associated with a character) in the Macintosh character set are not available. Unfortunately, for characters 0 through 31, you’ll need to go through a couple extra steps to insert them with a keystroke.

To get around this problem, insert the Command character and the Apple characters in Word 6.0 using fields, and then for convenience, make the character into a glossary entry, and assign your own keystroke to them.

To use the symbol field, Choose Field from the Insert menu, click on “Equations and Formulas” under Categories, then click on “Symbol” under Field Names. Place the cursor in the text box next to the word “SYMBOL”, type in the value for the character and a space (see Appendix A: you’ll see the Command character has a value of 17), then click on the Options button and add the \f switch. Then click in the text box after the \f switch and type in the name of the font you want, in your case, “Chicago” without quotes. Click OK. Then click OK again. You should see the Command character at this point. If you do not see it, place the cursor on the field (It might look like {SYMBOL 17 \f Chicago \*MERGEFORMAT}) and then press SHIFT F9. This keystroke changes the view of the field to the Command character.

To make the process more convenient for future use, select the symbol, choose AutoText from the Edit menu, type a name in the Name box; for example, “command”, and click the Add button. Then, to assign the keystroke, choose Customize from the Tools menu, on the Categories side select AutoText (it’s near the bottom of the list), select the AutoText entry on the right side, place the cursor in the “Press New Shortcut Key” box, press the keystroke CONTROL Q and click the Assign button. The next time you need to use the character, just press CONTROL Q.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Minecraft 1.20.2 - Popular sandbox build...
Minecraft allows players to build constructions out of textured cubes in a 3D procedurally generated world. Other activities in the game include exploration, gathering resources, crafting, and combat... Read more
HoudahSpot 6.4.1 - Advanced file-search...
HoudahSpot is a versatile desktop search tool. Use HoudahSpot to locate hard-to-find files and keep frequently used files within reach. HoudahSpot is a productivity tool. It is the hub where all the... Read more
coconutBattery 3.9.14 - Displays info ab...
With coconutBattery you're always aware of your current battery health. It shows you live information about your battery such as how often it was charged and how is the current maximum capacity in... Read more
Keynote 13.2 - Apple's presentation...
Easily create gorgeous presentations with the all-new Keynote, featuring powerful yet easy-to-use tools and dazzling effects that will make you a very hard act to follow. The Theme Chooser lets you... Read more
Apple Pages 13.2 - Apple's word pro...
Apple Pages is a powerful word processor that gives you everything you need to create documents that look beautiful. And read beautifully. It lets you work seamlessly between Mac and iOS devices, and... Read more
Numbers 13.2 - Apple's spreadsheet...
With Apple Numbers, sophisticated spreadsheets are just the start. The whole sheet is your canvas. Just add dramatic interactive charts, tables, and images that paint a revealing picture of your data... Read more
Ableton Live 11.3.11 - Record music usin...
Ableton Live lets you create and record music on your Mac. Use digital instruments, pre-recorded sounds, and sampled loops to arrange, produce, and perform your music like never before. Ableton Live... Read more
Affinity Photo 2.2.0 - Digital editing f...
Affinity Photo - redefines the boundaries for professional photo editing software for the Mac. With a meticulous focus on workflow it offers sophisticated tools for enhancing, editing and retouching... Read more
SpamSieve 3.0 - Robust spam filter for m...
SpamSieve is a robust spam filter for major email clients that uses powerful Bayesian spam filtering. SpamSieve understands what your spam looks like in order to block it all, but also learns what... Read more
WhatsApp 2.2338.12 - Desktop client for...
WhatsApp is the desktop client for WhatsApp Messenger, a cross-platform mobile messaging app which allows you to exchange messages without having to pay for SMS. WhatsApp Messenger is available for... Read more

Latest Forum Discussions

See All

‘Resident Evil 4’ Remake Pre-Orders Are...
Over the weekend, Capcom revealed the Japanese price points for both upcoming iOS and iPadOS ports of Resident Evil Village and Resident Evil 4 Remake , in addition to confirming the release date for Resident Evil Village. Since then, pre-orders... | Read more »
Square Enix commemorates one of its grea...
One of the most criminally underused properties in the Square Enix roster is undoubtedly Parasite Eve, a fantastic fusion of Resident Evil and Final Fantasy that deserved far more than two PlayStation One Games and a PSP follow-up. Now, however,... | Read more »
Resident Evil Village for iPhone 15 Pro...
During its TGS 2023 stream, Capcom showcased the Following upcoming ports revealed during the Apple iPhone 15 event. Capcom also announced pricing for the mobile (and macOS in the case of the former) ports of Resident Evil 4 Remake and Resident Evil... | Read more »
The iPhone 15 Episode – The TouchArcade...
After a 3 week hiatus The TouchArcade Show returns with another action-packed episode! Well, maybe not so much “action-packed" as it is “packed with talk about the iPhone 15 Pro". Eli, being in a time zone 3 hours ahead of me, as well as being smart... | Read more »
TouchArcade Game of the Week: ‘DERE Veng...
Developer Appsir Games have been putting out genre-defying titles on mobile (and other platforms) for a number of years now, and this week marks the release of their magnum opus DERE Vengeance which has been many years in the making. In fact, if the... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for September 22nd, 2023. I’ve had a good night’s sleep, and though my body aches down to the last bit of sinew and meat, I’m at least thinking straight again. We’ve got a lot to look at... | Read more »
TGS 2023: Level-5 Celebrates 25 Years Wi...
Back when I first started covering the Tokyo Game Show for TouchArcade, prolific RPG producer Level-5 could always be counted on for a fairly big booth with a blend of mobile and console games on offer. At recent shows, the company’s presence has... | Read more »
TGS 2023: ‘Final Fantasy’ & ‘Dragon...
Square Enix usually has one of the bigger, more attention-grabbing booths at the Tokyo Game Show, and this year was no different in that sense. The line-ups to play pretty much anything there were among the lengthiest of the show, and there were... | Read more »
Valve Says To Not Expect a Faster Steam...
With the big 20% off discount for the Steam Deck available to celebrate Steam’s 20th anniversary, Valve had a good presence at TGS 2023 with interviews and more. | Read more »
‘Honkai Impact 3rd Part 2’ Revealed at T...
At TGS 2023, HoYoverse had a big presence with new trailers for the usual suspects, but I didn’t expect a big announcement for Honkai Impact 3rd (Free). | Read more »

Price Scanner via MacPrices.net

New low price: 13″ M2 MacBook Pro for $1049,...
Amazon has the Space Gray 13″ MacBook Pro with an Apple M2 CPU and 256GB of storage in stock and on sale today for $250 off MSRP. Their price is the lowest we’ve seen for this configuration from any... Read more
Apple AirPods 2 with USB-C now in stock and o...
Amazon has Apple’s 2023 AirPods Pro with USB-C now in stock and on sale for $199.99 including free shipping. Their price is $50 off MSRP, and it’s currently the lowest price available for new AirPods... Read more
New low prices: Apple’s 15″ M2 MacBook Airs w...
Amazon has 15″ MacBook Airs with M2 CPUs and 512GB of storage in stock and on sale for $1249 shipped. That’s $250 off Apple’s MSRP, and it’s the lowest price available for these M2-powered MacBook... Read more
New low price: Clearance 16″ Apple MacBook Pr...
B&H Photo has clearance 16″ M1 Max MacBook Pros, 10-core CPU/32-core GPU/1TB SSD/Space Gray or Silver, in stock today for $2399 including free 1-2 day delivery to most US addresses. Their price... Read more
Switch to Red Pocket Mobile and get a new iPh...
Red Pocket Mobile has new Apple iPhone 15 and 15 Pro models on sale for $300 off MSRP when you switch and open up a new line of service. Red Pocket Mobile is a nationwide service using all the major... Read more
Apple continues to offer a $350 discount on 2...
Apple has Studio Display models available in their Certified Refurbished store for up to $350 off MSRP. Each display comes with Apple’s one-year warranty, with new glass and a case, and ships free.... Read more
Apple’s 16-inch MacBook Pros with M2 Pro CPUs...
Amazon is offering a $250 discount on new Apple 16-inch M2 Pro MacBook Pros for a limited time. Their prices are currently the lowest available for these models from any Apple retailer: – 16″ MacBook... Read more
Closeout Sale: Apple Watch Ultra with Green A...
Adorama haș the Apple Watch Ultra with a Green Alpine Loop on clearance sale for $699 including free shipping. Their price is $100 off original MSRP, and it’s the lowest price we’ve seen for an Apple... Read more
Use this promo code at Verizon to take $150 o...
Verizon is offering a $150 discount on cellular-capable Apple Watch Series 9 and Ultra 2 models for a limited time. Use code WATCH150 at checkout to take advantage of this offer. The fine print: “Up... Read more
New low price: Apple’s 10th generation iPads...
B&H Photo has the 10th generation 64GB WiFi iPad (Blue and Silver colors) in stock and on sale for $379 for a limited time. B&H’s price is $70 off Apple’s MSRP, and it’s the lowest price... Read more

Jobs Board

Housekeeper, *Apple* Valley Villa - Cassia...
Apple Valley Villa, part of a 4-star senior living community, is hiring entry-level Full-Time Housekeepers to join our team! We will train you for this position and Read more
Housekeeper, *Apple* Valley Village - Cassi...
Apple Valley Village Health Care Center, a 4-star rated senior care campus, is hiring a Part-Time Housekeeper to join our team! We will train you for this position! Read more
Optometrist- *Apple* Valley, CA- Target Opt...
Optometrist- Apple Valley, CA- Target Optical Date: Sep 23, 2023 Brand: Target Optical Location: Apple Valley, CA, US, 92308 **Requisition ID:** 796045 At Target Read more
Senior *Apple* iOS CNO Developer (Onsite) -...
…Offense and Defense Experts (CODEX) is in need of smart, motivated and self-driven Apple iOS CNO Developers to join our team to solve real-time cyber challenges. Read more
*Apple* Systems Administrator - JAMF - Activ...
…**Public Trust/Other Required:** None **Job Family:** Systems Administration **Skills:** Apple Platforms,Computer Servers,Jamf Pro **Experience:** 3 + years of Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.