Wednesday, May 7, 2014

Thanks for the Memory



After puttering off and on with my relay computer design over the last several years, and scrapping two major revisions, I’m finally at the point where the design is 98% frozen. Controls have been identified, dimensions documented, instruction set semi-frozen and internal timing coded. The challenge is that you have no idea how the machine will eventually be used. Unlike a toaster oven where your bases are covered with a thermostat and a power switch, this computer must be flexible enough to handle a variety of different tasks, yet have the necessary controls and features to allow simple, straightforward use. About all that can be done is to simulate such varied use as though the computer did exist, writing programs and working through different interaction scenarios to make sure my bases are covered.

Interestingly, the machine will have two different memory systems. A high-speed solid state memory of 4096 words (4k) and an electromechanical relay-based system originally targeted to be 128 words. And herein lies the rub.

A ‘word’ (or byte in today’s parlance) is 8-bits. The ‘straightforward’ method of design requires 8 relays to store the 8 bits, plus 8 relays (or two, 4-pole relays) to act as switches to gate the word onto/off of the data bus. Additionally, you need a relay to ‘reset’ the word when it’s loading data from the bus. Total: 11 relays x 128 words = 1408 relays.

Due to size limitations of where the memory will be placed in the machine, I only have enough room for 96 words. Still a lot of relays, but I actually have them all on hand. Recently I developed a new method of storage and addressing using bi-stable latching relays and some clever diode logic. The advantages far outweigh the disadvantages- consider this:

Pros:
Only 8 relays required per word vs 11, and no 4-pole relays required. That’s a 30% reduction.
Power consumption is ZERO vs 30 Amps with full memory!
Retains its data even when power is off.
Can be read and written to simultaneously with separate busses should the computer support it.
Reduced footprint means 128 words in square area of 96.

Cons:
Approx $1 a piece in quantity; I have none.
I already have the necessary parts for the std mem design.

So yeah, the latter is a more elegant design, but because I’m sick and tired of spending money, I suppose the original shall have to do.

Monday, January 6, 2014

Buffer Overflow

I've been meaning to post more, no, really, I have entries written that ended up getting discarded due to the complexity of the posting process without a fixed internet connection. The best I can muster is the remote BT keyboard to iPad arrangement, which works well enough for the most part.

So here we are at the end of 2013, and what a year it's been. While I would chalk this one up to "improvements", there have been a number of notable accomplishments for the year.

One cannot over-emphasis enough the prospect of finishing a major project. My life is a major project. But what I'm talking about is the living room. Walls painted, carpet installed, furniture in, yes, that was done before. But we still were living with record albums stacked on the floor, an old glass and chrome shelving unit from my parents that barely held the Sansui, and a makeshift coffee table under the north windows as a catch-all. Nothing integrated the way the architecture did. Now the black and glass cabinets are in- dust-free display space for my computer rarities, shelving for DVD's, tapes, records and LaserDiscs. Plus a credenza-type unit for the stereo, turntable, reel to reel and other media devices that otherwise stick out like sore thumbs. The trick to this project was using inexpensive Ikea cabinets with more upscale trim pieces, and then ditching their cardboard backs for 1/4 plywood I bought and sized to the units. I picked up some special stain at a woodworker's supply shop in Chicago that matches better than factory. That said, the total bill was tough to swallow. Now, I just need to finish my display cards.

2013 also saw the completion of the insulation and wall boards under the Lodge stairs, the completion of the kitchen trimout- both stain and trim for the wall cabinet, but also trim beyond the drywall where insulation was previously the finished surface. Let's be honest, it really did look like the set from a TV show!

While on that subject, the room divider/display cabinet in the dining room reached completion- banded, stained, and glass shelves cut and installed along with lighting. As if that weren't battle enough, I managed to go through all the glasses in the collection and pare them down to the essentials, then washed every frickin' one.

