Re: Java's performance far better that optimized C++
From: Dietmar Kuehl (dietmar_kuehl_at_yahoo.com)
Date: 06/18/04
- Next message: JKop: "Re: assignment operator question"
- Previous message: Bob Hairgrove: "[OT]: DLL & pointers problem"
- In reply to: valentin tihomirov: "Re: Java's performance far better that optimized C++"
- Next in thread: valentin tihomirov: "Re: Java's performance far better that optimized C++"
- Reply: valentin tihomirov: "Re: Java's performance far better that optimized C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Jun 2004 15:07:21 GMT
valentin tihomirov wrote:
>> Have a look at the algorithms in the
>> standard C++ library to get an idea what I'm talking off. For a more
>> intriguing example, have a look at the Boost Graph Library (see
>> <http://www.boost.org/>). Stuff like this is impossible on the basis of
>> Java generics.
>
> Could you please refer me to hash_set demo example? I understand, I will
> need to define some hash-code generator and equality comparitor. The
> structure to be stored has an integer field, retreiving an element by
> integer will be needed.
Apparently you do not understand what these libraries are all about (no
offense here: many people fail to see what Generic Programming is about):
the containers are just one part, the unimportant one. I don't know which
hash_set you are using (the standard library actually does not [yet] ship
with one) and I don't care too much about containers. The point is that
algorithms operate on all appropriate data structures, independent on
whether they come from the standard library, are user defined, or whatever.
Actually, it is even possible to use the algorithms with data structures
which were never intended to be used with the algorithms. The algorithms
in the standard C++ library are relatively simple but the same technique
can be applied to more complex algorithms like the graph algorithms from
the BGL.
-- <mailto:dietmar_kuehl@yahoo.com> <http://www.dietmar-kuehl.de/> <http://www.contendix.com> - Software Development & Consulting
- Next message: JKop: "Re: assignment operator question"
- Previous message: Bob Hairgrove: "[OT]: DLL & pointers problem"
- In reply to: valentin tihomirov: "Re: Java's performance far better that optimized C++"
- Next in thread: valentin tihomirov: "Re: Java's performance far better that optimized C++"
- Reply: valentin tihomirov: "Re: Java's performance far better that optimized C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|