473,434 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Namespace problem

Hi, i have the following problem

In file1.h

namespace A
{
class Bar
{
void foo();

};

}
In file2.h

class Bar;

class User
{

Bar* pBar;

};
In file2.cpp

#include "file2.h"
#include "file1.h"

User::func()
{

pBar = new Bar;
pBar->foo(); // linker error here
}
If i try to forward declare in file2.h like this

class A::Bar i get a compiler error saying that A is not a class or
namespace
with MSVC++8.

How to solve this issue.
Jun 27 '08 #1
80 3440
tech wrote:
Hi, i have the following problem

In file1.h

namespace A
{
class Bar
{
void foo();

};

}
In file2.h

class Bar;

class User
{

Bar* pBar;

};
In file2.cpp

#include "file2.h"
#include "file1.h"

User::func()
{

pBar = new Bar;
pBar->foo(); // linker error here
}
If i try to forward declare in file2.h like this

class A::Bar i get a compiler error saying that A is not a class or
namespace
with MSVC++8.

How to solve this issue.

I think you have to reopen the namespace:

namespace A {
class Bar;
}

class User {
A::Bar* pBar;
}

br,
Martin
Jun 27 '08 #2
tech wrote:
Hi, i have the following problem

In file1.h

namespace A
{
class Bar
{
void foo();

};

}
In file2.h
Add

namespace A {
>
class Bar;
Add

}
>
class User
{

Bar* pBar;

};
In file2.cpp

#include "file2.h"
#include "file1.h"

User::func()
{

pBar = new Bar;
pBar->foo(); // linker error here
}
If i try to forward declare in file2.h like this

class A::Bar i get a compiler error saying that A is not a class or
namespace
with MSVC++8.

How to solve this issue.
You have to tell the compiler that 'A' is a namespace.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 27 '08 #3
Hi, thanks now i have another problem though

In file1.h
namespace A
{
class Bar
{
void foo();
};
}

file1.cpp

namespace A
{
Bar::Bar()
{
}
}
In file2.h
namespace A {
class Bar;
}

class User
{
A::Bar* pBar;

};
In file2.cpp

#include "file2.h"
#include "file1.h"
User::func()
{

pBar = new A::Bar;
pBar->foo();

}
Now i have compiler error saying Bar has no default constructor
Jun 27 '08 #4
tech wrote:
Hi, thanks now i have another problem though

In file1.h
namespace A
{
class Bar
{
void foo();
};
}

file1.cpp

namespace A
{
Bar::Bar()
{
}
}
Uh... This doesn't see right. The definition of A::Bar class
has the only function, named 'foo' in it. And the implementation
file for some reason attempts to define the default constructor
that you didn't declare.
>

In file2.h
namespace A {
class Bar;
}

class User
{
A::Bar* pBar;

};
In file2.cpp

#include "file2.h"
#include "file1.h"
User::func()
{

pBar = new A::Bar;
pBar->foo();

}
Now i have compiler error saying Bar has no default constructor
Post your *actual* code.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jun 27 '08 #5
Well, as I must find something new to do..
http://razi2.blogspot.com/2008/04/sh...arks-game.html

The site at

http://shootout.alioth.debian.org/gp...t=all&lang=all

has many computer languages performance on a same few dozen
benchmarks.

For some reason, the java compiled with Jet is not on the site. I
asked him to add Jet to the list, and he gave a really odd excuse
about "license" restrictions. There is nothing in Jet license that
restricts him from posting benchmark results (it's been done on many
web sites). Later he gave even a more weird excuse that they will have
to link to the Jet web page if they include Jet results. Huh? Why
would that be a problem? They already link to every compiler used in
the shootout. The number one ranked compiler on their list is Intel
C++ compiler which is a commercial product (
http://shootout.alioth.debian.org/gp...=all&lang=icpp
). They link to Intel C++ compiler.

Well, since they refused to add what is commonly claimed (we will see)
to be the fastest java compiler, I will run g++ vs jet on my computer
(using the same code that they have and similar flags that they use
for g++). We can then estimate where Jet would rank on their
(incomplete) list .

What I am using:
gcc version 4.3.0 (GCC TDM-2 for MinGW)
Jet version: 6.4 beta
http://www.excelsior-usa.com/jetdlbeta.html

To record time, I downloaded Cygwin and used "time" command. The
output is directed to >/dev/null

Starting today:
binary-trees benchmark
(C++ version)
http://shootout.alioth.debian.org/gp...&lang=gpp&id=2

(java version)
http://shootout.alioth.debian.org/gp...lang=java&id=2

g++ -pipe -O3 -fomit-frame-pointer -finline-functions binarytrees.cpp
-o binarytrees.exe -march=native

jc -inline+ binarytrees.class

Time in secs as N increases
N 12 14 16
g++ 0.442s 2.343s 13.743s
JVM 0.185s 0.339s 1.281s (-server -Xms64m)
JET 0.284s 0.506s 1.528s

Weird, very weird. According to their site, g++ is 1.6 times faster
than JVM but I don't get the same result using the same source that
they have on their site. With n=13, g++ is 7.5 times slower. huh?
Why? In any case, JVM is faster than JET in this benchmark anyway.

Next benchmark: fannkuch

(coming next).


Jun 27 '08 #6

Well, as I must find something new to do.
http://razi2.blogspot.com/2008/04/sh...arks-game.html

The site at:
http://shootout.alioth.debian.org/gp...t=all&lang=all

has many computer languages performance on a same few dozen
benchmarks.

For some reason, the java compiled with Jet is not on the site. I
asked him to add Jet to the list, and he gave a really odd excuse
about "license" restrictions. There is nothing in Jet license that
restricts him from posting benchmark results (it's been done on many
web sites). Later he gave even a more weird excuse that they will have
to link to the Jet web page if they include Jet results. Huh? Why
would that be a problem? They already link to every compiler used in
the shootout. The number one ranked compiler on their list is Intel
C++ compiler which is a commercial product (
http://shootout.alioth.debian.org/gp...=all&lang=icpp
). They link to Intel C++ compiler.

Well, since they refused to add what is commonly claimed (we will see)
to be the fastest java compiler, I will run g++ vs jet on my computer
(using the same code that they have and similar flags that they use
for g++). We can then estimate where Jet would rank on their
(incomplete) list .

What I am using:
gcc version 4.3.0 (GCC TDM-2 for MinGW)
Jet version: 6.4 beta
http://www.excelsior-usa.com/jetdlbeta.html

To record time, I downloaded Cygwin and used "time" command. The
output is directed to >/dev/null

Starting today:
binary-trees benchmark
(C++ version)
http://shootout.alioth.debian.org/gp...&lang=gpp&id=2

(java version)
http://shootout.alioth.debian.org/gp...lang=java&id=2