Big deal you might think. Well, consider that each one of these things is a knot untied. Like driving a car with a steering wheel but no speedometer, it's the completion of the whole that makes the home.

And speaking of tying knots, I proposed to Cara this year with a wedding planned for 2014. Details to come!

In the pocketbook-pinch department, out came the 18' bi-fold garage doors and in went the pricey, but all-so-needed glass and aluminum doors. With the increasing prospect that we'd live in the Lodge longer than initially anticipated, it made more and more sense that we wouldn't be driving cars in and out of the Lodge daily and hence moving forward with the pulley and cable system I wanted to implement for the bi-fold doors didn't make much sense. As it stood, I couldn't trim the doors out because of the way they folded, and the smooth exterior wasn't a good match for the textured siding. The new doors, while pricey, look nice and bring in lots of natural light that really changes the interior feel of the place during the winter months. Even when below freezing, if the sun is out, the interior warms up more than the old insulated, but solid, doors.

And with the doors open, the cars and other miscellany moved out. The ETC needed a home and found one in the form of The Annex. The '59 needed a home and it was clear I wasn't going to get around to the '60 for a few years, so the '60 moved on down the line to my friend Ben where it will stay in the area and the '59 moved into CS3. In a few years time, we'll be cruising the two cars down University. Pretty cool. And with the southwest area opened up downstairs, we were able to finally epoxy coat the floor and clear out all the construction tools and materials stashed down there, effectively turning the downstairs into the area that I had always envisioned.

A 2009 Sky joined the fleet this summer which is very atypical of my automotive purchases, but it meets my criteria- Last year of production, turbo, 5-speed, convertible, metallic green. Plus I can cruise anywhere without those "old car" worries.

With the '59 out of the Lodge, Ben and I put the finishing touches on the engine, and after several bone-head moves, actually got the car running under its own power. This brings the total for running cars in CS3 up to 4 for 4. 2014 will see a gas tank recoat and the necessary work required to get her fully roadworthy.

Parallel to this little trial and error, my friend Geoff from Australia visited the states for 2013 and we had a blast showing him around Iowa and enjoying his Cadillac ATS rental. The only regret is that we were not able to host him in CS3 this time around, but it all worked out.

Early in 2013 Cara and I took an amazing trip to Disney World which took years off our lives (in a good way). Even the Sebring convertible rental was palatable after purchasing a pair of Walgreens aviators and a fedora! We can't wait to return.

As summer hit full stride I refocused on the siding of CS3. Not an easy task considering the reveal of each course is dependent upon lots of little factors, such as the beltline height, the lower course reveals, the top and bottom planes of windows both front and west, and so forth. When you go with horizontal siding and mitered corners, you basically work as though you're drawing continuous belts around the building, and all lines must match up. But it all worked out, including the cedar trim-out of the front 40' window section. When the thought crosses my mind that I should hire the siding out, it occurs to me that none of this will be considered and the job will look like shit. What remains is siding on the east side, and upper rear. I'll be glad to put that to bed this spring.

We also saw the opening of a Cedar Falls Menards which has saved an uncountable number of hours and dollars in travel. I haven't been to the Waterloo Menards in a long, long time. Helps with those pricey deliveries, too!

On the work front, this fall saw a promotion which has added to the gray temples, but not to the extremes I've seen of others. Let's just hope the ride doesn't get too crazy. How long am I going to go on with this? Well, we'll see. Too many unknowns at this juncture. 

And then there are the 2013 hobbies. Oye.

2014. Welcome.

Thursday, October 17, 2013

Strange Doings


It’s been an interesting year. A late spring, what appears to be an early fall, and a truncated summer that came and went in a flash. I haven’t updated much…either too busy or frankly, too uninspired to write. Creative flashes are few and far between. The days tick past. Work moves along. Obligations are scheduled and then executed. Frankly, I have nothing to really complain about. I’m employed. Have a roof over my head. Food on the table. But sadly, am lacking passion.

