Current CIDLib Version 0.400
Welcome To CIDCorp
Home of the CIDLib Class Libraries


CIDLib Beta Version 0.400

The overriding shortcoming in this version is that its very early in the move to fully custom control widgets. So there are only frames, clients, buttons (of all types), statics (of all types), status bars, and a couple others. This means that a good number of the demo programs from the last version are removed from this one because they depend upon GUI functionality not there at this time.

Those things notwithstanding, The primary improvements in this version are:

Template Based Collections
The entire collection system has been rewritten to be template based. Recent improvements in the VAC++ development environment have made templates a more reasonable solution, so I went ahead and made the move. There are now 'by value' collections in addition to the 'by reference' collections previously available. They are all around much nicer, tighter, and have more power and flexibility.

The move to template based collections has driven massive changes in the overall architecture since much of the virtualized functionality in previous versions was required because of the older style collection system, because the collections held only pointers to the base TCIDObject objects. So much more of the functionality is non-virtual, for better speed and more compile time safety.

Mixin Multiple Inheritance
This new release marks the move to multiple inheritance. The mixin style of MI is used, which is a strictly controlled MI scheme designed for maximum power without the potential wierdness of diamond shaped inheritance graphs. Mixins are used now for streaming, locking, polymorphic duplication, etc... This has obviously had massive implications in the system, which are all for the better but very mind numbing to do...

Dynamic Typing and Polymorphic Streaming
CIDLib can now create new objects by type name at runtime. It also supports polymorphic streaming of objects. This is a very powerful feature that will be at the heart of a lot of higher level functionality. It will allow, for instance, a heterogenous ('by reference') collection to save its contents and reload it again later with no help from the host app. It will also be at the heart of the eventual document architecture.

Documentation
As always, I keep cranking up the documentation to make it better and more comprehensive. As more CIDLib subsystems become more mature, it becomes more reasonable for me to write more definitive documentation. As you probably noticed on the home page, the documentation is being moved to the HTML format and so is online here Class Reference and here Developer Reference

Strings and Memory Buffers
The string and memory buffer classes were totally reworked. They both now support a max size that they can auto expand up to. This makes them much more useful as stream source/sinks. The TSysBuf class is particularly good for this since it uses sparse allocation to do its auto-expansion.

There is also just one string class now, instead of a family of fixed sized strings. This is slightly less efficient, but much more flexible and simple. And the TSharedBuf was just folded into the TSysBuf class, which can now be either named or unnamed.

Ray Tracer Engine
The speed of the ray tracing engine has been improved massively. It is now almost 10 times faster than the previous version, according to the kinds of scenes you create. This improvement is due to some profiling of the code. This is good because I still have to add in refraction support and some other goodies.

Later I will add the ability to load up new objects in a DLL, which will make for the ultimate in flexibility.

New Streaming Model
The streaming model has been drastically improved and made more consistent and orthagonal. Looking back on it it was a mess I guess :-) It has been expanded to include all of the previously 'special case' data sink/sources. The new TConsole class (a specialized stream) provides a very nice command line interface for getting user input (with full command line editing and recall) and parsing it. 'Stream Implementation' objects now abstract the stream classes from the data sink/source in a better way than before. All formatting was removed from strings and binary and text files (beyond just the core basics of writing raw buffers and such), and are now done by making these things the sink/source for a stream (via an implementation object.) This gets all binary/text I/O into the stream system, where its implemented just once.

Fractal Engine
The Fractal Engine is now finally coming together. It now has the dynamic typing system and polymorphic streaming that it was previously attempting to provide for itself in a more primitive way. So all of that is now provided for free by the core architecture. The architecture is now set up in a very flexible, plug in component sort of way. The fractal types always were but now the calculation engine is also, allowing me to support lots of different calculation load distribution schemes.
It now supports mapping to either the escape time or the result of the iterative formula at the time of escape. I might change it to support both at the same time, but this is very memory intensive. The calculation engine has a new cache object to control the calculated data. Its smart enough to store the data in as little space as possible, which can make a big difference in large images (multiple megabytes.) This lets the system also now handle escape times up to 32 bit escape times (4 billion iterations anybody? :-)
The new family of value map classes (see New Mathematical Classes below) are used now to map colors to palettes (which is necessary now that we can supports way over the number of colors possible. In particular the TLogMap class provides very nice logarithmic mapping between large escape times and limited numbers.

Some good fractal demo programs are now available that show how to use the engine. They show how to do single threaded and multi-threaded rendering and how to use the new polymorphic streaming to save the whole calculation session and pick right back up again when the program reloads.

PM Control Takeover
I finally decided I cannot create a truly object oriented environment and build upon the very non-OO PM window classes. So I'm replacing the whole windowing system with my own custom window classes. This is vastly improving the cleanliness, consistency, and power of the GUI architecture. Since I'm free to do whatever I want as far as style, I'm doing a much more elaborate GUI. I don't have to worry about the low end systems that PM has to run on, so I can afford the overhead and the heavy 3D look.

I have also added to my custom frame window support for a status bar and fly over text. And the whole issue of window styles and presentation parameters is dealt with in a much more extensible and OO way.

Objectified Kernel
I've objectified the kernel DLL, and incorporated the old FPU kernel into it. So its moving much towards a real micro kernel abstraction layer. Now that my GUI situation is much simplifed ('PM Control Takeover' above) I can create a GUI/GPI kernel abstraction layer much more easily. This is being taken much further (and nicer) in the next version, which will be hosted on NT.

Miscellaneous GUI Improvements
The graphics bundle classes where reworked and very much improved. There used to just be a single bundle class which used an enum to indicate what bundle it represents. Well duh, that ain't too OO. They are all now derived from TGraphBundle and there are versions for lines, text, areas, and markers. Some more might be added if I add more primitive graphics types in my 2D graphics system.

New Mathematical Classes
Added a new family of classes call value mappers. They map one value to another via some scheme. Its immediate use is for the fractal engine, which needs to map escape time values to color indexes. These are all derived from the TValueMap abstract base class. The TLogMap derived class was done first because that's the one most needed by the fractal engine. Also a TModMap was done, which does modulus divides to do the mapping.

Also, floating point versions of the coordinate classes have been added. So now there are floating point areas, points, and sizes, to complement the integral versions of these classes that always existed.

Demo Programs
Though a couple of the GUI oriented demos are not in this release (because of the lack of GUI control classes at this time), a number of others were added to show the real strengths of the core CIDLib classes and frameworks. There are new demos for the dynamic typing, polymorphic streaming, the new collection templates, etc...

The demo program subdirectory in this release also spreads them out into 'category' directories. This makes it easier to quickly look and see what programs are the best demonstrations of some particular category of functionality (though of course they will also use other systems as well.)

Bug Fixes/Minor Improvements
A number of bugs were fixed, miscellaneous improvements added, and some fundamental stylistic improvements. These are discussed in the release notes file.

CIDCorp Home Page

CIDCorp
Dean Roddey
Internet: droddey@ng.netgate.net
CIS: 72170,1614