Hello Jarrett,
On Tue, Jun 2, 2009 at 8:40 PM, Diwaker Gupta
diwa...@floatingsun.net wrote:
I've just started to play around with D, and I'm hoping someone can
clarify this. I wrote a very simple program that just allocates lots
of objects, in order to benchmark the garbage collector in D.
Robert Clipsham wrote:
After porting the D version to tango:
D: 6.282s (ldmd -O5 -inline -release -L-s -singleobj gctest.d)
C++: 4.435s (g++ -O5 gctest.d)
This is on a C2D 2.2Ghz, 2GB RAM, Linux x86-64. I don't have java
installed, so can't test that. Maybe if you're planning to use the GC a
Robert Clipsham wrote:
After reading TSalm's post, I reran the D version with the scope keyword
at line 16:
D (with scope): 1.098s
D: 6.282s
C++: 4.435s
It seems by using scope and tango you can easily compete with C++.
'scope' eliminates dynamic memory allocation. At this point you're
Recently when i try to compile something that imports std.math or
tango.math.Math i get the following error:
/home/mike/D/dmd2/phobos/std/math.d(1216): number is not representable
std/math.d line 1216:
[0x1.fa01712e8f0471ap-1064, 0x1.fa01712e8f0471ap-1, -1063],
This is with both dmd
What's the difference between:
D 1: 40.20 DMD
D 2: 21.83 DMD
D 2: 18.80 DMD, struct + scope
and:
D 1: 8.47 DMD
D 2: 7.41 DMD + scope
...?
Robert Fraser:
What's the difference between:
D 1: 40.20 DMD
D 2: 21.83 DMD
That's the standard code.
and:
D 1: 8.47 DMD
D 2: 7.41 DMD + scope
They are both with scope, on D1 and D2.
Sorry for my small omission.
Bye,
bearophile
On Wed, 03 Jun 2009 22:56:30 +0200, Mike Wey mike-...@example.com
wrote:
Recently when i try to compile something that imports std.math or
tango.math.Math i get the following error:
/home/mike/D/dmd2/phobos/std/math.d(1216): number is not representable
std/math.d line 1216:
bearophile Wrote:
I have tried the new JavaVM on Win, that optionally performs escape analysis,
and the results are nice:
Timings, N=100_000_000, Windows, seconds:
D 1: 40.20 DMD
D 2: 21.83 DMD
D 2: 18.80 DMD, struct + scope
C++: 18.06
D 1: 8.47 DMD
D 2: 7.41 DMD +
Sam Hu wrote:
bearophile Wrote:
I have tried the new JavaVM on Win, that optionally performs escape analysis,
and the results are nice:
Timings, N=100_000_000, Windows, seconds:
D 1: 40.20 DMD
D 2: 21.83 DMD
D 2: 18.80 DMD, struct + scope
C++: 18.06
D 1: 8.47 DMD
D 2: