Fruity C++

on Michael Vorburger's Personal Homepage
Home Personal Projects alpha ware

 

PROJECT NAME

A "Fruity" Approach to Memory Management in C++

A Pattern for Object Encapsulation

DATE & STATUS

Click here for more information about this project

October 1994 - March 1995, May 1995

This project originates from work I did to participate in youth science fairs. The first report was written in German for the national  contest of Schweizer Jugend forscht [EXTERNAL]. It underwent a major revision and was rewritten in English for the participation in the European Youth Science fair, where it won a third prize.

DESCRIPTION

The main elements are some C++ classes which extremely simplify memory management. By providing automatic reference-counting, memory can be correctly free'd when objects go out of scope.

The first paper (in German) also contained an attempted math framework (symbolic derivation etc.) and a container class library (strings, stacks and bags etc.) based on the new memory management features. These chapters were all dropped in the final paper (in English) to concentrate on the core issue.

TECHNOLOGIES

low-level C++ framework

LOOKING BACK

Techniques such as what I called "shell / fruit" pattern are not entirely new to the C++ community. James Coplien describes a "letter / envelope" idiom in his book "Advanced C++ Programming Styles and Idioms, Addison-Wesley 1992" which is very similar. The point about this project is that I figured out something similar to a well-known C++ expert without knowing about his work. (I was told about on the youth science fair by one of the judges.) Chapter 3.3 of my paper has a short comparison.

ACKNOWLEDGEMENT

I wish to thank "Schweizer Jugend forscht" and the "European Union Young Scientists Contest [EXTERNAL] for giving me motivation to work on this project and R. Christen for explaining to me how to write a clear & concise scientific project paper.

MORE INFORMATION

Abstract of final paper (in English)
Table of contents of final paper (in English)
Complete final paper: 18 pages in English as WinWord 2.0 doc. (102 KB)
Appendix: Source code: 45 pages as WinWord 2.0 document (201 KB)
Complete first paper (in German, 75 p.) + Sources (65 p.) as ZIP (140 KB)
All sources, samples etc. (135 files, my working dir.) as ZIP file (178 KB)

 

Go to TOP of page
Page last modified on 11-Jan-99
Copyright 1998-99 homepage@vorburger.ch [E-MAIL]

Site hosted by
ItaWeb, Peruggia (Italy)

KISSfp FrontPage Add-On
KISSfp FrontPage

  URL: http://www.vorburger.ch/projects/fruity/index.html