Anyway. It’s mid-October so time for an update. Approximately 4 weeks ago the foundation was poured for The Annex. The concrete has now cured, the sill plates cut and installed, and the big materials order scheduled for delivery in two days. Last night we hand selected the 77 2x6x12’s, along with 24-foot long 2x10’s and other lumber. Also picked up the two windows that will be installed over the garage door; the glass prevents them from delivering them on a semi-trailer. I am now finalizing the construction drawings so that Saturday afternoon, I can start cutting studs and hopefully by Sunday, have a few walls framed up.

This past week news arrived that I would be losing the picker again. Time to get the west-side siding project in high gear. Despite the cloudy, rainy, and generally crappy days we’ve had recently, I managed to prime, cut, drill, paint and install all the upper west siding boards and build and install the cedar framing that goes around the window on that side. The final piece of siding actually required drying inside by fan due to the weather we’re having. But it’s done now. That leaves the east side, and the upper rear. The rear is protected by the overhang, and the east doesn’t take as near a beating as the north and west during the winter. Trenching for water and power will have to wait for next year, and that’s just fine. The cars are stored (mostly), the LP tank is full, and the building is near 95% complete.

On the corporate side, the man that was my first full-time boss, and now my most recent boss, has elected to retire. Today was his last day. Due to departmental restructuring that’s been going on in parallel, it’s likely his position will not be backfilled. In fact, one member of the team is being moved to a different department, and another will be splitting his work amongst hardware and software. To add to the confusion, the paperwork has yet to go through, but I have been named the hardware group’s Technical Team Lead, which as far as I can tell, means I’ll be doing the same thing as I am now, but with the hardware people “reporting” to me. Except I’ll have no administrative power whatsoever. And I have a suspicion that with the current workload, the group may disband within a year. Good times.

I think I’ll go home, repair a broken pocket door, and relax this evening.




Wednesday, September 4, 2013

Rentals

One of the more interesting aspects of traveling frequently on business is that I never know what vehicle I’m going to get. I like to specify an SUV in case I end up coming home with a stack of VCR’s, and of course, it helps when you're hauling various test equipment for the actual job at hand.

But the SUV category is pretty broad, from compact to crossover. My favorite model was the Jeep Liberty. The controls were simple but effective. The radio had a vacuum fluorescent display (in the Chrysler style) with easy to use knobs and buttons. The cruise adjustments were right where you’d want them, and the displays were easy to read without being overly simplistic. The ride, brakes, and drivetrain earned top points in my book. Sadly, these models are being phased out (they weren’t so hot on gas mileage, either).

I’ve had the displeasure of driving the Nissan Versa. The surprisingly nice Chevy Traverse. The Equinox, which does not rate very high in my book, and even a couple of Fords.

And I will say this. Anyone that thinks that the Japanese make a superior vehicle today, based on the crossover and SUV market, has their head in the sand. Ford and GM have made such major leaps in recent years that it’s almost unbelievable. Meanwhile, Toyota has taken their share of punches, and they haven’t fared well. All of that aside, let me tell you about the biggest piece of shit I have driven to date. The Toyota Rav4.


Where do I begin with this SUV? Toyota is known for building some of the best ‘appliance’ cars on the road. Ones that are pure vanilla and blend in. You put gas in and they go. No muss, no fuss, no fun. Which is just what a lot of people are looking for. Sadly, this car fails on the very essence of that fundamental.

If you’ve ever driven a 90’s Tercel, this car is a lot like that. It accelerates like nobody’s business, probably because it feels so damn light. But the issue is, it’s either going, or it’s not. Touch the throttle lightly and the engine responds with plenty of power, along with a symphony of coffee cans banging together through a gearbox that sounds like it came from a ’49 Farmall.

Mass is rather...lacking...in the door. Additional force is required if you want to actually close it. Additionally, I found that dew and condensation drip directly into the drivers power window switch in a way that's almost planned.

