Re: accepts-invalid?

2010-08-24 Thread Don
Nick Sabalausky wrote: "Steven Schveighoffer" wrote in message news:op.vhwolemleav...@localhost.localdomain... On Mon, 23 Aug 2010 15:29:32 -0400, Nick Sabalausky wrote: "klickverbot" wrote in message news:i4ualh$1qh...@digitalmars.com... Hello all, currently, DMD accepts the following co

Range literals

2010-08-24 Thread Peter Alexander
I know that D2 is supposed to be closed for new features, but I thought I'd mention this anyway just in case it's deemed easy/simple enough for inclusion, or even if it will just get considered for later on. Anyway, we all know that we can do the following: foreach (int x; 0..10) writeln

Re: Why C++ compiles slowly

2010-08-24 Thread Walter Bright
Steven Schveighoffer wrote: With profiling enabled, gprof outputs this as the top hitters: Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds secondscalls ms/call ms/call name 77.76 6.68 6.68 2952 2.2

Re: Fixing std.string

2010-08-24 Thread Jonathan M Davis
On Monday 23 August 2010 23:16:25 Michael Rynn wrote: > The problems are combinatorial, because of encoding schemes. > I imagine that when someone wants a function that is missing from > std.string, they might write one, and might even add to it. A lot of functions in Phobos are templated on strin

Re: Range literals

2010-08-24 Thread Norbert Nemec
On 24/08/10 08:56, Peter Alexander wrote: Proposal: Make a..b a literal that evaluates to iota(a, b) or some built-in equivalent. Indeed, this has been discussed before and I believe people were generally in favor of this idea. I agree that it should still be considered for DMD2. As I see it,

Re: Fixing std.string

2010-08-24 Thread Norbert Nemec
On 20/08/10 03:22, dsimcha wrote: 3. Is there any good reason to avoid just templating everything to work with all 9 string types (mutable/const/immutable char/wchar/dchar[]) or whatever subset is reasonable for the given function? Wouldn't it be sufficient to take const as input? IIRC, both m

Re: Fixing std.string

2010-08-24 Thread Simen kjaeraas
Norbert Nemec wrote: On 20/08/10 03:22, dsimcha wrote: 3. Is there any good reason to avoid just templating everything to work with all 9 string types (mutable/const/immutable char/wchar/dchar[]) or whatever subset is reasonable for the given function? Wouldn't it be sufficient to take

Re: Why C++ compiles slowly

2010-08-24 Thread bearophile
Walter Bright: > elf_findstr definitely looks like a problem area. I can't look at it right > now, > so can you post this to bugzilla please? I am able to find two versions of elf_findstr, one in elfobj.c and one in machobj.c, so it may be possible to remove one of them. Its docstring doesn't

Why all the D hate?

2010-08-24 Thread igabrieL
- GDB developers refsue to apply up to date D patches - the language shootout included ALL other relevant languages, but hated D. This is very bad - D wiki had CSS style competition but someone wanted to keep the boring looking style. Wiki has sometimes also disk space problem - no Tango for D 2.

Re: contracts for external functions?

2010-08-24 Thread Trass3r
extern(C) int foo(int i) in { assert(i > 7); } out (result) { assert(result & 1); } http://d.puremagic.com/issues/show_bug.cgi?id=4720

Re: How does D handle null pointers?

2010-08-24 Thread Steven Schveighoffer
On Mon, 23 Aug 2010 16:30:15 -0400, Adam B wrote: I was pondering bearophile's idea of having compile-time null checking. Since adding new language syntax is often a hard thing to sell to the language authors, perhaps we could get by with just a compiler warning? Some static code analysis. F

Re: Algorithms & opApply

2010-08-24 Thread Steven Schveighoffer
On Tue, 24 Aug 2010 01:59:51 -0400, Fawzi Mohamed wrote: On 24-ago-10, at 04:26, dsimcha wrote: [...] 3. Ranges are the flagship way of iterating through an object in D, as they should be. opApply has its uses, but they're relatively few and far between. I'm wondering if anyone besides

Re: Why C++ compiles slowly

2010-08-24 Thread Steven Schveighoffer
On Tue, 24 Aug 2010 03:58:57 -0400, Walter Bright wrote: Steven Schveighoffer wrote: With profiling enabled, gprof outputs this as the top hitters: Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds secondscalls ms/

