IBM System Object Model

IBM System Object Model

:"For the similarly-named executable file format in the HP-UX operating system, see System Object Model (file format)"

In computing, the System Object Model (SOM) is an object-oriented shared library system developed by IBM. A distributed version based on CORBA, DSOM, allowed objects on different computers to communicate.

Applications

SOM was intended to be used universally from IBM's mainframe computers right down to the desktop in OS/2, allowing programs to be written that would run on the desktop but use mainframes for processing and data storage. IBM produced versions of SOM/DSOM for OS/2, Microsoft Windows and various Unix-flavours (notably IBM's own AIX). SOM/DSOM was also an important part of the later versions of the VisualAge development platform, allowing different languages to call code in a standardized format.

Perhaps the most widespread uses of SOM within IBM was in later versions of OS/2, which used it for most code, including the Workplace Shell. With the "death" of OS/2 in the mid-1990s, the raison d'etre for SOM/DSOM largely disappeared; if users would not be running OS/2 on the desktop, there would be no universal object library anyway. SOM/DSOM development faded, and is no longer actively developed.

For some time after the formation of the AIM alliance, SOM/DSOM was also used by Apple Computer for similar purposes. It was most widely used in their OpenDoc framework, but saw limited use in other roles as well. Most of these technologies were dropped in 1997 when Steve Jobs returned to Apple and ended many development efforts.

Comparison to other object models

SOM is similar in concept to Microsoft's Component Object Model. Both systems address the problem of producing a standard library format that can be called from more than one language. Many disparage this concept Fact|date=February 2008 because the vast majority of programs are written in a single language, and the language neutrality always adds overhead — sometimes considerable. Yet it is important to note that even a single language from different vendors, or even different versions of the same compiler, may use incompatible formats.

SOM can be considered more robust than COM. COM offers two methods of accessing methods onto an object, and an object can implement either one of them or both. The first one is dynamic and late binding (IDispatch), and language-neutral similar to what is offered by SOM. The second one, called a Custom Interface, is using a function table which can be built in C but is also directly compatible with the binary layout of the virtual table of C++ objects in Microsoft's C++ compiler. With compatible C++ compilers, Custom interfaces can therefore be defined directly as pure virtual C++ classes. The resulting interface can then be called by languages that can call C functions through pointers. Custom Interfaces trade robustness for performance. Once an interface is published in a released product, it can not be changed, because client applications of this interface were compiled against a specific binary layout of this interface. This is an example of the fragile base class problem, which can lead to DLL hell, as a new version of a shared library is installed and all programs based on the older version can stop functioning properly. To prevent this problem, COM developers must remember to never change an interface once it is published, and new interfaces need to be defined if new methods or other changes are required.

SOM prevents these issues by providing only late binding, to allow the run-time linker to re-build the table on the fly. This way changes to the underlying libraries are resolved when they are loaded into programs, although there is a performance cost.

SOM is also much more robust in terms of fully supporting a wide variety of OO languages. Whereas basic COM essentially defines a cut-down version of C++ to program to, SOM supports almost all common features and even some more esoteric ones. For instance SOM supports multiple inheritance, metaclasses and dynamic dispatching. Some of these features are not found in most languages, which had led most SOM/COM-like systems to be simpler at the cost of supporting fewer languages. The full flexibility of multi-language support was important to IBM, however, as they had a major effort underway to support both Smalltalk (single inheritance, dynamic dispatch) with C++ (multiple inheritance, fixed dispatch).

The most notable difference between SOM and COM is support for inheritance — COM does not have any. It might seem odd that Microsoft produced an object library system that could not support one of the most fundamental concepts of OO programming; the main reason for this is that it is difficult to know where a base class exists in a system where libraries are loaded in a potentially random order. COM demands that the programmer specify the exact base class at compile time, making it impossible to insert other derived classes in the middle (at least in other COM libraries).

SOM instead uses a simple algorithm, looking for potential base classes by following the inheritance tree and stopping at the first one that matches; this is the basic idea behind inheritance in most cases. The downside to this approach is that it is possible that new versions of this base class may no longer work even if the API remains the same. This possibility exists in any program, not only those using a shared library, but a problem can become very difficult to track down if it exists in someone else's code. In SOM, the only solution is extensive testing of new versions of libraries, which is not always easy.

The flexibility offered by SOM was considered worth the trouble by almost all Fact|date=November 2007, but similar systems, such as Sun Microsystems' Distributed Objects Everywhere also supported full inheritance. NeXT's Portable Distributed Objects avoided these issues via a strong versioning system, allowing library authors to ship new versions along with the old, thereby guaranteeing backward compatibility for the small cost of disk space.

External links

* [http://www.objs.com/x3h7/som.htm System Object Model introduction]
* [http://www.mactech.com/articles/mactech/Vol.11/11.01/LearningtoLoveSOM/ Learning To Love SOM]
* [http://www.byte.com/art/9401/sec8/art7.htm To Inherit or Not to Inherit?] Compares MS's and IBM's approaches to the object library system in terms of inheritance.


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • System Object Model — (SOMObjects) …   Википедия

  • System Object Model — Das System Object Model (SOM) ist eine von IBM entwickelte (in den späteren Versionen auf CORBA basierende) Erweiterung des Betriebssystems um eine objektorientierte und verteilte Plattform (DSOM) für Anwendungen. SOM war auch für andere… …   Deutsch Wikipedia

  • System Object Model —    Abbreviated SOM. A specification from IBM that allows objects created in different environments to communicate.    See also Distributed System Object Model …   Dictionary of networking

  • Distributed System Object Model —    Abbreviated DSOM. IBM s extension to System Object Model (SOM) that allows objects to communicate in a distributed processing environment …   Dictionary of networking

  • Component Object Model — Not to be confused with COM file. Component Object Model (COM) is a binary interface standard for software componentry introduced by Microsoft in 1993. It is used to enable interprocess communication and dynamic object creation in a large range… …   Wikipedia

  • IBM System/34, 36 System Support Program — System Support Program (SSP) was an operating system for the IBM System/34 and System/36 minicomputers. SSP was a command based operating system released in 1977, the days of CP/M, DOS, and the original UNIX.SSP originally contained 60 or so… …   Wikipedia

  • IBM System/36 — The IBM System/36 was a minicomputer marketed by IBM from 1983 to 2000. It was a multi user, multi tasking successor to the System/34. Like the System/34 and the older System/32, the System/36 was primarily programmed in the RPG II language. One… …   Wikipedia

  • IBM System/34 — The IBM System/34 was a minicomputer marketed by IBM from 1978 to 1983. It was a multi user, multi tasking successor to the single user System/32. Most notably, it included two very different processors, one based on System/32 and the second… …   Wikipedia

  • IBM System i — The IBM System i is IBM s previous generation of systems designed for IBM i users, and was subsequently replaced by the IBM Power Systems in April 2008. In 2006, the platform was rebranded to System i as part of IBM s Systems branding initiative …   Wikipedia

  • GNU Network Object Model Environment — GNOME GNOME 2.22 Basisdaten …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”