The brakes respond in kind, meaning there’s no modulation, whatsoever. The problem here is that you delay in braking because you want to avoid whiplash, however this means that in big city driving, you’re always braking late, and the 30 cars behind you that would like some notice of your stopping, are probably cursing under their breath as they avoid smashing into the back of you.

And speaking of smashing into the back of you, while I cannot fully explain the root cause, I have narrowly avoided two rear end collisions as this car has attempted to accelerate while I was trying to slow it. Once at a stop light when I was just about stopped and the engine decided to tach up to 4000 RPM’s and began to pull forward. Yes, there was a car in front of me and if the light hadn’t turned green I’d be in a lot of trouble right now. 

"Like a Rock"....the steering wheel, not the car.
So let’s talk about steering. Whoever designed this interior should have been given more than a $30 budget. The steering wheel is like a Playskool toy. Extremely hard, cheap plastic. No variable resistance in the turning. The gauges are bright and clear, except for the Temp gauge which, in the darkness, resembles a floating red toothpick because A: There is no lighted origin of the pointer, and B: Some fool left all graduations off of the gauge! How useful!

HCFE!
Also, somewhere a Ukranian tractor is missing its radio.

You would think such a large display would spend less time displaying "No Message". For that matter, this message is present for any station not transmitting RDS info, which are quite a few. And let's not get started about the reception.
The seats were handcrafted by the Amish from the densest oak they could find, and then covered by the finest polyster Toyota could specify. A mere 4 hour ride has you wishing for a red vinyl bench seat from an old Thomas schoolbus. At least then you stand the chance of getting bounced out the window and escaping this interior. 

I spent a lot of time studying the dashboard to find out what gear I was in. Shifting out of Park blindly was not advised. The shift gate has the accuracy of a keelboat adrift in the Indian Ocean.
So…the brakes have no give, the ride is un-appreciably rough, the engine extremely unrefined, the seats are hard, and the gear shifter has plenty of unnecessary lateral movements required to get to D.

You will forever be guessing which options you were too cheap to order.
At least the carpet is absorbent.

Thursday, August 29, 2013

Thoughts on Computing


In most regards, we have come an extremely long way from the first computers. There have been ridiculous advances in size, cost, speed, power consumption and portability. But what’s interesting is that today, outside of extravagant purpose-built supercomputers, everybody’s running Intel with the same architecture. It’s like going to the car lot and having your choice of 10 different makes, and they’ve all got the same engine and suspension. Apple shows up with a different interior and a different paint color. Let’s say, Victoria Plum Firemist. Dell can’t figure out what color to paint their car so they look at Apple and paint theirs “Purple”.  That’s the state of machines today

But it wasn’t always so. In fact, until the PC revolution, there was no common “best” way to build a machine. For the first decade or so of commercial machines, you either chose a scientific computer, or a business oriented computer. Both were general purpose, but a scientific machine excelled at complex math (maybe it had hardware floating point) while a business machine was better at sorting and merging (high speed I/O). You might buy a Univac 1103 for your hydrodynamics problems, and a Univac II for payroll and inventory. The eventual availability of compact, affordable memory and reduced circuit size meant one machine could excel at both tasks. History credits this to the famed IBM 360 which was a make-or-break proposition for the company*. If you’ve ever wondered why it was called the 360, now you know- to encompass the complete circle of computing demands.


But a bent towards a specific field is pretty general. Today, a byte is specified as 8 bits, also known as a Word. 8-bit microcontrollers spurred the microcomputer industry in the late 70’s. 4 bits was too few (there was an Intel 4004) and 16 bits at that stage, just out of reach for most applications. But, it was realized very early on that the bigger the computer word, the more “work” that could be done in a single computing cycle. And even in 1952, people were trying to get all the computing speed they could out of their vacuum tube machines (which were remarkably fast). One machine might specify an instruction, a source address and a destination address (in binary of course) in a single word. 64-bits, or even more, were not uncommon 50 years ago. A large word also had the advantage that large numbers could be manipulated without splitting them into segments, but that’s another story. Other machines, such as the NORC, might even specify the addend address, the augend address and the destination address in a single word. Others included the address of the next instruction within that word.