Re: Why all the D hate?

2010-08-24 Thread Pelle
On 08/24/2010 02:14 PM, igabrieL wrote: - GDB developers refsue to apply up to date D patches - the language shootout included ALL other relevant languages, but hated D. This is very bad - D wiki had CSS style competition but someone wanted to keep the boring looking style. Wiki has sometimes a

Re: Why all the D hate?

2010-08-24 Thread Adam D. Ruppe
"Those who can, do. Those who can't, complain." -- Attributed to Linus Torvalds on Wikipedia.

Re: Why all the D hate?

2010-08-24 Thread retard
Probably answering to a troll, but.. Tue, 24 Aug 2010 08:14:37 -0400, igabrieL wrote: > - GDB developers refsue to apply up to date D patches This is a copyright issue. GDB is owned by the FSF and you cannot use any Digital Mars code in it. You need to assign the copyright to them. > - the l

Re: Why all the D hate?

2010-08-24 Thread Norbert Nemec
On 24/08/10 13:14, igabrieL wrote: - the language shootout included ALL other relevant languages, but hated D. This is very bad I recall that this was due to the lack of 64bit support and the lack of a Debian package that would work out of the box. The latter problem may be solved by now, bu

update zlib used in phobos?

2010-08-24 Thread Trass3r
Phobos still uses 5 years old zlib 1.2.3 Couldn't that be updated to v1.2.5 (April 19, 2010)?

Re: update zlib used in phobos?

2010-08-24 Thread Adam D. Ruppe
On Tue, Aug 24, 2010 at 07:29:57PM +0200, Trass3r wrote: > Phobos still uses 5 years old zlib 1.2.3 > Couldn't that be updated to v1.2.5 (April 19, 2010)? Yes, Walter and Andrei are planning to update it in the next month or so.

Re: Why all the D hate?

2010-08-24 Thread dsimcha
== Quote from retard (r...@tard.com.invalid)'s article > I believe D attracts people who want to leave their hand-mark in the > language's design. The community members see that the language is in a > constant 'work in progress' phase so they're dumping truckloads of > feature suggestions before th

Re: Why all the D hate?

2010-08-24 Thread Steven Schveighoffer
On Tue, 24 Aug 2010 13:44:38 -0400, dsimcha wrote: == Quote from retard (r...@tard.com.invalid)'s article I believe D attracts people who want to leave their hand-mark in the language's design. The community members see that the language is in a constant 'work in progress' phase so they're dum

Re: Why C++ compiles slowly

2010-08-24 Thread Walter Bright
Steven Schveighoffer wrote: On Tue, 24 Aug 2010 03:58:57 -0400, Walter Bright wrote: Steven Schveighoffer wrote: With profiling enabled, gprof outputs this as the top hitters: Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time sec

Re: Why all the D hate?

2010-08-24 Thread Walter Bright
igabrieL wrote: - and suggesting feature improvements [...] When is D stable It cannot be both stable and adding in endless new features.

Re: Why all the D hate?

2010-08-24 Thread Walter Bright
dsimcha wrote: I think having a SafeD environemnt on .NET/JVM might be an interesting exercise. However, the language doesn't have many interesting new features to justify its existence on either platform. Don't D's compile-time introspection and generic programming abilities count for somethin

Re: Why all the D hate?

2010-08-24 Thread Leandro Lucarella
retard, el 24 de agosto a las 15:36 me escribiste: > Probably answering to a troll, but.. > > > Tue, 24 Aug 2010 08:14:37 -0400, igabrieL wrote: > > > - GDB developers refsue to apply up to date D patches > > This is a copyright issue. GDB is owned by the FSF and you cannot use any > Digital M

Re: Why all the D hate?

2010-08-24 Thread dsimcha
== Quote from Walter Bright (newshou...@digitalmars.com)'s article > dsimcha wrote: > >> I think having a SafeD environemnt on .NET/JVM might be > >> an interesting exercise. However, the language doesn't have many > >> interesting new features to justify its existence on either platform. > > > > D

Re: Why all the D hate?

