Re: From a C++/JS benchmark

2011-08-03 Thread Marco Leise
Am 03.08.2011, 21:52 Uhr, schrieb David Nadlinger : On 8/3/11 9:48 PM, Adam D. Ruppe wrote: System: Windows XP, Core 2 Duo E6850 Is this Windows XP 32 bit or 64 bit? That will probably make a difference on the longs I'd expect. It doesn't, long is 32-bit wide on Windows x86_64 too (LLP64).

Re: DMD with older versions of Linux

2011-08-03 Thread Jacob Carlborg
On 2011-08-04 02:05, Adam Davis wrote: Dreamhost doesn't provide an updated glibc in my vps server. Is it possible to run dmd on somewhat outdated linux distributions? I tried running dmd from the distribution but got: ./dmd: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./dmd) T

Re: Fixing enum names in Phobos

2011-08-03 Thread Jacob Carlborg
On 2011-08-04 07:16, Jonathan M Davis wrote: So, does anyone actually have an opinion on this? Should we fix the names or not? One person has said that they're in favor of fixing the enum names, and pretty much everything else in this thread has been on what to do about renaming the ones which ar

Re: DMD with older versions of Linux

2011-08-03 Thread Walter Bright
On 8/3/2011 5:05 PM, Adam Davis wrote: If it's not possible to run the standard DMD package, could I build it from source using those versions? Sure. D doesn't have any dependency on the semantics of the newer glib.

Re: Fixing enum names in Phobos

2011-08-03 Thread Jonathan M Davis
On Sunday 31 July 2011 19:30:20 Jonathan M Davis wrote: > Okay. Per the current naming conventions in Phobos, enum values are supposed > to be camelcased just like any other variable. The enum _type_ is pascal > cased just like any other user-defined type, but the values are camelcased. > A number

Re: Object/document database

2011-08-03 Thread Vladimir Panteleev
On Wed, 03 Aug 2011 21:46:45 +0300, Jonathan Hanselman wrote: Can Orage be used as an object/document database? If not, are there any plans to add support to it. I can't find anything on the web about Orage, an object/document database. And also, is there anyone working on an object/doc

Re: From a C++/JS benchmark

2011-08-03 Thread bearophile
Trass3r: > C++ no SIMD: > Skinned vertices per second: 4242 > ... > D gdc: > Skinned vertices per second: 2345 Are you able and willing to show me the asm produced by gdc? There's a problem there. Bye, bearophile

Re: From a C++/JS benchmark

2011-08-03 Thread Trass3r
C++: Skinned vertices per second: 4866 C++ no SIMD: Skinned vertices per second: 4242 D dmd: Skinned vertices per second: 159046 D gdc: Skinned vertices per second: 2345 D ldc: Skinned vertices per second: 3791 ldc2 -O3 -release -enable-inlining dver.d

Re: From a C++/JS benchmark

2011-08-03 Thread Trass3r
C++: Skinned vertices per second: 4866 C++ no SIMD: Skinned vertices per second: 4242 D dmd: Skinned vertices per second: 159046 D gdc: Skinned vertices per second: 2345 Compilers: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) g++ -s -O3 -mfpmath=sse -ffast-math -march=nativ

Re: From a C++/JS benchmark

2011-08-03 Thread bearophile
Trass3r: > I'm afraid not. dmd's backend isn't good at floating point calculations. Studying a bit the asm it's not hard to find the cause, because this benchmark is quite pure (synthetic, despite I think it comes from real-world code). This is what G++ generates from the C++ code without intri

Re: DMD with older versions of Linux

2011-08-03 Thread Jonathan M Davis
> Dreamhost doesn't provide an updated glibc in my vps server. Is it possible > to run dmd on somewhat outdated linux distributions? > > I tried running dmd from the distribution but got: > > ./dmd: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./dmd) > > The instaled versions are:

Re: From a C++/JS benchmark

2011-08-03 Thread Trass3r
Looks like a spiteful joke... In other words: WTF?! JavaScript is about 10 times faster than D in floating point calculations!? Please, tell me that I'm mistaken. I'm afraid not. dmd's backend isn't good at floating point calculations.

Re: DMD with older versions of Linux

2011-08-03 Thread David Nadlinger
On 8/4/11 2:05 AM, Adam Davis wrote: If it's not possible to run the standard DMD package, could I build it from source using those versions? I don't know it off hand, but just try running »make -f posix.mak« in the src/ directory and you'll see (add »MODEL=64« for x86_64). David

DMD with older versions of Linux

2011-08-03 Thread Adam Davis
Dreamhost doesn't provide an updated glibc in my vps server. Is it possible to run dmd on somewhat outdated linux distributions? I tried running dmd from the distribution but got: ./dmd: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./dmd) The instaled versions are: $ ldd --versio

Re: What library functionality would you most like to see in D?

2011-08-03 Thread Andrej Mitrovic
This is interesting: http://openil.sourceforge.net/ In particular that news post from 2010. Apparently the author might consider changing the license if there's interest in it.

Re: From a C++/JS benchmark

2011-08-03 Thread bearophile
Denis Shelomovskij: > (tests from bearophile's message, C++ test is "skinning_test_no_simd.cpp"). For a more realistic test I suggest you to time the C++ version that uses the intrinsics too (only for float). > Looks like a spiteful joke... In other words: WTF?! JavaScript is about > 10 times

Re: From a C++/JS benchmark

2011-08-03 Thread Denis Shelomovskij
03.08.2011 22:48, Adam D. Ruppe пишет: System: Windows XP, Core 2 Duo E6850 Is this Windows XP 32 bit or 64 bit? That will probably make a difference on the longs I'd expect. I meant Windows XP 32 bit (5.1 (Build 2600: Service Pack 3)) (according to what is "Windows XP" in wikipedia)

Re: From a C++/JS benchmark

2011-08-03 Thread Adam D. Ruppe
> System: Windows XP, Core 2 Duo E6850 Is this Windows XP 32 bit or 64 bit? That will probably make a difference on the longs I'd expect.

Re: From a C++/JS benchmark

2011-08-03 Thread David Nadlinger
On 8/3/11 9:48 PM, Adam D. Ruppe wrote: System: Windows XP, Core 2 Duo E6850 Is this Windows XP 32 bit or 64 bit? That will probably make a difference on the longs I'd expect. It doesn't, long is 32-bit wide on Windows x86_64 too (LLP64). David

Re: From a C++/JS benchmark

2011-08-03 Thread Denis Shelomovskij
03.08.2011 22:15, Ziad Hatahet: I believe that "long" in this case is 32 bits in C++, and 64-bits in the remaining languages, hence the same result for int and long in C++. Try with "long long" maybe? :) -- Ziad 2011/8/3 Denis Shelomovskij mailto:verylonglogin@gmail.com>> 03.08.2011

Re: From a C++/JS benchmark

2011-08-03 Thread Ziad Hatahet
I believe that "long" in this case is 32 bits in C++, and 64-bits in the remaining languages, hence the same result for int and long in C++. Try with "long long" maybe? :) -- Ziad 2011/8/3 Denis Shelomovskij > 03.08.2011 18:20, bearophile: > > The benchmark info: >> http://chadaustin.me/2011

Re: From a C++/JS benchmark

2011-08-03 Thread Denis Shelomovskij
03.08.2011 18:20, bearophile: The benchmark info: http://chadaustin.me/2011/01/digging-into-javascript-performance/ The code, in C++, JS, Java, C#: https://github.com/chadaustin/Web-Benchmarks/ The C++/JS/Java code runs on a single core. D2 version translated from the C# version (the C++ versio

Object/document database

2011-08-03 Thread Jonathan Hanselman
I'm not sure this is the right place to post this. I apologize in advance. Can Orage be used as an object/document database? If not, are there any plans to add support to it. And also, is there anyone working on an object/document database for D or bindings to existing projects? Thank you.

Re: What does C++ do better than D? - StackOverflow.com

