The Northern Spy: Modula and Modular
TweetFollow Us on Twitter

The Northern Spy: Modula and Modular

By Ric Sutcliffe

The soft sound of a pair of occupied boots landing on the table behind me as I toiled over this column alerted me to my visitor. Good thing she doesn't wear spurs when she comes here," I thought.

"Nice of you to drop by, Nellie. What's up?”

"You mean besides the rookie goof-up you just made in your code?"
"Eh? Shame on you Nellie Hacker for looking over my shoulder. I tested it. Works."

count := 10;
WHILE count >=0 DO
str [count] := str [count + 2];
count := count - 1;
END;

"Not all the time it won’t."

"Ah yes I see. But you know I never make mistreaks, just typographical errors.”

"Piffle. That's a logical error not a typo.”

"Actually it was intended as a reader test.”

"Some yarn.”

Readers: What is the error in the above? Answer to this test is at the end of the column.

"Truly. But I did copy it from some work in progress that I had to debug.”

"Your new Modula-2 dialect's I/O library.”

"Quite. Almost done, too. Just combing out a few small bugs and making the code look pretty.”

"At least you are publicly contrite. But I have to confess I was wrong and you were right about Apple's new phones.”

My doubts over whether anyone would buy the iPhone 8?”

"Data says almost no one.”

"While the iPhone X sold out right off the bat. What do your sources say about parts supply?”

"Thin to poor. Yields on the new camera and possibly other components are none too robust. Supply won't catch up with demand for many months.”

"Ah well, what's a few billion less or less to Apple?”

Nellie Hacker contemplated the infinite loop for a few nanoseconds before changing the subject.

"Install High Sierra yet?.”

"Nope. Had too many problems with Sierra. I've learned to be cautious again."
"This from the guy who makes ten backups of all his files and stores them in distributed locations. Installed Sierra even?”

"Had it on this laptop for a while now. Just put it on the old 2010 Mac Pro a couple of days ago.”

"Last we talked you were having trouble with that machine.”

"Previous three OS installs wouldn't play nice with backplane cards. Some glitch with sleep-wake and periodically dumping power on the bus.”

"Why was that a problem?”

"I set up the OWC Accelsior card as the boot volume.”

"I see. No power no system. That would get interesting when the loaded OS wanted to run a job whose code was still on the SSD.. And now?”

"The sleep-wake glitch, though still betrayed by a monitor drop out for a second or so, was no longer affecting the USB card, so I reinstalled the Accelsior and upgraded its volume to Sierra with the combo updater.”

“And?"

"Problem is gone.”

"Another Apple sleeper bug that they ignore through two or three OS upgrades, then fix without telling anyone. Same thing seems to happen with hardware betimes.”

"You have a coy look. Know anything about the new Mac Pro?”

"I have my sources.”

"And they tell you…"

"Not much that I'll tell you. After all you're typing this conversation as we have it."
"Careful Nellie. You're just a character in my philosophy text and novels. I could write you out of the script.”

"You can't. You sent Paladin to your publisher already, and I'm in it right to the last chapter..”

"Until it's in print, who knows? Maybe I'll arrange for you to get a sword through the heart in the Second Battle of Glenmorgan after all. Back to the Mac Pro."
"I think you'll be happy.”

"Modular as I predicted?”

"They as much as said so, but word is work continues apace.”

"Some think Apple will yet abandon it, and just flog the iMac Pro instead."
"Don't think so.”

"Why not?”

"Wouldn't be cool. Whatever else, Apple wants to be cool with its traditional base. Cool matters, and this baby would be cool.”

"Knowledge or speculation?”

"You tell me. After all, you realize my virtuality in your novels and these columns.”

"You do share many characteristics with real people.”

“Thanks."

"Do your sources tell you about an intro?”

"I refuse to answer that on the grounds that my answer might lead to my devirtualization.”

"No, when it comes to my characters I'm an antidevirtualizationist.”

"All right. With that assurance, I'll say just this: "Enter the ticket lottery for WWDC 2018. It might be worthwhile."

The answer to the programming quiz is: that as written the array index will decrease to negative one--possibly legal and acceptable in some languages, but not in those with strict typing and when using a positive index type (not all even allow negative indices). In other words, it might not cause a run time overflow fault, but it is bad code. Write it this way:

count := 11;
WHILE count > 0 DO
count := count - 1;
str [count] := str [count + 2];
END;

--The Northern Spy

Opinions expressed here are entirely the author's own, and no endorsement is implied by any community or organization to which he may be attached. Rick Sutcliffe, (a. k. a. The Northern Spy) is professor of Computing Science and Mathematics at Canada's Trinity Western University. He has been involved as a member of or consultant with the boards of several organizations, and participated in developing industry standards at the national and international level. He is a co-author of the Modula-2 programming language R10 dialect. He is a long time technology author and has written two textbooks and ten alternate history SF novels, one named best ePublished SF novel for 2003. His columns have appeared in numerous magazines and newspapers (paper and online), and he's a regular speaker at churches, schools, academic meetings, and conferences. He and his wife Joyce have lived in the Aldergrove/Bradner area of B.C. since 1972.