2010-08-24 Thread retard
Tue, 24 Aug 2010 17:44:38 +, dsimcha wrote: >> I think having a SafeD environemnt on .NET/JVM might be an interesting >> exercise. However, the language doesn't have many interesting new >> features to justify its existence on either platform. > > Don't D's compile-time introspection and gene

Re: Why all the D hate?

2010-08-24 Thread Nick Sabalausky
"retard" wrote in message news:i50ou2$v0...@digitalmars.com... > > I think having a SafeD environemnt on .NET/JVM might be > an interesting exercise. However, the language doesn't have many > interesting new features to justify its existence on either platform. > Aside from being a questionable

Re: Why all the D hate?

2010-08-24 Thread Nick Sabalausky
"retard" wrote in message news:i516du$v0...@digitalmars.com... > Tue, 24 Aug 2010 17:44:38 +, dsimcha wrote: > >>> I think having a SafeD environemnt on .NET/JVM might be an interesting >>> exercise. However, the language doesn't have many interesting new >>> features to justify its existence

Re: Why all the D hate?

2010-08-24 Thread retard
Tue, 24 Aug 2010 15:37:52 -0400, Nick Sabalausky wrote: > "retard" wrote in message > news:i516du$v0...@digitalmars.com... >> Tue, 24 Aug 2010 17:44:38 +, dsimcha wrote: >> I think having a SafeD environemnt on .NET/JVM might be an interesting exercise. However, the language doesn't

How about a nabble forum archive?

2010-08-24 Thread skip
Hello, I'm just wondering, would it be possible to register this mailing list on nabble? Replies would be grouped in topics and indexed for full text search, I think it would make this mailing list more convenient to use. Result looks like this http://lucene.472066.n3.nabble.com/Solr-User-f472068

Re: Why all the D hate?

2010-08-24 Thread Nick Sabalausky
"igabrieL" wrote in message news:i50d3d$d1...@digitalmars.com... > - no Tango for D 2.0 (trying be fair and equal here. not only phobos!) http://www.dsource.org/projects/tango/forums/topic/883

Re: Why all the D hate?

2010-08-24 Thread Nick Sabalausky
"retard" wrote in message news:i51963$v0...@digitalmars.com... > > I can find 100 other commercial C# coders in just a few > days. Now, see that's something that always bugs the hell out of me. Any programmer who can code in, say imperative or OO style in one language and *can't* pick up anoth

Re: Why all the D hate?

2010-08-24 Thread retard
Tue, 24 Aug 2010 16:29:01 -0400, Nick Sabalausky wrote: > "retard" wrote in message > news:i51963$v0...@digitalmars.com... >> >> I can find 100 other commercial C# coders in just a few days. > > Now, see that's something that always bugs the hell out of me. Any > programmer who can code in, say

Re: Why C++ compiles slowly

2010-08-24 Thread Steven Schveighoffer
On Tue, 24 Aug 2010 14:31:26 -0400, Walter Bright wrote: Steven Schveighoffer wrote: On Tue, 24 Aug 2010 03:58:57 -0400, Walter Bright wrote: Steven Schveighoffer wrote: With profiling enabled, gprof outputs this as the top hitters: Flat profile: Each sample counts as 0.01 seconds.

Re: Why C++ compiles slowly

2010-08-24 Thread Mafi
Am 24.08.2010 22:56, schrieb Steven Schveighoffer: I am not sure how to fix it, but that's the gist of it. I think the symbol table is so large because of the template proliferation of dcollections, and the verbosity of D symbol names. Why are D's symbols verbose? if I understood you corectl

Re: Why all the D hate?

2010-08-24 Thread Nick Sabalausky
"retard" wrote in message news:i51b74$v0...@digitalmars.com... > Tue, 24 Aug 2010 16:29:01 -0400, Nick Sabalausky wrote: > >> "retard" wrote in message >> news:i51963$v0...@digitalmars.com... >>> >>> I can find 100 other commercial C# coders in just a few days. >> >> Now, see that's something th

Re: Why C++ compiles slowly

2010-08-24 Thread Steven Schveighoffer
On Tue, 24 Aug 2010 17:05:30 -0400, Mafi wrote: Am 24.08.2010 22:56, schrieb Steven Schveighoffer: I am not sure how to fix it, but that's the gist of it. I think the symbol table is so large because of the template proliferation of dcollections, and the verbosity of D symbol names. Why ar

