[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [computer-go] Java like object tree in C++



On Mon, 29 Dec 2003, KANE Aaron wrote:

> All,
>
>     Working in Java, I am very comfortable with the standard object tree
> that is built into Java.  Does any one know of such a tree for objects
> in C++.  I seem to be spending alot of time building standard objects to
> use in C++ while in Java I would just use a pre built.  I would just use
> Java but as we all know.. speed is key.

What do you need speed for?  If you're using Java 1.4, you can get within
10% of compiled code for many compute-intensive purposes.  My experience
writing code for the game Amazons was that the speed was fine, as soon as
I got the time spent in the garbage collector significantly < 1%.  This
takes a modest amount of work, and you ahve to avoid using some of the
standard classes (eg java.util.hashtable), but it can definitely be done.

If you absolutely need every last drop of speed, then some variant of C or
Assembler is in order, but for things other than a GUI I wouldn't give up
on Java until you've done some benchmarking.  Let me know if you want more
detailed suggestions.

Evan Daniel
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://computer-go.org/mailman/listinfo/computer-go