g++ -pipe -O3 -fomit-frame-pointer -finline-functions binarytrees.cpp
-o binarytrees.exe -march=native

jc -inline+ binarytrees.class

Time in secs as N increases....
N 12 14 16
g++ 0.442s 2.343s 13.743s
JVM 0.185s 0.339s 1.281s (-server -Xms64m)
JET 0.284s 0.506s 1.528s

Weird, very weird. According to their site, g++ is 1.6 times faster
than JVM but I don't get the same result using the same source that
they have on their site. With n=13, g++ is 7.5 times slower. huh?
Why? In any case, JVM is faster than JET in this benchmark anyway.

Next benchmark: fannkuch
coming next
(.........)
Jun 27 '08 #7
Razii wrote:
>
Time in secs as N increases
N 12 14 16
g++ 0.442s 2.343s 13.743s
JVM 0.185s 0.339s 1.281s (-server -Xms64m)
JET 0.284s 0.506s 1.528s

Weird, very weird. According to their site, g++ is 1.6 times faster
than JVM but I don't get the same result using the same source that
they have on their site. With n=13, g++ is 7.5 times slower. huh?
Why? In any case, JVM is faster than JET in this benchmark anyway.

Why don't you just link to the binary-trees result page, so we can all
start using Haskell, ML, Lisp, and Basic for our high performance
programs?

http://shootout.alioth.debian.org/gp...trees&lang=all
Must be a bad benchmark, as Java 6 -server is at 16th place!
Bo Persson
Jun 27 '08 #8
On Sat, 19 Apr 2008 22:27:02 -0500, Razii wrote:

Starting today:
binary-trees benchmark
(C++ version)
http://shootout.alioth.debian.org/gp...&lang=gpp&id=2

(java version)
http://shootout.alioth.debian.org/gp...lang=java&id=2

g++ -pipe -O3 -fomit-frame-pointer -finline-functions binarytrees.cpp -o
binarytrees.exe -march=native

jc -inline+ binarytrees.class

Time in secs as N increases....
N 12 14 16
g++ 0.442s 2.343s 13.743s
JVM 0.185s 0.339s 1.281s (-server -Xms64m) JET 0.284s
0.506s 1.528s

Weird, very weird. According to their site, g++ is 1.6 times faster than
JVM but I don't get the same result using the same source that they have
on their site. With n=13, g++ is 7.5 times slower. huh? Why? In any
case, JVM is faster than JET in this benchmark anyway.

There's a hidden factor here: you're not just benchmarking languages and
compilers. You're comparing operating systems as well and doing it with an
algorithm that is hammering memory management.

In this case you're comparing Gentoo Linux against an undeclared edition
of Windows. Linux, like all Unices, is pretty slick at memory management.
It has to be because its design requires it to be fast at spawning
processes and tidying up after they die. UNIX assumes that a lot of small
short life processes are likely to be involved in doing any significant
task while Windows tends to use a single, monolithic program to do the
same job. Things may have changed in the more recent Windows releases, but
in the past its memory management has been spectacularly bad: both slow
and leak-prone.

Binary tree programs tend to allocate small pieces of memory each time a
new node is added to the tree. If, as is likely, the C++ implementation
calls the OS each time it adds a node to the tree while the JVM only asks
the OS for large memory chunks which it internally slices into tree nodes,
then I'd expect the Java process to be a lot faster than the C++ under
Windows. Gentoo memory management is likely to have a similar efficiency
to the JVM, so the website's performance difference could easily be down
to just the JIT and GC overheads.

I strongly suspect that you're seeing the difference in memory management
speeds between Linux and Windows and that this is big enough to mask any
other performance differences between Java and C++.
--
martin@ | Martin Gregorie
gregorie. |
org | Zappa fan & glider pilot
Jun 27 '08 #9
On Apr 19, 8:27 pm, Razii <whatever1...@hotmail.comwrote:
Well, as I must find something new to do.http://razi2.blogspot.com/2008/04/sh...enchmarks-game...

The site at:http://shootout.alioth.debian.org/gp...est=all〈=all

has many computer languages performance on a same few dozen
benchmarks.

For some reason, the java compiled with Jet is not on the site. I
asked him to add Jet to the list, and he gave a really odd excuse
about "license" restrictions. There is nothing in Jet license that
restricts him from posting benchmark results (it's been done on many
web sites).
We don't have a JET license.

Excelsior JET non-commercial licensing is conditional - "Authors of
non-commercial Java software willing to exchange links and/or
otherwise promore Excelsior JET are welcome to apply for a free
license."
http://www.excelsior-usa.com/jetpricing.html#non-comm

The fact that others break Excelsior JET license conditions is not a
justification for us to break those license conditions.
Later he gave even a more weird excuse that they will have
to link to the Jet web page if they include Jet results. Huh? Why
would that be a problem? They already link to every compiler used in
the shootout. The number one ranked compiler on their list is Intel
C++ compiler which is a commercial product (http://shootout.alioth.debian.org/gp...php?test=all&l...
). They link to Intel C++ compiler.

Well, since they refused to add what is commonly claimed (we will see)
to be the fastest java compiler, I will run g++ vs jet on my computer
(using the same code that they have and similar flags that they use
for g++). We can then estimate where Jet would rank on their
(incomplete) list .

What I am using:
gcc version 4.3.0 (GCC TDM-2 for MinGW)
Jet version: 6.4 betahttp://www.excelsior-usa.com/jetdlbeta.html

To record time, I downloaded Cygwin and used "time" command. The
output is directed to >/dev/null

Starting today:
binary-trees benchmark
(C++ version)http://shootout.alioth.debian.org/gp...t=binarytrees&...

(java version)http://shootout.alioth.debian.org/gp...t=binarytrees&...

g++ -pipe -O3 -fomit-frame-pointer -finline-functions binarytrees.cpp
-o binarytrees.exe -march=native

jc -inline+ binarytrees.class

Time in secs as N increases....
N 12 14 16
g++ 0.442s 2.343s 13.743s
JVM 0.185s 0.339s 1.281s (-server -Xms64m)
JET 0.284s 0.506s 1.528s

Weird, very weird. According to their site, g++ is 1.6 times faster
than JVM but I don't get the same result using the same source that
they have on their site. With n=13, g++ is 7.5 times slower. huh?
Why? In any case, JVM is faster than JET in this benchmark anyway.

Different hardware.

Cygwin not Linux

Different gcc.

Windows JVM or Linux JVM?

Next benchmark: fannkuch
coming next
(.........)
Jun 27 '08 #10
ldv
On Apr 20, 11:12 pm, Isaac Gouy <igo...@yahoo.comwrote:
We don't have a JET license.

Excelsior JET non-commercial licensing is conditional
Did you ask Excelsior for a free license? If yes, did they refuse?