Re: Why C++ compiles slowly

2010-08-24 Thread Jacob Carlborg
On 2010-08-24 12:25, bearophile wrote: Walter Bright: elf_findstr definitely looks like a problem area. I can't look at it right now, so can you post this to bugzilla please? I am able to find two versions of elf_findstr, one in elfobj.c and one in machobj.c, so it may be possible to remove o

Re: Why C++ compiles slowly

2010-08-24 Thread bearophile
Steven Schveighoffer: > For example, foo(HashSet!int hs) inside the module testme becomes: > _D6testme3fooFC12dcollections7HashSet14__T7HashSetTiZ7HashSetZv And I think some more things needs to be added to that string, like a representation for the pure attribute, etc. Bye, bearophile

Re: Why all the D hate?

2010-08-24 Thread Brad Roberts
On Tue, 24 Aug 2010, Leandro Lucarella wrote: > retard, el 24 de agosto a las 15:36 me escribiste: > > Probably answering to a troll, but.. > > > > > > Tue, 24 Aug 2010 08:14:37 -0400, igabrieL wrote: > > > > > - GDB developers refsue to apply up to date D patches > > > > This is a copyright i

Re: Why C++ compiles slowly

2010-08-24 Thread Jonathan M Davis
On Tuesday, August 24, 2010 14:37:09 bearophile wrote: > Steven Schveighoffer: > > For example, foo(HashSet!int hs) inside the module testme becomes: > > _D6testme3fooFC12dcollections7HashSet14__T7HashSetTiZ7HashSetZv > > And I think some more things needs to be added to that string, like a > repr

Re: Why all the D hate?

2010-08-24 Thread retard
Tue, 24 Aug 2010 17:21:56 -0400, Nick Sabalausky wrote: > And if a manager goes hiring programmers when time's already tight, then > the manager is an idiot because getting the new people up-to-speed is > only going to cause more delay even if the language is the same (and > again, the time to pic

Re: Why C++ compiles slowly

2010-08-24 Thread Walter Bright
Steven Schveighoffer wrote: Through some more work with printf, I have to agree with bearophile, this lookup function is horrid. It is now, but when it was originally written (maybe as long as 20 years ago) there were only a few strings in the table, and it was fine. It's just outlived its de

Re: Why C++ compiles slowly

2010-08-24 Thread Simen kjaeraas
On Tue, 24 Aug 2010 23:53:44 +0200, Jonathan M Davis wrote: On Tuesday, August 24, 2010 14:37:09 bearophile wrote: Steven Schveighoffer: > For example, foo(HashSet!int hs) inside the module testme becomes: > _D6testme3fooFC12dcollections7HashSet14__T7HashSetTiZ7HashSetZv And I think some mo

Re: Why C++ compiles slowly

2010-08-24 Thread dsimcha
== Quote from Walter Bright (newshou...@digitalmars.com)'s article > Steven Schveighoffer wrote: > > Through some more work with printf, I have to agree with bearophile, > > this lookup function is horrid. > It is now, but when it was originally written (maybe as long as 20 years ago) > there were

Re: Why C++ compiles slowly

2010-08-24 Thread bearophile
Jonathan M Davis: > They probably aren't there because > ... In Bugzilla there are some pure-related bugs (3833, 3086/3831, maybe 4505) that I think need that attribute in the mangled string. But as usual I may be wrong, and other ways to solve those problems may be invented. Bye, bearophile

Re: Self-compilation

2010-08-24 Thread sybrandy
On 08/22/2010 06:28 PM, Pedro Rodrigues wrote: There are already projects aiming to write a D compiler in D: http://www.dsource.org/projects/ddmd http://github.com/azizk/dil/ Regards Thanks for all the answers, but I was looking more for an official compiler, but it's great that there's peopl

Re: Self-compilation

2010-08-24 Thread Trass3r
languages that can compile themselves make me smile. Yep ddmd is a wonderful project :)

Link to that D doc-search tool?

2010-08-24 Thread Nick Sabalausky
Someone created a webpage a little while ago to jump to the D documentation for a given identifier. What was the URL to that? In a real example of irony, I searched the NG for that search tool, but couldn't find it.