Re: Elliotte Rusty Harold's take on Java

2009-09-17 Thread Yigal Chripun
On 17/09/2009 06:43, Nick Sabalausky wrote: Justin Johanssonproc...@adam-dott-com.au wrote in message news:h8ruu1$1qp...@digitalmars.com... Being somewhat of a fan of Elliotte Rusty Harold, I drop in for a coffee read at his cafes from time to time. I think D people will enjoy this December

Re: Floating point rounding modes: we should restrict them slightly

2009-09-17 Thread Don
Rainer Deyke wrote: Don wrote: Ah. The important thing that makes this work is that the global FP state has a clearly defined default. (round-to-nearest, full precision, no floating point exceptions enabled). Part of the implicit contract of calling a 'memoisable pure' function is that the

Re: Elliotte Rusty Harold's take on Java

2009-09-17 Thread Jari-Matti Mäkelä
Nick Sabalausky wrote: Justin Johansson proc...@adam-dott-com.au wrote in message news:h8ruu1$1qp...@digitalmars.com... Being somewhat of a fan of Elliotte Rusty Harold, I drop in for a coffee read at his cafes from time to time. I think D people will enjoy this December 2008 article with

Re: Incremental compilation with DMD

2009-09-17 Thread Walter Bright
Tom S wrote: Personally I'm of the opinion that functions should be explicitly marked for CTFE, and this is just another reason for such. I'm using a patched DMD with added pragma(ctfe) which instructs the compiler not to run any codegen or generate debug info functions/aggregates marked as

Re: Incremental compilation with DMD

2009-09-17 Thread Walter Bright
Tom S wrote: When building my second largest project, DMD eats up about 1.2GB of memory and dies (even without -g). Luckily, xfBuild allows me to set the limit of modules to be compiled at a time, so when I cap it to 200, it compiled... but didn't link :( Somewhere in the process a library is

Noop language

2009-09-17 Thread bearophile
Google labs are thinking about another language that runs on the JavaVM, named Noop, A testable programming language: http://code.google.com/p/noop/ It has no subclassing, no primitives, and by default variables (references) are final not null. It uses properties by default. More details:

Re: Elliotte Rusty Harold's take on Java

2009-09-17 Thread downs
Nick Sabalausky wrote: Justin Johansson proc...@adam-dott-com.au wrote in message news:h8ruu1$1qp...@digitalmars.com... Being somewhat of a fan of Elliotte Rusty Harold, I drop in for a coffee read at his cafes from time to time. I think D people will enjoy this December 2008 article

Re: Type unions in D

2009-09-17 Thread bearophile
Justin Johansson: But what if xs contains no numbers i.e. xs = (), the empty list? What should max( xs) return in the way of a meaningful result short of throwing an exception? In both Python and my dlibs it throws an exception. An elegant solution to this problem is to specify the max

Re: Type unions in D

2009-09-17 Thread language_fan
Wed, 16 Sep 2009 12:41:06 +0200, Fawzi Mohamed thusly wrote: On 2009-09-16 02:40:02 +0200, Justin Johansson proc...@adam-dott-com.au said: A colleague of mine is suggesting that I really do take a closer look at D2 now but I'm not sure that I'm ready to go standing on the bleading bleading

Re: Type unions in D

2009-09-17 Thread Justin Johansson
bearophile Wrote: Justin Johansson: The important point in this solution is realizing a type system that treats a list of zero_or_one numbers, a list of zero numbers, a list of zero_or_more numbers, etc, as distinct types. I don't understand the correlation from this last part and what

Re: Elliotte Rusty Harold's take on Java

2009-09-17 Thread Justin Johansson
making primitives full objects is the right design and has nothing to do with bloat which just means the implementation sucks. consider: struct Integer(int bits, signed = true) {...} with specializations for 8, 16, 32, 64 Integer!(32) will have the same size as an int since structs

Re: Type unions in D

2009-09-17 Thread Daniel Keep
language_fan wrote: Wed, 16 Sep 2009 12:41:06 +0200, Fawzi Mohamed thusly wrote: On 2009-09-16 02:40:02 +0200, Justin Johansson proc...@adam-dott-com.au said: A colleague of mine is suggesting that I really do take a closer look at D2 now but I'm not sure that I'm ready to go standing

Re: Type unions in D