I know for sure they are used to provide free licenses under
conditions other than those you quoted, e.g. to beta testers, and,
guess to whom, to people conducting Java performance studies.

I also recall that, say, the IBM JDK license used to specifically
prohibit publication of benchmark results... Have you reviewed the
licenses of all products you are comparing?

LDV
Jun 27 '08 #11
On Apr 20, 9:36 am, "l...@mail.com" <l...@mail.comwrote:
On Apr 20, 11:12 pm, Isaac Gouy <igo...@yahoo.comwrote:
We don't have a JET license.
Excelsior JET non-commercial licensing is conditional

Did you ask Excelsior for a free license? If yes, did they refuse?
I haven't asked, I'm not interested in promoting Excelsior JET as a
condition of using it non-commercially.

I know for sure they are used to provide free licenses under
conditions other than those you quoted, e.g. to beta testers, and,
guess to whom, to people conducting Java performance studies.

I also recall that, say, the IBM JDK license used to specifically
prohibit publication of benchmark results... Have you reviewed the
licenses of all products you are comparing?
We certainly try to keep up with the changing license conditions. I
removed the Intel compiler measurements when it seemed that the
license forbade publication of benchmark measurements - and now it's
clear that the license for the current non-commercial versions does
not forbid publication of benchmark measurements we are showing the
Intel compilers once more.

Incidentally 4 of the Intel C++ programs don't seem to have the
correct compiler options

http://shootout.alioth.debian.org/gp...cpp&lang2=icpp

I'd welcome advice on how to fix them.

Jun 27 '08 #12
"Razii" <wh**********@hotmail.comwrote in message
news:12********************************@4ax.com...
Well, as I must find something new to do..
http://razi2.blogspot.com/2008/04/sh...arks-game.html

The site at

http://shootout.alioth.debian.org/gp...t=all&lang=all
[...]

Try this one Razii

http://pastebin.com/m5a125c7b
Alls this does is attach special allocator's (region and slab) to the
following test:

http://shootout.alioth.debian.org/gp...&lang=gpp&id=2
It performs MUCH better. It should beat Java.

WARNING*

The allocators are not general purpose, there were designed for this test.

Jun 27 '08 #13
On Sun, 20 Apr 2008 09:36:09 -0700 (PDT), "ld*@mail.com"
<ld*@mail.comwrote:
>I also recall that, say, the IBM JDK license used to specifically
prohibit publication of benchmark results... Have you reviewed the
licenses of all products you are comparing?
The excuse is bogus. The part that he is quoting only applies to
distributing executables compiled with Jet. In shootout web page, they
are not distributing compiled binaries. They are only posting
benchmark numbers. There is nothing in the license that he quoted that
says you can't quote benchmark results by testing the trial version.
Jun 27 '08 #14
On Sun, 20 Apr 2008 11:49:37 -0700, "Chris Thomasson"
<cr*****@comcast.netwrote:
>Try this one Razii

http://pastebin.com/m5a125c7b
Alls this does is attach special allocator's (region and slab) to the
following test:
No, it doesn't beat java version because it crashes with n 14. In
any case, in this thread the topic is the incomplete shootout site.

Jun 27 '08 #15

"Razii" <wh**********@hotmail.comwrote in message
news:v8********************************@4ax.com...
On Sun, 20 Apr 2008 11:49:37 -0700, "Chris Thomasson"
<cr*****@comcast.netwrote:
>>Try this one Razii

http://pastebin.com/m5a125c7b
Alls this does is attach special allocator's (region and slab) to the
following test:

No, it doesn't beat java version because it crashes with n 14.
Yup. Oh well. The slab allocator does not work here.

In
any case, in this thread the topic is the incomplete shootout site.
Jun 27 '08 #16
On Sat, 19 Apr 2008 22:27:02 -0500, Razii <wh**********@hotmail.com>
wrote, quoted or indirectly quoted someone who said :
>For some reason, the java compiled with Jet is not on the site. I
asked him to add Jet to the list, and he gave a really odd excuse
about "license" restrictions. There is nothing in Jet license that
restricts him from posting benchmark results (it's been done on many
web sites). Later he gave even a more weird excuse that they will have
to link to the Jet web page if they include Jet results. Huh? Why
would that be a problem? They already link to every compiler used in
the shootout. The number one ranked compiler on their list is Intel
C++ compiler which is a commercial product (
http://shootout.alioth.debian.org/gp...=all&lang=icpp
). They link to Intel C++ compiler.
you can download the trial version of the Jet compiler which generates
code just like the production one and run the benchmarks yourself.
see http://mindprod.com/jgloss/jet.html
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Jun 27 '08 #17
"Razii" <wh**********@hotmail.comwrote in message
news:v8********************************@4ax.com...
On Sun, 20 Apr 2008 11:49:37 -0700, "Chris Thomasson"
<cr*****@comcast.netwrote:
>>Try this one Razii

http://pastebin.com/m5a125c7b
Alls this does is attach special allocator's (region and slab) to the
following test:

No, it doesn't beat java version because it crashes with n 14. In
any case, in this thread the topic is the incomplete shootout site.
Sorry about that non-sense Razii. Perhaps I can try again when I get some
free time.

Jun 27 '08 #18
On Sun, 20 Apr 2008 12:57:30 +0200, "Bo Persson" <bo*@gmb.dkwrote:
>Must be a bad benchmark, as Java 6 -server is at 16th place!
There is another problem with the shootout site. The site forces the
java version to either use only -server or use only -Xms64m flag.

C++ version uses different flags with different benchmarks. There are
not zillion of c++ benchmarks, one with only -O2 flag and one with O3
flag for example. However, the shootout site does this with java. That
sounds pretty bogus. Why restrict java to use only -server or only
-Xms64? Only one java benchmark that uses different flags (depending
on what flags produce best result with a particular benchmark) should
be posted (just as C++ benchmark does).

In this benchmark, combining -Xms64m and -server produce best result

when n = 16