And here’s the thing… Nobody had yet settled the matter of whether decimal arithmetic, or binary arithmetic, was the superior thing. That would take another 10 or 15 years. Having the machine work entirely in binary meant more efficient use of memory, but it also meant that conversion into, and out of, the machine would be required if it were to be human readable. And then we have 1’s complement, 2’s complement, XS3, etc.  Decimal machines solved this issue by acting on the digits of the stored numbers specifically as BCD, but 4 bits are required for each digit, so there’s a memory tradeoff because you essentially throw away the values of 11-15.

And what then, of letters? IBM preferred the EBCDIC encoding arrangement which assigned 6-bits to each letter; others preferred some flavor of 7-bit ASCII. Not only are the two incompatible, but ASCII allows natural sorting; that is, the binary code for G is greater than F, and F is greater than E. This is not so with EBCDIC. And how might the machine tell the difference between a number and a letter? If two leading zeros are appended to each BCD number, memory is wasted. Though clever designers might then assign these two bits to serve a different function (such as in the 1401).


But as the saying goes, that’s not all! Why must the machine word length be a fixed number of digits? What if it was infinite and the ends defined by some sort of bit pattern? This would certainly make for a much more efficient machine and a lot less wasted memory. And so was the IBM 1401 born. It far outsold the conservative projections of most everyone at IBM and became the most popular computer in the world up until the microcomputer movement. Words could be variable length, and their total length defined by a code known as a word mark.

So now we have scientific and business, BCD and binary, fixed length (of many varieties), variable length, and encoding differences.

Oh yes, and checking facilities. How does one ensure the exact number of bits has been recorded to tape when the blocks are written at several thousand bits per second and the loss of just one bit will completely invalidate the data? To say nothing of swapping reels on drives of various adjustment. Well, there’s no one way to do it. “All 1’s” checkers, checksum counts, even/odd parity bits, redundant channel recording, redundant CPU comparisons, and a host of other techniques were favored by various companies for various machines. And all worked pretty darn well.

And still, we haven’t discussed instruction architecture, which can get pretty wild. Or memory systems and addressing.

All of these variations meant lots of variety, and competition, and new ideas in CPU and architecture design. Something that’s exceedingly rare today, and likely never to be visited again given that software development work is done primarily at a high level language and that coders no longer have to give any though to the nuts and bolts of the machine. And as long as we can put more transistors on a chip, and make memory smaller, cheaper, and faster, there’s no need to care. The downside is that we’ve narrowed our path of computer evolution, which is only 1 of many nails in the coffin for the personal computer.



*One of many reasons the 360 was a gamble was that up until this time, IBM had attempted some semblance of machine compatibility amongst their scientific machines, and again with their business machines. The 360 was totally incompatible with ALL existing machines, and it would be some time before emulators (or useful software in general) would be available.

Thursday, August 22, 2013

The Redbox Special



The problem with Jobs, is that Ashton Kutcher is no Noah Wyle. Seriously. He’s good, but between an overly simplistic script and failed attempts to channel Jobs’ concentrated anger, well, this film is a rental at best. I can overlook the choppy editing, the rearranging of events in time, the trumped-up, over-dramatized “pivotal moments”, but this thing is a train wreck compared to Pirates. Which, for a 15-year-old, made for TV movie, manages to be more convincing, more comedic, and more professional than this Virgin production.

Other than that, it was great.

I also spent slightly more than the ticket price on a DVD documentary about Eckert and Mauchly which arrived this week. My review on Amazon was not kind. That makes two terrible computer biopic/documentaries endured within 48 hours.