2009-09-17 Thread Andrei Alexandrescu
language_fan wrote: Wed, 16 Sep 2009 12:41:06 +0200, Fawzi Mohamed thusly wrote: On 2009-09-16 02:40:02 +0200, Justin Johansson proc...@adam-dott-com.au said: A colleague of mine is suggesting that I really do take a closer look at D2 now but I'm not sure that I'm ready to go standing on

Re: Type unions in D

2009-09-17 Thread Andrei Alexandrescu
Daniel Keep wrote: language_fan wrote: Wed, 16 Sep 2009 12:41:06 +0200, Fawzi Mohamed thusly wrote: On 2009-09-16 02:40:02 +0200, Justin Johansson proc...@adam-dott-com.au said: A colleague of mine is suggesting that I really do take a closer look at D2 now but I'm not sure that I'm ready

Re: Type unions in D

2009-09-17 Thread language_fan
Thu, 17 Sep 2009 09:46:01 -0500, Andrei Alexandrescu wrote: language_fan wrote: Do the various variant structures presented here support recursive type definitions such as lists? Is this done efficiently? In Phobos' Algebraic, if you mention the type This inside the allowed types list, it

Re: dmg for Snow Leopard x86_64 ?

2009-09-17 Thread Urban Hafner
simon wrote: Was just wondering if there were plans to create a Snow Leopard build of D 2.0? I'd be very interested in an answer to this, too. Even something vague would be OK for me. Urban

Re: Elliotte Rusty Harold's take on Java

2009-09-17 Thread Yigal Chripun
On 17/09/2009 14:44, downs wrote: Nick Sabalausky wrote: Justin Johanssonproc...@adam-dott-com.au wrote in message news:h8ruu1$1qp...@digitalmars.com... Being somewhat of a fan of Elliotte Rusty Harold, I drop in for a coffee read at his cafes from time to time. I think D people will enjoy

Re: Elliotte Rusty Harold's take on Java

2009-09-17 Thread Lutger
Yigal Chripun wrote: On 17/09/2009 16:15, Justin Johansson wrote: making primitives full objects is the right design and has nothing to do with bloat which just means the implementation sucks. consider: struct Integer(int bits, signed = true) {...} with specializations for 8, 16, 32, 64

Re: Type unions in D

2009-09-17 Thread Justin Johansson
Andrei Alexandrescu Wrote: I have big plans with Variant - I want to make it (or a related type) the variable type common in dynamic languages, with flexibility, dynamic invocation using common syntax, the works. So if you write a short script and want dynamic typing, you should be able to

Re: Elliotte Rusty Harold's take on Java

2009-09-17 Thread Justin Johansson
Do you guys think it might be an idea to fork the thread? Subject say Syntactic sugar and OOP JJ Lutger Wrote: Yigal Chripun wrote: On 17/09/2009 16:15, Justin Johansson wrote: making primitives full objects is the right design and has nothing to do with bloat which just means the

Re: Type unions in D

2009-09-17 Thread Danny Wilson
Op Thu, 17 Sep 2009 16:56:41 +0200 schreef Andrei Alexandrescu seewebsiteforem...@erdani.org: I have big plans with Variant - I want to make it (or a related type) the variable type common in dynamic languages, with flexibility, dynamic invocation using common syntax, the works. So if you

Re: dmg for Snow Leopard x86_64 ?

2009-09-17 Thread Robert Clipsham
Urban Hafner wrote: simon wrote: Was just wondering if there were plans to create a Snow Leopard build of D 2.0? I'd be very interested in an answer to this, too. Even something vague would be OK for me. Urban From the dmd 1.047 2.032 release announcement: This will probably be the last

Re: Incremental compilation with DMD

2009-09-17 Thread Tom S
Walter Bright wrote: Tom S wrote: Personally I'm of the opinion that functions should be explicitly marked for CTFE, and this is just another reason for such. I'm using a patched DMD with added pragma(ctfe) which instructs the compiler not to run any codegen or generate debug info

Re: Incremental compilation with DMD

2009-09-17 Thread Tom S
Walter Bright wrote: Tom S wrote: When building my second largest project, DMD eats up about 1.2GB of memory and dies (even without -g). Luckily, xfBuild allows me to set the limit of modules to be compiled at a time, so when I cap it to 200, it compiled... but didn't link :( Somewhere in the

Re: Incremental compilation with DMD

2009-09-17 Thread Walter Bright
Tom S wrote: Walter Bright wrote: Tom S wrote: Personally I'm of the opinion that functions should be explicitly marked for CTFE, and this is just another reason for such. I'm using a patched DMD with added pragma(ctfe) which instructs the compiler not to run any codegen or generate debug