4.478s (when only -server flag is used)
1.286s ((when both -server flag and -Xms64 is combined).

Already 4 times faster

Jun 27 '08 #19
On Sun, 20 Apr 2008 15:40:06 -0500, Razii <wh**********@hotmail.com>
wrote:
>In this benchmark, combining -Xms64m and -server produce best result

when n = 16

4.478s (when only -server flag is used)
1.286s ((when both -server flag and -Xms64 is combined).
In this benchmark (since it's dependent on GC performance), adding the
flag -XX:NewRatio=1 can further improve the result. This is not so
obvious with n = 16 but with n = 18, you can see the difference.

time java -server binarytrees 18 (only using -server flag)

Time: 11.316s

$ time java -server -Xms64m binarytrees 18 (both -Xms64m and -server)

Time: 0m9.162s

$ time java -server -Xms64m -XX:NewRatio=1 binarytrees 18 (NewRatio 1)
Time: 0m6.105s

Moreover, with n = 18 increasing the total access to memory even
further improves the result with this benchmark

$ time java -server -Xms128m -Xmx128m -XX:NewRatio=1 binarytrees 18

Time: 0m4.575s

Jun 27 '08 #20
On Sun, 20 Apr 2008 16:24:31 -0500, Razii <wh**********@hotmail.com>
wrote:
>
time java -server binarytrees 18 (only using -server flag)

Time: 11.316s

$ time java -server -Xms64m binarytrees 18 (both -Xms64m and -server)

Time: 0m9.162s

$ time java -server -Xms64m -XX:NewRatio=1 binarytrees 18 (NewRatio 1)
Time: 0m6.105s

Moreover, with n = 18 increasing the total access to memory even
further improves the result with this benchmark

$ time java -server -Xms128m -Xmx128m -XX:NewRatio=1 binarytrees 18

Time: 0m4.575s
there is also the flag

-XX:+AggressiveHeap

This option instructs the JVM to push memory use to the limit: some
GC activity is done in parallel (no Xmx or Xms flags with this option)

$ time java -server -XX:+AggressiveHeap binarytrees 18

0m4.640s


Jun 27 '08 #21
On Sun, 20 Apr 2008 10:31:28 -0700 (PDT), Isaac Gouy
<ig****@yahoo.comwrote:
>Incidentally 4 of the Intel C++ programs don't seem to have the
correct compiler options

http://shootout.alioth.debian.org/gp...cpp&lang2=icpp

I'd welcome advice on how to fix them.
Well, that's interesting. The C++ versions are allowed to use best
compiler options but java version must either use -server or -client
or -Xms64. Why don't you use the best VM options depending on the
benchmark that gives the best result?

Jun 27 '08 #22
"Chris Thomasson" <cr*****@comcast.netwrote in message
news:Le******************************@comcast.com. ..
"Razii" <wh**********@hotmail.comwrote in message
news:12********************************@4ax.com...
>Well, as I must find something new to do..
http://razi2.blogspot.com/2008/04/sh...arks-game.html

The site at

http://shootout.alioth.debian.org/gp...t=all&lang=all
[...]

Try this one Razii
[...]

Try this please:

Source-Code
__________________________________________________ _____
C++: http://pastebin.com/m6db54f31
Java: http://pastebin.com/m15714c90


Build Flags
__________________________________________________ _____
C++: /O2 /Ob2 /Oi /Ot /Oy /GL /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D
"_UNICODE" /D "UNICODE" /FD /EHsc /MT /Fo"Release\\" /Fd"Release\vc80.pdb"
/W3 /nologo /c /Wp64 /Zi /Gr /TP /errorReport:prompt

Java: -server -Xms64m


Test Results
P4 3.06ghz 512mb
__________________________________________________ _____
C++: N = 12 / Time: 47 ms
Java: N = 12 / Time: 94 ms
-------------------------------------------------------
C++: N = 13 / Time: 79 ms
Java: N = 13 / Time: 140 ms
-------------------------------------------------------
C++: N = 14 / Time: 172 ms
Java: N = 14 / Time: 250 ms
-------------------------------------------------------
C++: N = 15 / Time: 344 ms
Java: N = 15 / Time: 485 ms
-------------------------------------------------------
C++: N = 16 / Time: 828 ms
Java: N = 16 / Time: 1156 ms
-------------------------------------------------------
C++: N = 17 / Time: 1954 ms
Java: N = 17 / Time: 2359 ms
-------------------------------------------------------
C++: N = 18 / Time: 4485 ms
Java: N = 18 / Time: 7468 ms
-------------------------------------------------------
C++: N = 19 / Time: 11609 ms
Java: N = 19 / Time: 15047 ms
-------------------------------------------------------
C++: N = 20 / Time: 58891 ms
Java: N = 20 / CRASHED! OutOfMemoryError: Java Heap space
-------------------------------------------------------
C++: N = 21 / BOOOOOOM!
Java: N = 21 / CRASHED! OutOfMemoryError: Java Heap space
-------------------------------------------------------

Any thoughts?

Jun 27 '08 #23
On Sun, 20 Apr 2008 21:09:24 -0700, "Chris Thomasson"
<cr*****@comcast.netwrote:
>C++: N = 20 / Time: 58891 ms
Java: N = 20 / CRASHED! OutOfMemoryError: Java Heap space
Well, then increase the heap space. The default heap space is 64m
Jun 27 '08 #24
ldv
On Apr 21, 12:31 am, Isaac Gouy <igo...@yahoo.comwrote:
On Apr 20, 9:36 am, "l...@mail.com" <l...@mail.comwrote:
On Apr 20, 11:12 pm, Isaac Gouy <igo...@yahoo.comwrote:
We don't have aJETlicense.
>ExcelsiorJETnon-commercial licensing is conditional
Did you askExcelsiorfor a free license? If yes, did they refuse?

I haven't asked, I'm not interested in promotingExcelsiorJETas a
condition of using it non-commercially.
I seem to have failed to explain, sorry. I am sure you can get a free
Excelsior JET license without any such obligations. Just email them a
link to your site and ask if they want their product included in your
studies.

LDV
Jun 27 '08 #25
On Sun, 20 Apr 2008 23:44:26 -0700 (PDT), "ld*@mail.com"
<ld*@mail.comwrote:
>I seem to have failed to explain, sorry. I am sure you can get a free
Excelsior JET license without any such obligations. Just email them a
link to your site and ask if they want their product included in your
studies.
I emailed them with the same question. Their response was....

------- begin quote ---
>Can Excelsior JET 6.4 beta 2 be used with benchmak on the following
We would be happy to provide a full Excelsior JET 6.0 Pro license to
people behind that Web site if they ask us. We would also send them
future updates for as long as they are willing to include our product
in their measurements.

Including a beta version is also OK, as long as its results are
clearly marked as such. We have made a number of application
performance improvements in version 6.4, but not all of them are fully
enabled in the current beta.

Finally, I see they also have Oberon-2 listed, so they may also
include our XDS Modula-2/Oberon-2 compilers
(http://www.excelsior-usa.com/xds.html) XDS is freeware.

---- end quote-----

Obviously there is no problem with including Jet in the shootout.

Jun 27 '08 #26

"Razii" <wh**********@hotmail.comwrote in message
news:ti********************************@4ax.com...
On Sun, 20 Apr 2008 21:09:24 -0700, "Chris Thomasson"
<cr*****@comcast.netwrote:
>>C++: N = 20 / Time: 58891 ms
Java: N = 20 / CRASHED! OutOfMemoryError: Java Heap space

Well, then increase the heap space. The default heap space is 64m

Please try this new C++ version:

http://pastebin.com/m7aca890a
Here is the new times:
Java: -server -Xms512m -Xmx512m -XX:NewRatio=1
__________________________________________________ _____
C++: N = 12 / Time: 46 ms
Java: N = 12 / Time: 94 ms
-------------------------------------------------------
C++: N = 13 / Time: 109 ms
Java: N = 13 / Time: 149 ms
-------------------------------------------------------
C++: N = 14 / Time: 281 ms
Java: N = 14 / Time: 297 ms
-------------------------------------------------------
C++: N = 15 / Time: 531 ms
Java: N = 15 / Time: 547 ms
-------------------------------------------------------
C++: N = 16 / Time: 1265 ms
Java: N = 16 / Time: 1078 ms
-------------------------------------------------------
C++: N = 17 / Time: 2140 ms
Java: N = 17 / Time: 1875 ms
-------------------------------------------------------
C++: N = 18 / Time: 4650 ms
Java: N = 18 / Time: 4265 ms
-------------------------------------------------------
C++: N = 19 / Time: 9450 ms
Java: N = 19 / Time: 9109 ms
-------------------------------------------------------
C++: N = 20 / Time: 21671 ms
Java: N = 20 / Time: 23819 ms
-------------------------------------------------------
C++: N = 21 / Time: 42992 ms
Java: N = 21 / Time: 41187 ms
-------------------------------------------------------

Thanks. BTW, this will improve the shutdown time.

Jun 27 '08 #27
I think you missed the constructor in file1.h, and I guess you want it
public like this:

namespace A
{
class Bar
{
void foo();

public:
Bar();
};
}

[]
Mello

On Apr 15, 10:59 am, tech <naumansulai...@googlemail.comwrote:
Hi, thanks now i have another problem though

In file1.h

namespace A
{
class Bar
{
void foo();

};

}

file1.cpp

namespace A
{
Bar::Bar()
{
}

}

In file2.h
namespace A {
class Bar;

}

class User
{

A::Bar* pBar;

};

In file2.cpp

#include "file2.h"
#include "file1.h"

User::func()
{

pBar = new A::Bar;
pBar->foo();

}

Now i have compiler error saying Bar has no default constructor
Jun 27 '08 #28
On Apr 20, 1:40 pm, Razii <whatever1...@hotmail.comwrote:
On Sun, 20 Apr 2008 12:57:30 +0200, "Bo Persson" <b...@gmb.dkwrote:
Must be a bad benchmark, as Java 6 -server is at 16th place!

There is another problem with theshootoutsite. The site forces the
java version to either use only -server or use only -Xms64m flag.

That's not true! Stop making stuff up!

The JVM flags are clearly shown on the webpages.
C++ version uses different flags with different benchmarks. There are
not zillion of c++ benchmarks, one with only -O2 flag and one with O3
flag for example. However, theshootoutsite does this with java. That
sounds pretty bogus. Why restrict java to use only -server or only
-Xms64? Only one java benchmark that uses different flags (depending
on what flags produce best result with a particular benchmark) should
be posted (just as C++ benchmark does).

In this benchmark, combining -Xms64m and -server produce best result

when n = 16

4.478s (when only -server flag is used)
1.286s ((when both -server flag and -Xms64 is combined).

Already 4 times faster
Jun 27 '08 #29
On Mon, 21 Apr 2008 08:25:02 -0700 (PDT), Isaac Gouy
<ig****@yahoo.comwrote:

>That's not true! Stop making stuff up!

The JVM flags are clearly shown on the webpages.
It's true. The only flag I see are -server -Xbatch -classpath

why not use -server -Xms64m together? Why not use -client if that
helps in a particular benchmark? why have two and three versions, one
only for -server and other only for -client and the other only for
-Xms64m? There are many other flags that can help in cases where a lot
GC activity is included.
Jun 27 '08 #30
On Apr 21, 9:07 am, Razii <whatever1...@hotmail.comwrote:
On Mon, 21 Apr 2008 08:25:02 -0700 (PDT), Isaac Gouy

<igo...@yahoo.comwrote:
That's not true! Stop making stuff up!
The JVM flags are clearly shown on the webpages.

It's true. The only flag I see are -server -Xbatch -classpath

why not use -server -Xms64m together? Why not use -client if that
helps in a particular benchmark? why have two and three versions, one
only for -server and other only for -client and the other only for
-Xms64m? There are many other flags that can help in cases where a lot
GC activity is included.

That's not true! Stop making stuff up!

The JVM flags are clearly shown on the webpages.

http://shootout.alioth.debian.org/gp...avaxx&id=2#log

Jun 27 '08 #31
On Mon, 21 Apr 2008 12:13:28 -0700 (PDT), Isaac Gouy
<ig****@yahoo.comwrote:
>That's not true! Stop making stuff up!

The JVM flags are clearly shown on the webpages.

http://shootout.alioth.debian.org/gp...avaxx&id=2#log
The site so confusing.

Why is -Xms64m flag not added here?

http://shootout.alioth.debian.org/gp...lang=java&id=2

Why is -Xms64m -server not shown in the ranking on the page?

http://shootout.alioth.debian.org/gp...t=all&lang=all

Why is it not shown on ranking on this page?

http://shootout.alioth.debian.org/gp...trees&lang=all

In any case, there should be one java result that uses the best JVM
options/flags depending on the benchmark.

Bo Persson claimed that java version is ranked 16 but with -server and
Xms64m, it's ranked number 1 in this benchmark. Obviously he too
missed this link on your site given the confused nature of the website
with tons of different flag version used for java instead of one
version with best flags (including -client) depending on the
situation.

Jun 27 '08 #32
On Apr 21, 5:24 pm, Razii <whatever1...@hotmail.comwrote:
On Mon, 21 Apr 2008 12:13:28 -0700 (PDT), Isaac Gouy

<igo...@yahoo.comwrote:
That's not true! Stop making stuff up!
The JVM flags are clearly shown on the webpages.
http://shootout.alioth.debian.org/gp...php?test=binar....

The site so confusing.

Why have you not apologized for repeatedly posting false information,
even after you had been told it was false?
Why is -Xms64m flag not added here?
http://shootout.alioth.debian.org/gp...t=binarytrees&...

Why is -Xms64m -server not shown in the ranking on the page?

http://shootout.alioth.debian.org/gp...est=all〈=all

Why is it not shown on ranking on this page?

http://shootout.alioth.debian.org/gp...t=binarytrees&...

In any case, there should be one java result that uses the best JVM
options/flags depending on the benchmark.

Bo Persson claimed that java version is ranked 16 but with -server and
Xms64m, it's ranked number 1 in this benchmark. Obviously he too
missed this link on your site given the confused nature of the website
with tons of different flag version used for java instead of one
version with best flags (including -client) depending on the
situation.

Bo Persson followed the Java URL you posted on Apr 19, 8:24pm & 8:27pm

http://groups.google.com/group/comp....b91dfa158e6ac6

You didn't post the Java -Xms64m URL even though you posted the Intel C
++ URL for the website that shows Java -Xms64m

Why didn't you post the Java -Xms64m URL?
Why are you still not posting URLs that show these Java measurements?

http://shootout.alioth.debian.org/gp...t=all&lang=all

Jun 27 '08 #33
On Tue, 22 Apr 2008 09:52:39 -0700 (PDT), Isaac Gouy
<ig****@yahoo.comwrote:
>Why have you not apologized for repeatedly posting false information,
even after you had been told it was false?
No, it was not false. There is no -Xms64m and -server linked from the
main page.

http://shootout.alioth.debian.org/gp...t=all&lang=all

Anyone can go there and check it. You dug up a link but it's not on
the main page. Also,-Xms64m "version" always uses -server flag. Why?
Why it must always use -server flag if the client flag does better in
some cases?
>Bo Persson followed the Java URL you posted on Apr 19, 8:24pm & 8:27pm
Or perhaps Bo Person went to the main page

http://shootout.alioth.debian.org/gp...t=all&lang=all

and found the list doesn't have -Xms64m and -server. Anyone can go
there and check it.
Jun 27 '08 #34
Razii wrote:
On Tue, 22 Apr 2008 09:52:39 -0700 (PDT), Isaac Gouy
<ig****@yahoo.comwrote:
>Why have you not apologized for repeatedly posting false
information, even after you had been told it was false?

No, it was not false. There is no -Xms64m and -server linked from
the main page.

http://shootout.alioth.debian.org/gp...t=all&lang=all

Anyone can go there and check it. You dug up a link but it's not on
the main page. Also,-Xms64m "version" always uses -server flag. Why?
Why it must always use -server flag if the client flag does better
in some cases?
>Bo Persson followed the Java URL you posted on Apr 19, 8:24pm &
8:27pm

Or perhaps Bo Person went to the main page

http://shootout.alioth.debian.org/gp...t=all&lang=all

and found the list doesn't have -Xms64m and -server. Anyone can go
there and check it.
I actually went to the main page, and chose binary-tree in benchmark
selector at the top of the page. That brought me here:

http://shootout.alioth.debian.org/gp...trees&lang=all

Found it very "interesting" with a benchmark where ML, Haskell,
Erlang, and Lisp is at the top, shortly followed by Eiffel and Basic.
Must have taken a lot of effort to invent that test! :-)
If you look in the "penalty box" at the bottom of the page, you will
of course find that g++ has the best result, but was disqualified for
chosing a faster memory allocation scheme. ROTFL!
Bo Persson
Jun 27 '08 #35
On Tue, 22 Apr 2008 22:56:43 +0200, "Bo Persson" <bo*@gmb.dkwrote:
>I actually went to the main page, and chose binary-tree in benchmark
selector at the top of the page. That brought me here:
Now he should stop blaming me for posting wrong link and apologize.
The main page doesn't have -Xms64m -server (#1 ranked in this
benchmark). In fact, the main page ranking only uses -server flag (and
not whatever flag that would be fastest in a particular benchmark). I
was correct after all.

The guy is weird, by the way. He also has strange excuses for not
including Jet (even though many other commercial compilers are
included and links to the their commercial site posted).

Jun 27 '08 #36
On Apr 22, 11:49 am, Razii <whatever1...@hotmail.comwrote:
On Tue, 22 Apr 2008 09:52:39 -0700 (PDT), Isaac Gouy

<igo...@yahoo.comwrote:
Why have you not apologized for repeatedly posting false information,
even after you had been told it was false?

No, it was not false. There is no -Xms64m and -server linked from the
main page.

http://shootout.alioth.debian.org/gp...est=all〈=all

Anyone can go there and check it. You dug up a link but it's not on
the main page. Also,-Xms64m "version" always uses -server flag. Why?
Why it must always use -server flag if the client flag does better in
some cases?
Bo Persson followed the Java URL you posted on Apr 19, 8:24pm & 8:27pm

Or perhaps Bo Person went to the main page

http://shootout.alioth.debian.org/gp...est=all〈=all

and found the list doesn't have -Xms64m and -server. Anyone can go
there and check it.

Why are you posting false information that a page titled "Create your
own Ranking" is the main page?

The main page is titled "The Computer Language Benchmarks Game".

Why are you posting false information that "There is no -Xms64m and -
server linked from the main page"? "Anyone can go there and check it"
and find the link "Java 6 -Xms64m initial java server heap size 64m"

http://shootout.alioth.debian.org/
Jun 27 '08 #37
On Apr 22, 1:56 pm, "Bo Persson" <b...@gmb.dkwrote:
Razii wrote:
On Tue, 22 Apr 2008 09:52:39 -0700 (PDT), Isaac Gouy
<igo...@yahoo.comwrote:
Why have you not apologized for repeatedly posting false
information, even after you had been told it was false?
No, it was not false. There is no -Xms64m and -server linked from
the main page.
http://shootout.alioth.debian.org/gp...est=all〈=all
Anyone can go there and check it. You dug up a link but it's not on
the main page. Also,-Xms64m "version" always uses -server flag. Why?
Why it must always use -server flag if the client flag does better
in some cases?
Bo Persson followed the Java URL you posted on Apr 19, 8:24pm &
8:27pm
Or perhaps Bo Person went to the main page
http://shootout.alioth.debian.org/gp...est=all〈=all
and found the list doesn't have -Xms64m and -server. Anyone can go
there and check it.

I actually went to the main page, and chose binary-tree in benchmark
selector at the top of the page.

There is no benchmark selector on the main page

http://shootout.alioth.debian.org/

That brought me here:

http://shootout.alioth.debian.org/gp...t=binarytrees&...

Found it very "interesting" with a benchmark where ML, Haskell,
Erlang, and Lisp is at the top, shortly followed by Eiffel and Basic.
Must have taken a lot of effort to invent that test! :-)

If you look in the "penalty box" at the bottom of the page, you will
of course find that g++ has the best result, but was disqualified for
chosing a faster memory allocation scheme. ROTFL!

Bo Persson
It's always faster to run just the lap in the stadium rather than the
whole marathon.
Jun 27 '08 #38
On Apr 22, 2:15 pm, Razii <whatever1...@hotmail.comwrote:
On Tue, 22 Apr 2008 22:56:43 +0200, "Bo Persson" <b...@gmb.dkwrote:
I actually went to the main page, and chose binary-tree in benchmark
selector at the top of the page. That brought me here:

Now he should stop blaming me for posting wrong link and apologize.
The main page doesn't have -Xms64m -server (#1 ranked in this
benchmark). In fact, the main page ranking only uses -server flag (and
not whatever flag that would be fastest in a particular benchmark). I
was correct after all.
The main page is titled "The Computer Language Benchmarks Game".

Why are you posting false information that "There is no -Xms64m and -
server linked from the main page"? "Anyone can go there and check it"
and find the link "Java 6 -Xms64m initial java server heap size 64m"

http://shootout.alioth.debian.org/

Stop posting false information!

>
The guy is weird, by the way. He also has strange excuses for not
including Jet (even though many other commercial compilers are
included and links to the their commercial site posted).
Some compilers are included which have freely available non-commercial
licenses (the Jet non-commercial license is not freely available -
it's restricted).
Jun 27 '08 #39
On Wed, 23 Apr 2008 07:49:07 -0700 (PDT), Isaac Gouy
<ig****@yahoo.comwrote:
>There is no benchmark selector on the main page

http://shootout.alioth.debian.org/
There is. If you click on "Show" tab, it takes you to this page.

http://shootout.alioth.debian.org/gp...t=all&lang=all

There is no -server -Xms64m on this ranking. That's how Bo apparently
found the link. You should apologize by claiming Bo followed my link.
He didn't. Also, you didn't explain why -Xms64m must always use
-server? Why not -client sometimes if that helps in some cases? Or
other flags?
>Some compilers are included which have freely available non-commercial
licenses (the Jet non-commercial license is not freely available -
it's restricted).
There is no restriction on testing and posting the benchmark. You are
lying. The restriction is on distributing compiled executable, which
is irrelevant here.

Jun 27 '08 #40
On Wed, 23 Apr 2008 07:49:07 -0700 (PDT), Isaac Gouy
<ig****@yahoo.comwrote:
>There is no benchmark selector on the main page

http://shootout.alioth.debian.org/

There is. If you click on "Show" tab, it takes you to this page.

http://shootout.alioth.debian.org/gp...t=all&lang=all

There is no -server -Xms64m on this ranking. That's how Bo apparently
found the link. You should apologize by claiming Bo followed my link.
He didn't. Also, you didn't explain why -Xms64m must always use
-server? Why not -client sometimes if that helps in some cases? Or
other flags?

Jun 27 '08 #41
On Wed, 23 Apr 2008 07:41:44 -0700 (PDT), Isaac Gouy
<ig****@yahoo.comwrote:
>Why are you posting false information that a page titled "Create your
own Ranking" is the main page?
It's clear by now that you and your site has zero credibility. It's a
scam. I won't waste any more time on you after this post.

To summarize, anyone can go to the main site

http://shootout.alioth.debian.org/

where there is no ranking, no numbers, nothing. If you click on "show"
tab, that takes you to this page

http://shootout.alioth.debian.org/gp...t=all&lang=all

that does have ranking, but there is no -Xms64m. Also, why -Xms64m
must always use -server flag and vice versa? This guy failed to answer
that. Even Bo Person told him that this is how he found the 16th place
ranking, but this idiot, instead of admitting the obvious, keeps
spining and twisting.

I am done with this fool and will continue posting the rest of the
results.
Jun 27 '08 #42
On Apr 23, 1:38 pm, Razii <whatever1...@hotmail.comwrote:
On Wed, 23 Apr 2008 07:49:07 -0700 (PDT), Isaac Gouy

<igo...@yahoo.comwrote:
There is no benchmark selector on the main page
http://shootout.alioth.debian.org/

There is. If you click on "Show" tab, it takes you to this page.

http://shootout.alioth.debian.org/gp...est=all〈=all

There is no -server -Xms64m on this ranking. That's how Bo apparently
found the link. You should apologize by claiming Bo followed my link.
He didn't. Also, you didn't explain why -Xms64m must always use
-server? Why not -client sometimes if that helps in some cases? Or
other flags?
Bo wrote: "I actually went to the main page, and chose binary-tree in
benchmark selector at the top of the page. That brought me here...".

http://groups.google.com/group/comp....2a2ac332ddd04b

As you just discovered - Bo could not have chosen "binary-tree in
benchmark selector at the top of the page".

There is no "binary-tree in benchmark selector at the top of the
page".

There's a button hard-coded to an entirely different webpage!
Jun 27 '08 #43
On Apr 24, 2:28 am, Razii <whatever1...@hotmail.comwrote:
On Wed, 23 Apr 2008 07:41:44 -0700 (PDT), Isaac Gouy

<igo...@yahoo.comwrote:
Why are you posting false information that a page titled "Create your
own Ranking" is the main page?

It's clear by now that you and your site has zero credibility. It's a
scam. I won't waste any more time on you after this post.

To summarize, anyone can go to the main site

http://shootout.alioth.debian.org/

where there is no ranking, no numbers, nothing. If you click on "show"
tab, that takes you to this page

http://shootout.alioth.debian.org/gp...est=all〈=all

that does have ranking, but there is no -Xms64m. Also, why -Xms64m
must always use -server flag and vice versa? This guy failed to answer
that. Even Bo Person told him that this is how he found the 16th place
ranking, but this idiot, instead of admitting the obvious, keeps
spining and twisting.

I am done with this fool and will continue posting the rest of the
results

To summarize, anyone can go to the main site

http://shootout.alioth.debian.org/

where there's a "Programming language measurements A to Z" link list
which includes

Java 6 -Xms64m initial java server heap size 64m
Jun 27 '08 #44
Isaac Gouy wrote:
On Apr 23, 1:38 pm, Razii <whatever1...@hotmail.comwrote:
>On Wed, 23 Apr 2008 07:49:07 -0700 (PDT), Isaac Gouy

<igo...@yahoo.comwrote:
>>There is no benchmark selector on the main page
>>http://shootout.alioth.debian.org/

There is. If you click on "Show" tab, it takes you to this page.

http://shootout.alioth.debian.org/gp...?test=all?=all

There is no -server -Xms64m on this ranking. That's how Bo
apparently found the link. You should apologize by claiming Bo
followed my link. He didn't. Also, you didn't explain why -Xms64m
must always use -server? Why not -client sometimes if that helps
in some cases? Or other flags?

Bo wrote: "I actually went to the main page, and chose binary-tree
in benchmark selector at the top of the page. That brought me
here...".

http://groups.google.com/group/comp....2a2ac332ddd04b

As you just discovered - Bo could not have chosen "binary-tree in
benchmark selector at the top of the page".

There is no "binary-tree in benchmark selector at the top of the
page".

There's a button hard-coded to an entirely different webpage!
Ok, so I started from there (following Razii's link).

I *could* have gone to the main page, pressed "show", and *then*
selected binary-tree. Big deal!
I now see that Java 6 -server is down to 17th place. :-)
Bo Persson
Jun 27 '08 #45
On Apr 25, 12:57 pm, "Bo Persson" <b...@gmb.dkwrote:
Isaac Gouy wrote:
On Apr 23, 1:38 pm, Razii <whatever1...@hotmail.comwrote:
On Wed, 23 Apr 2008 07:49:07 -0700 (PDT), Isaac Gouy
<igo...@yahoo.comwrote:
There is no benchmark selector on the main page
>>http://shootout.alioth.debian.org/
There is. If you click on "Show" tab, it takes you to this page.
>http://shootout.alioth.debian.org/gp...?test=all?=all
There is no -server -Xms64m on this ranking. That's how Bo
apparently found the link. You should apologize by claiming Bo
followed my link. He didn't. Also, you didn't explain why -Xms64m
must always use -server? Why not -client sometimes if that helps
in some cases? Or other flags?
Bo wrote: "I actually went to the main page, and chose binary-tree
in benchmark selector at the top of the page. That brought me
here...".
http://groups.google.com/group/comp....2a2ac332ddd04b
As you just discovered - Bo could not have chosen "binary-tree in
benchmark selector at the top of the page".
There is no "binary-tree in benchmark selector at the top of the
page".
There's a button hard-coded to an entirely different webpage!

Ok, so I started from there (following Razii's link).

I *could* have gone to the main page, pressed "show", and *then*
selected binary-tree. Big deal!

I now see that Java 6 -server is down to 17th place. :-)

Bo Persson


We don't use labels like 1st place, 2nd place, 3rd place on the
webpages because those labels don't say anything that's interesting.

We use labels that say how much slower the implementation is than the
fastest implementation.

Overall, the geometric mean of those ratios for the Java 6 -server
programs is 1.7 times larger than the geometric mean of those ratios
for the measured Intel C++ programs.
Jun 27 '08 #46
On Fri, 25 Apr 2008 21:57:45 +0200, "Bo Persson" <bo*@gmb.dkwrote:
>I *could* have gone to the main page, pressed "show"...
Exactly. And -Xms64m is not on that page.
>I now see that Java 6 -server is down to 17th place. :-)
The shootout site is bogus and should not be taken seriously. It
forces java version to use only one flag in all tests, regardless if
another flag would do better. The guy also posted bogus excuses why
Jet is not on the site.

Also, as someone pointed out, the newly added Lisaac numbers in
binarytrees are bogus too.
(left = NULL).if {
left := TREENODE.clone;
right := TREENODE.clone;
};

The above tests whether the node has a NULL left branch and only then
creates two new fresh nodes for the left and right branches. Lisaac
version does only a very small fraction of the allocations done by a
correct implementation of the benchmark.

Jun 27 '08 #47
On Sat, 19 Apr 2008 22:27:02 -0500, Razii <wh**********@hotmail.com>
wrote, quoted or indirectly quoted someone who said :
fastest java compiler,
By that do you mean?

1. fastest to compile a single class

2. fastest to compile some large group of classes.

3. generates the fastest byte code.

4. generates the fastest machine code
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Jun 27 '08 #48
On Mon, 28 Apr 2008 21:49:47 GMT, Roedy Green
<se*********@mindprod.com.invalidwrote:
>fastest java compiler,

By that do you mean?
It's claimed it generates the fastest machine code (compared to
HotSpot and GCJ), something that has not yet proven. I will finish the
rest of benchmarks from the bogus shootout site later.
Jun 27 '08 #49
On Apr 28, 1:33 pm, Razii <whatever1...@hotmail.comwrote:
On Fri, 25 Apr 2008 21:57:45 +0200, "Bo Persson" <b...@gmb.dkwrote:
I *could* have gone to the main page, pressed "show"...

Exactly. And -Xms64m is not on that page.

And -Xms64m is not shown
- on the FAQ page
- on any of the Debian : AMD™ Sempron™ pages
- on numerous other pages
And -Xms64m is shown on the main page

"Java 6 -Xint ubiquitous bytecode interpreter virtual machine
Java 6 -Xint Debian
Java 6 -Xms64m initial java server heap size 64m
Java GNU gcj optimizing ahead-of-time compiler
Java GNU gcj Debian
JavaScript JavaScriptCore WebKit-based ECMA scripting implementation
Debian"

http://shootout.alioth.debian.org/

And -Xms64m is shown on this "Create your own Ranking" page

"1.6 Fortran Intel
1.7 Eiffel SmartEiffel
1.7 Java 6 -Xms64m
1.8 Java 6 -server
1.8 OCaml 2.33"

http://shootout.alioth.debian.org/gp...t=all&lang=all
And -Xms64m is shown on numerous other pages.

I now see that Java 6 -server is down to 17th place. :-)