2011-08-03 Thread Jonathan M Davis
> Jonathan M Davis Wrote: > > There's a difference between a programming language which has reached an > > appropriate level of maturity that people can use it without fear of > > running into compiler bugs or issues with the spec and a language which > > is frozen. > > Maybe, they just enjoy runn

Re: What does C++ do better than D? - StackOverflow.com

2011-08-03 Thread Kagamin
Jonathan M Davis Wrote: > There's a difference between a programming language which has reached an > appropriate level of maturity that people can use it without fear of running > into compiler bugs or issues with the spec and a language which is frozen. Maybe, they just enjoy running into matu

Re: Lion-compatibilty emergency release, or put warning on download page?

2011-08-03 Thread Sean Kelly
On Aug 3, 2011, at 8:06 AM, David Nadlinger wrote: > As you might know, the current druntime release contains a GC bug which > causes hard to track down crashes due to premature garbage collection in > combination with the OS X Lion ASLR, which is enabled by default on all > systems now. The pr

Re: What library functionality would you most like to see in D?

2011-08-03 Thread Andrej Mitrovic
There's pdcurses which apparently works on Windows. It's public domain. I'm not sure if this is the one that supports ASCII escape codes though. And I haven't tested it. Home: http://pdcurses.sourceforge.net/ Binaries: http://gnuwin32.sourceforge.net/packages/pdcurses.htm

From a C++/JS benchmark

2011-08-03 Thread bearophile
The benchmark info: http://chadaustin.me/2011/01/digging-into-javascript-performance/ The code, in C++, JS, Java, C#: https://github.com/chadaustin/Web-Benchmarks/ The C++/JS/Java code runs on a single core. D2 version translated from the C# version (the C++ version uses struct inheritance!): ht

Lion-compatibilty emergency release, or put warning on download page?

2011-08-03 Thread David Nadlinger
As you might know, the current druntime release contains a GC bug which causes hard to track down crashes due to premature garbage collection in combination with the OS X Lion ASLR, which is enabled by default on all systems now. The problem is well understood, and a fix has already been merged

Re: What does C++ do better than D? - StackOverflow.com

2011-08-03 Thread Jonathan M Davis
On Wednesday 03 August 2011 04:52:51 Kagamin wrote: > Don Wrote: > > Completely agree. Right now, we don't *want* to attract anybody who > > expects a finished product. We shouldn't advertise as if we do. > > Well, there's not such thing as a finished product. Things either rock or > suck. If some

Re: std.path review: second update

2011-08-03 Thread Jonathan M Davis
On Wednesday 03 August 2011 08:35:10 Lars T. Kyllingstad wrote: > On Mon, 01 Aug 2011 18:18:39 -0400, Nick Sabalausky wrote: > > "Lars T. Kyllingstad" wrote in message > > news:j16pv5$id8$3...@digitalmars.com... > > > >> Folks, please state your preferences in terms of function names. I'll > >>

Re: What does C++ do better than D? - StackOverflow.com

2011-08-03 Thread Kagamin
Don Wrote: > Completely agree. Right now, we don't *want* to attract anybody who > expects a finished product. We shouldn't advertise as if we do. Well, there's not such thing as a finished product. Things either rock or suck. If something doesn't work, it sucks, but that's manageable with adve

Re: std.path review: second update

2011-08-03 Thread Lars T. Kyllingstad
On Mon, 01 Aug 2011 18:18:39 -0400, Nick Sabalausky wrote: > "Lars T. Kyllingstad" wrote in message > news:j16pv5$id8$3...@digitalmars.com... >> >> Folks, please state your preferences in terms of function names. I'll >> try to put personal bias aside and compose a naming scheme that is both >>

Re: What library functionality would you most like to see in D?

2011-08-03 Thread KennyTM~
On Aug 3, 11 13:53, Lutger Blijdestijn wrote: Jimmy Cao wrote: 2011/8/2 so On Tue, 02 Aug 2011 03:51:56 +0300, Brad Roberts< bra...@slice-2.puremagic.com> wrote: I don't think that any gui library belongs in phobos because there's essentially no agreement about what cross-platform librar