Want to discuss this and other Northern Spy columns or Rick's SF? Check out the Arjay blog at http://www.arjay.bc.ca/blog/

URLs for Rick Sutcliffe's Arjay Enterprises:

The Northern Spy Home Page: http: //www. TheNorthernSpy. com
opundo : http: //opundo. com
Sheaves Christian Resources : http: //sheaves. org
WebNameHost : http: //www. WebNameHost. net
WebNameSource : http: //www. WebNameSource. net
nameman : http: //nameman. net

General URLs for Rick Sutcliffe's Books:

Author Site: http: //www. arjay. ca
Publisher's Site: http: //www. writers-exchange. com/Richard-Sutcliffe. html
The Fourth Civilization--Ethics, Society, and Technology (4th 2003 ed. ): http: //www. arjay. bc. ca/EthTech/Text/index. html

URLs for resources mentioned in this column

OWC Accelsior for MacPro Tower https://eshop.macsales.com/shop/SSD/PCIe/OWC/Mercury_Accelsior/RAID

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Civilization VI 1.0.6 - Next iteration o...
Sid Meier’s Civilization VI is the next entry in the popular Civilization franchise. Originally created by legendary game designer Sid Meier, Civilization is a strategy game in which you attempt to... Read more
Civilization VI 1.0.6 - Next iteration o...
Sid Meier’s Civilization VI is the next entry in the popular Civilization franchise. Originally created by legendary game designer Sid Meier, Civilization is a strategy game in which you attempt to... Read more
djay Pro 2.0.1 - Transform your Mac into...
djay Pro provides a complete toolkit for performing DJs. Its unique modern interface is built around a sophisticated integration with iTunes and Spotify, giving you instant access to millions of... Read more
Microsoft OneNote 15.41 - Free digital n...
OneNote is your very own digital notebook. With OneNote, you can capture that flash of genius, that moment of inspiration, or that list of errands that's too important to forget. Whether you're at... Read more
TechTool Pro 9.6 - Hard drive and system...
TechTool Pro has long been one of the foremost utilities for keeping your Mac running smoothly and efficiently. With the release of version 9, it has become more proficient than ever. TechTool... Read more
Apple iOS 11.2.1 - The latest version of...
iOS 11 sets a new standard for what is already the world’s most advanced mobile operating system. It makes iPhone better than before. It makes iPad more capable than ever. And now it opens up both to... Read more
Things 3.3 - Elegant personal task manag...
Things is a task management solution that helps to organize your tasks in an elegant and intuitive way. Things combines powerful features with simplicity through the use of tags and its intelligent... Read more
RapidWeaver 7.5.5 - Create template-base...
RapidWeaver is a next-generation Web design application to help you easily create professional-looking Web sites in minutes. No knowledge of complex code is required, RapidWeaver will take care of... Read more
Adobe Animate CC 2018 18.0.1.115 - Anima...
Animate CC 2018 is available as part of Adobe Creative Cloud for as little as $19.99/month (or $9.99/month if you're a previous Flash Professional customer). Animate CC 2018 (was Flash CC) lets you... Read more
Postbox 5.0.22 - Powerful and flexible e...
Postbox is a new email application that helps you organize your work life and get stuff done. It has all the elegance and simplicity of Apple Mail, but with more power and flexibility to manage even... Read more

Latest Forum Discussions

See All

Life Is Strange (Games)
Life Is Strange 1.1 Device: iOS Universal Category: Games Price: $2.99, Version: 1.1 (iTunes) Description: Life Is Strange is a five part episodic game that sets out to revolutionize story-based choice and consequence games by... | Read more »
Oddworld: New 'n' Tasty (Game...
Oddworld: New 'n' Tasty 1.0 Device: iOS Universal Category: Games Price: $7.99, Version: 1.0 (iTunes) Description: ** PLEASE NOTE: Requires 3.6GB free space to install. Runs at variable resolutions based on device capabilities.... | Read more »
Gorogoa (Games)
Gorogoa 1.0 Device: iOS Universal Category: Games Price: $4.99, Version: 1.0 (iTunes) Description: Gorogoa is an elegant evolution of the puzzle genre, told through a beautifully hand-drawn story designed and illustrated by Jason... | Read more »
Why Guns of Boom will be big for mobile...
Earlier this week, Game Insight, the minds that brought you Guns of Boom, revealed plans for an esports mode in the popular FPS title, with big implications for the game's future. Guns of Boom has been quite popular for some time now, so it's... | Read more »
Rules of Survival guide - how to boost y...
It's not easy surviving in the "every-man-for-himself" world of Rules of Survival. You'll be facing off against many other players who might be more skilled than you, or are luckier than you. There are a lot of factors weighing against you. With... | Read more »
FEZ Pocket Edition (Games)
FEZ Pocket Edition 1.0 Device: iOS Universal Category: Games Price: $4.99, Version: 1.0 (iTunes) Description: | Read more »
Amazing Katamari Damacy guide - beginner...
Amazing Katamari Damacy brings the bizarro world of the original games to mobile and shifts them into an endless format that's just as addictive as the PlayStation entries. Your goal is still to roll as much random stuff as you possibly can, though... | Read more »
Portal Knights guide - crafting tips and...
In Portal Knights, you're only as strong as the items you have at your disposal. This sandbox adventure is all about crafting and building up the next big thing. Whether you're an avid explorer or collector, crafting will likely play a large part... | Read more »
The best deals on the App Store this wee...
A new week means new discounts on the App Store. This week's deals run the gamut of action-adventure titles, puzzle games, and one of the best narrative adventure series out there. If you're looking to fill out your mobile gaming library on a... | Read more »
What you need to know about Animal Cross...
We hope you've been hard at work on collecting all of those holiday items in Animal Crossing: Pocket Camp, because you're about to get a whole new list of fun things to do as the game receives its first big update sometime soon. There are a lot of... | Read more »

Price Scanner via MacPrices.net

Beats Holiday sale at B&H, headphones and...
B&H Photo has Beats by Dr. Dre headphones, earphones, and speakers on sale for up to $80 off MSRP as part of their Holiday sale. Expedited shipping is free, and B&H charges sales tax to NY... Read more
Holiday sale: Apple resellers offer 2017 15″...
MacMall has 15″ MacBook Pros on sale for $220-$300 off MSRP, each including free shipping: – 15″ 2.8GHz MacBook Pro Space Gray (MPTR2LL/A): $2179, $220 off MSRP – 15″ 2.8GHz MacBook Pro Silver (... Read more
Holiday sale: Apple resellers offer 13″ MacBo...
B&H Photo has 13″ MacBook Pros on sale for up to $150 off MSRP. Shipping is free, and B&H charges sales tax for NY & NJ residents only: – 13-inch 2.3GHz/128GB Space Gray MacBook Pro (... Read more
Apple Watch Series 2, Certified Refurbished,...
Apple has Certified Refurbished Apple Watch Nike+ Series 2s, 42mm Space Gray Aluminum Case with Anthracite/Black Nike Sport Bands, available for $249 (38mm) or $279 (42mm). The 38mm model was out of... Read more
Apple offers Certified Refurbished 2016 12″ R...
Apple has Certified Refurbished 2016 12″ Retina MacBooks available starting at $949. Apple will include a standard one-year warranty with each MacBook, and shipping is free. The following... Read more
B&H drops price on 13″ 256GB MacBook Air...
B&H has the 13″ 1.8GHz/256GB Apple MacBook Air (MQD42LL/A) now on sale for $1079 including free shipping plus NY & NJ sales tax only. Their price is $120 off MSRP, and it’s the lowest price... Read more
Holiday sale: 9″ iPads starting at $299, take...
MacMall has 9″ WiFi iPads on sale for $30 off including free shipping: – 9″ 32GB WiFi iPad: $299 – 9″ 128GB WiFi iPad: $399 Read more
Green Monday deal: 15″ 2.8GHz MacBook Pro on...
B&H Photo has the 15″ 2.8GHz Space Gray MacBook Pro on sale for $250 off MSRP for today only as part of their Green Monday/Holiday sale. Shipping is free, and B&H charges sales tax for NY... Read more
Green Monday sale: B&H offers 12″ Apple i...
B&H Photo has 12″ iPad Pros on sale for up to $150 off MSRP as part of their Green Monday/Holiday sale. Shipping is free, and B&H charges sales tax in NY & NJ only: – 12″ 64GB WiFi iPad... Read more
Holiday deal: 21″ and 27″ Apple iMacs on sale...
MacMall has 2017 21″ and 27″ Apple iMacs on sale for up to $200 off MSRP. Shipping is free: – 21″ 2.3GHz iMac: $999 $100 off MSRP – 21″ 3.0GHz iMac: $1199 $100 off MSRP – 21″ 3.4GHz iMac: $1379 $120... Read more

Jobs Board

*Apple* Solutions Consultant - Apple (United...
# Apple Solutions Consultant Job Number: 113124408 Waterford, CT, Connecticut, United States Posted: 17-Oct-2017 Weekly Hours: 40.00 **Job Summary** Are you Read more
QA Automation Engineer, *Apple* Pay - Apple...
# QA Automation Engineer, Apple Pay Job Number: 113202642 Santa Clara Valley, California, United States Posted: 11-Dec-2017 Weekly Hours: 40.00 **Job Summary** At Read more
*Apple* Retail - Multiple Positions - Apple,...
Job Description:SalesSpecialist - Retail Customer Service and SalesTransform Apple Store visitors into loyal Apple customers. When customers enter the store, Read more
*Apple* Retail - Multiple Positions - Apple,...
Job Description: Sales Specialist - Retail Customer Service and Sales Transform Apple Store visitors into loyal Apple customers. When customers enter the store, Read more
*Apple* Retail - Multiple Positions - Apple,...
Job Description:SalesSpecialist - Retail Customer Service and SalesTransform Apple Store visitors into loyal Apple customers. When customers enter the store, Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.