The shootout site is bogus and should not be taken seriously. It
forces java version to use only one flag in all tests, regardless if
another flag would do better. The guy also posted bogus excuses why
Jet is not on the site.

Also, as someone pointed out, the newly added Lisaac numbers in
binarytrees are bogus too.

(left = NULL).if {
left := TREENODE.clone;
right := TREENODE.clone;
};

The above tests whether the node has a NULL left branch and only then
creates two new fresh nodes for the left and right branches. Lisaac
version does only a very small fraction of the allocations done by a
correct implementation of the benchmark.
Jun 27 '08 #50

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Marcin Kalicinski | last post by:
Is the code below ill formed (because operator >> is defined in different namespace than class B)? It fails with VS 2005 Beta. I don't know if I should redesign my code or if I should find a...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
5
by: Alexis | last post by:
Hello, I have a set of classes I created from schema files using the xsd.exe tool. I'm using namespaces in the clases ( I had to because I have some classes with the same name but not the same...
0
by: richwangler | last post by:
This problem should be easily reproducable if anybody has the time. I need to build the following XML programatically and decided to use the XMLSerializer. I simplified the XML (myExample.xml)...
5
by: Mike Oliszewski | last post by:
Given the following c# code: namespace Company2 { public class SomeFunctions { public void FunctionA() { // Do Something. }
10
by: anders | last post by:
I have 2 external assemblies A1 and A2 that both define class X in the global namespace. I need to use both assemblies in my VB project but the names X are ambiguous. How can I get around this...
4
by: Kevin Newman | last post by:
The primary problem I've had with php is the lack of namespaces, which makes OOP very difficult to organize, since you end up with large number of classes cluttering up the same namespace - which...
30
by: Pep | last post by:
Is it best to include the code "using namespace std;" in the source or should each keyword in the std namespace be qualified by the namespace tag, such as std::cout << "using std namespace" <<...
3
by: George | last post by:
I am currently developing an xbrl validation software that takes an xml instance file and a lot of schemas(xsd files) and validates it against the xsd files. I am using Visual basic in visual...
7
by: Armin Zingler | last post by:
Hi all, I have a Form called "Main": Public Class Main Private Sub Button1_Click( _ ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.