Alamo PC Organization: HOME > PC Alamode Magazine > Product Reviews

cat

 

Book Review of:
Be Developer's Guide
Be Advanced Topics
 

From the May, 2001 issue of PC Alamode Magazine
by Russell Albach
coverI recently reviewed the BeOS, an operating system oriented toward multimedia. 

While Windows dominates the desktop environment, many people are actively searching for viable alternatives. It has little to do with cost or available applications. Reliability and functionality are the driving forces. Stability, or lack thereof, is the primary reason for reliability problems. Who hasn’t had Windows crash and trash their work? While no operating system can be called “stable,” Windows stretches the term tighter than a banjo string. The time expended in trying to maintain Windows seems to overwhelm any benefits of using the operating system. Time is finite, and every hour spent dealing with Windows is one hour of life gone forever. The operating system should be transparent to the user, allowing full attention to the task at hand. Functionality is allowing the maximum possible usage of the chosen application. Aside from the aforementioned Windows problems, the Windows OS is a resource hog. The basic problem, in my opinion, is Windows is based around an eight bit architecture. This was fine when it was originally released, but is as obsolete as a button hook, and about half as useful! The latest versions use patches, fixes, workarounds, and smoke and mirrors just to run. No wonder there are problems. Microsoft is supposed to be working on a 64-bit OS that actually works, but I plan to follow the old adage, “fool me once, shame on you; fool me twice, shame on me.” I am embarrassed to admit it, but MS has fooled me more than twice. (3.0, 3.1, 3.11, 3.11/workgroups, 95a, 95b, NT 4.0) Linux is also in my test group, and I like what I see so far. 

My article, in the July 2000 PC Alamode, covers the multimedia aspects of Be. The likely near future of personal PC’s is in what are referred to as Internet Appliances. These are devices that communicate over the net, not necessarily through a desktop computer. You may have seen a commercial about a repairman arriving at a home to repair a refrigerator. The bewildered homeowner did not call for repairs as the fridge appears to be functioning normally. It seems the appliance dialed for preventive maintenance! This is not now in use, but is on the way, and is a type of Internet Appliance. BeIA is the entry from Be in this field, and is supposed to be a platform for appliances that deliver information, entertainment and interactivity over the web. BeOS is the basic building block for this, and I wanted to take a closer look at it. If you read my review, you may recall I had a problem with my video card. Be did not recognize it, and ran in default monochrome mode, giving me access to the OS, but eating up half of the CPU cycles, resulting in a really slow computer. The version of Be, 4.5, is supposed to work with my card, a Number Nine, but did not. Attempts to obtain a driver have so far been unsuccessful. Since I have been wanting to try writing my own video driver, now seemed a good time. 

Most of the books about computers are difficult to read, wander in a seemingly aimless manner, and tend to be boring. A notable exception, in my experience, is the series of “dummies” books. You know the series, DOS For Dummies, Windows For Dummies, etc., and the easy to understand writing. There is another series that I find as good as those. They are the books published by O’REILLY. 

Note: Members of Alamo PC receive a discount from O’REILLY. Contact our deals person to inquire.
Now I don’t want to mislead you into thinking books on application development are “can’t put it down easy reading,” if you are interested in that area, O’REILLY is a good place to look. I got two books, Be - Advanced Topics and Be - Developer’s Guide, and decided to use these to attempt a driver for my video card.

Be - Developers Guide is the official programmer’s reference manual to this operating system. It provides developers with access to the internals of Be. The Guide describes all the foundation kits in the operating system and how to use them. The kits are: 

  • Application Kit

  • starts you on applications
  • Storage Kit

  • an interface to the file system
  • Interface Kit

  • includes windows, buttons, controls, and everything needed to design a GUI
  • Kernel Kit

  • provides access to the lowest programmable level of the BeOS
  • Support Kit

  • common functionality and definitions. 
There is an included CD containing the Be operating system. The kits are written in C and C++ , and while some are important to all applications, others are used only by specific topics. This means my primary concern is with the Device Kit. This defines the API (Application Programming Interface) for creating loadable device drivers. Drivers for graphics cards run as extensions of the Applications Server; printer drivers run in the Print Server. All other drivers are loaded by the kernel. Great. What does that mean? Think of it as a large jigsaw puzzle. Before you try to assemble it, you spread out all the pieces. You then use both shapes and images on each piece as clues to what goes where. All the various libraries, formats and source code are used in exactly the same manner. Just as each puzzle piece only fits one way, the driver will only work if you assemble all the pieces correctly. It’s not really that complicated, the only two things required are time and patience. 

Be  - Advanced Topics is the second half of the duo, and covers the less commonly used kits in the operating system. Kits covered here are: 

  • Media Kit

  • real-time processing of audio and video data; (remember, Be is oriented toward multimedia)
  • Midi Kit

  • MIDI generation and processing, including Headspace General MIDI synthesizer
  • Game Kit

  • allows your game to take over the machine
  • OpenGL Kit

  • implements the OpenGL 3D graphics interface
  • Network Kit

  • an interface for the network and mail, and my target
  • Device Kit

  • lets you create your own device drivers.
I will be the first to say it’s best to use drivers already created, but in my case, the driver wouldn’t work, so. . . This book also includes a CD with the BeSpecific 5 for the Intel platform. The CD contains shareware for add-ons, productivity programs, programming tools, commercial demos, the latest source code, graphics, games, newsgroup archives (always a terrific resource for everyone using computers), and the developer mailing list. In short, this book shows you how to play sounds, draw in 3D, communicate with the net, and build a kernel device driver. The specific chapter I needed is eleven and covers eighteen pages. To get here though, you need to read and digest the first book, and that covers about 884 pages of slow reading. Another 260 in this book brings you to chapter eleven. Yeah, that’s a lot of work just for a driver. If you get through it though, you will have a very good understanding of the Be operating system, and the various benefits it provides.

Time limitations, as always, prevent me from reading these two books and actually creating the video driver before this review is due. I will get it done and report my results, along with how I did it.

I know that the inner workings of applications, let alone operating systems, is not a subject with wide appeal. It does interest enough to make books like these inviting to who does want to dig into these areas, and I really like the way O’REILLY publishes in general. They aim at specialized groups, but the books are easy enough to read that anyone with an interest can make use of them. 

These books can usually be found in larger bookstores, and can be ordered direct from O’REILLY. Remember to check to see about member discounts. The Developer’s Guide lists for $49.95 and Advanced Topics for $39.95. (Nobody pays list)

O’REILLY usually sends catalogs of their books and software to Alamo PC, so check the membership table at the meeting, or go by the Resource Center at Crossroads Mall. You can also request one direct 

O’REILLY & Associates, Inc.
101 Morris Street
Sebastopol, CA 95472-9902
Phone: 800-998-9938.

No computers were harmed during this review. 
Russell Albach