dwt-linux with ldc successfully built

2009-09-17 Thread Gian Perrone
I just wanted you to know that i built dwt-linux (from the repository) with ldc, just a few small changes were made: hg diff -U0 diff -r 5f6d9bb33a53 dsss.conf --- a/dsss.conf Sat Apr 04 21:38:37 2009 +0200 +++ b/dsss.conf Thu Sep 17 16:19:06 2009 +0200 @@ -3,1 +3,1 @@ -buildflags+=-Jres

Re: dwt-linux with ldc successfully built

2009-09-17 Thread Frank Benoit
Thats good news. How long was the compile time? How big the executable?

Re: D1: std.md5: corrections for the given example

2009-09-17 Thread downs
notna wrote: Stewart Gordon schrieb: The .ptr is necessary, but the cast(uint) isn't. Even if a change of type were necessary, just 1U would do. (U is a suffix meaning unsigned. There's also L meaning long.) Stewart. Thank Stewart. As the std.md5-example is not working with unicode

Re: D1: std.md5: corrections for the given example

2009-09-17 Thread downs
Stewart Gordon wrote: downs wrote: snip while (auto len = file.readBlock(buffer.ptr, buffer.sizeof)) snip md5_example_2.d(7): expression expected, not 'auto' md5_example_2.d(7): found 'len' when expecting ')' md5_example_2.d(7): found '=' instead of statement (this is line 7 after I

std.bitarray

2009-09-17 Thread Saaa
I understand a bitarray being faster than a boolean array as the first uses bitwise (hardware) operators. Is this a correct understanding of the situation? Why then is a boolean array not implemented in that way? I expect there to be a good reason which I just don't know. I'd like to be able to

Re: DLLs and headaches

2009-09-17 Thread Richard Webb
Don Wrote: If D2 -- I haven't been able to get D2 DLLs to work at all. They just crash during the initialization (something to do with initialising the thread-locals, I think, but I haven't been able to track it down completely). Hi, I've recently been having a go at writing a COM object

Re: std.bitarray

2009-09-17 Thread BCS
Hello Saaa, I understand a bitarray being faster than a boolean array as the first uses bitwise (hardware) operators. Is this a correct understanding of the situation? Why then is a boolean array not implemented in that way? Because you can't slice a bit array the same way you can slice a int

tango version identifiers

2009-09-17 Thread Ellery Newcomer
Does the tango build by any chance set any distinguishing predefined version identifiers?

[Issue 3321] debug flags

2009-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3321 Ary Borenszweig a...@esperanto.org.ar changed: What|Removed |Added CC|

[Issue 3324] New: d1: std.md5: given example not working

2009-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3324 Summary: d1: std.md5: given example not working Product: D Version: 1.042 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2

[Issue 3321] debug flags

2009-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3321 --- Comment #3 from Ellery Newcomer ellery-newco...@utulsa.edu 2009-09-17 07:44:38 PDT --- (In reply to comment #2) Yes, that's normal behaviour. According to whom? The C preprocessor? When I read the spec, I came away with the impression

[Issue 3326] New: $ in delegate literal causes Access Violation

2009-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3326 Summary: $ in delegate literal causes Access Violation Product: D Version: 2.032 Platform: Other OS/Version: Windows Status: NEW Keywords: wrong-code Severity:

[Issue 1812] DDOC - Unicode identifiers are not correctly marked.

2009-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1812 Ali Cehreli acehr...@yahoo.com changed: What|Removed |Added CC||acehr...@yahoo.com

[Issue 3327] New: OPTLINK and the librarian fail to see a symbol in a library

2009-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3327 Summary: OPTLINK and the librarian fail to see a symbol in a library Product: D Version: 1.047 Platform: Other OS/Version: Windows Status: NEW Severity:

[Issue 3328] New: DMD strips package names from objects (ignores -op) with -lib

2009-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3328 Summary: DMD strips package names from objects (ignores -op) with -lib Product: D Version: 1.047 Platform: Other OS/Version: Windows Status: NEW

[Issue 3328] DMD strips package names from objects (ignores -op) with -lib

2009-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3328 --- Comment #1 from Tomasz Stachowiak h3r3...@mat.uni.torun.pl 2009-09-17 19:05:02 PDT --- Created an attachment (id=453) example Attachment failed while submitting the issue. -- Configure issuemail: