[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: EMF C++ runtime support?
|
- From: Lorenzo Bettini <bettini@xxxxxxxxxxxx>
- Date: Tue, 05 Feb 2008 11:00:05 +0100
- Newsgroups: eclipse.tools.emf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.6 (X11/20071022)
Reinhold Bihler wrote:
Jose,
C++ code generation and runtime support for EMF would be very cool! In
the company
I definitely agree! :-)
Translating EMF's runtime to C++ I see at least the following challenges:
- C++ lacks the concept of a garbage collector for automatic memory
management. This
could be solved by using a smart pointer concept (see e.g.
http://www.boost.org/libs/smart_ptr/smart_ptr.htm )
I think using boost shared pointers would be a nice solution, provided
there are no cycles in pointer relations, which, as far as I remember,
are not handled by shared pointers
- C++ lacks imho a "real" standard library. I know there is the STL but
in comparison to the
Java SDK API or the .Net SDK libraries the provided functionality is
very limited. The EMF
runtime uses different list and map implementations. This is done by
extending basic list and
map implementations. I am not sure how this could be done by
extending the STL list and map
implementations (I am by no means a C++ guru but guess a real guru
would find a way ;-).
Probably there are open source C++ libraries that could help to
overcome C++ lack of standard
I think that the stl would be enough, and one could extend stl classes...
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net