Filip Konvicka wrote:
Hi,
if your only concern is memory usage, then stick to C/C++.
I disagree. Data structures in Mozart are quite memory efficient.
Lists use two
words per list element. Records take N+2 words. Tuples take N+1 words.
Dictionaries are especially efficient: they grow and shrink as
necessary. Data
structures have good implementations in Mozart. There is really no
reason to
reinvent the wheel in C++.
The only reason to use C++ is for performance, and even there usually
for only
a small part of the program (i.e., write it all in Oz, profile it, and
rewrite a small
part in C++). What's more, some of the more sophisticated parts of Oz, such
as the lightweight threads and the constraint solver, are already
written in C++!
The lesson is don't give up too quickly on high-level languages.
Peter
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users