Re: Why C++ compiles slowly

2010-08-26 Thread Walter Bright
Steven Schveighoffer wrote: On Tue, 24 Aug 2010 03:58:57 -0400, Walter Bright newshou...@digitalmars.com 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

Re: About Andrei's interview, part 3

2010-08-26 Thread Don
Walter Bright wrote: bearophile wrote: This is why I don't like a lot the current work done for the 64 bit implementation. A lot of groups cannot consider D unless it supports 64 bit compilation. D2 has some design problems (I don't call them 'enhancement requests') that if you want to fix

Re: About Andrei's interview, part 3

2010-08-26 Thread Don
Walter Bright wrote: Justin Johansson wrote: A lot of people will be pleased to see 64-bit D. 64 bit has been pushed aside for around 7 years now in favor of more urgent matters. It's time to get it done. Also, I think it's critical to be certain there's nothing in the language which is

Re: Using glog's design for Phobos?

2010-08-26 Thread simendsjo
Kagamin wrote: Andrei Alexandrescu Wrote: of etc., but the spirit will be similar. What do you think? What bugs me most in log4net - it doesn't delete old logs that can take up to gigabytes. Tried RollingFileAppender?

Re: Using glog's design for Phobos?

2010-08-26 Thread Masahiro Nakagawa
On Thu, 26 Aug 2010 12:59:19 +0900, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: Hello, At my workplace we're using Google's logging library glog (http://google-glog.googlecode.com/svn/trunk/doc/glog.html), and the more I use it, the more I like it. It's simple, to the

Re: Why C++ compiles slowly

2010-08-26 Thread Jacob Carlborg
On 2010-08-26 08:13, Walter Bright wrote: Steven Schveighoffer wrote: On Tue, 24 Aug 2010 03:58:57 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: With profiling enabled, gprof outputs this as the top hitters: Flat profile: Each sample counts as 0.01

Re: Why C++ compiles slowly

2010-08-26 Thread Steven Schveighoffer
On Thu, 26 Aug 2010 02:13:34 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: On Tue, 24 Aug 2010 03:58:57 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: With profiling enabled, gprof outputs this as the top hitters:

Re: About Andrei's interview, part 3

2010-08-26 Thread Daniel Gibson
On Thu, Aug 26, 2010 at 8:59 AM, Don nos...@nospam.com wrote: Walter Bright wrote: Justin Johansson wrote: A lot of people will be pleased to see 64-bit D. 64 bit has been pushed aside for around 7 years now in favor of more urgent matters. It's time to get it done. Also, I think it's

Re: Why C++ compiles slowly

2010-08-26 Thread bearophile
Steven Schveighoffer: I haven't looked at toJsonBuffer at all (btw, why are we calling this function if I'm not outputting json?) Fit for a new bugzilla entry? Bye, bearophile

Re: About Andrei's interview, part 3

2010-08-26 Thread bearophile
Daniel Gibson: I'd suggest to always write the length as a (u)long - or uint, char-arrays/strings that are bigger than 4GB are just insane, anyway. (Java uses short in a similar method, IIRC). A long suffices there, no need to use a cent. Bye, bearophile

Re: Why C++ compiles slowly

2010-08-26 Thread Steven Schveighoffer
On Thu, 26 Aug 2010 08:36:44 -0400, bearophile bearophileh...@lycos.com wrote: Steven Schveighoffer: I haven't looked at toJsonBuffer at all (btw, why are we calling this function if I'm not outputting json?) Fit for a new bugzilla entry? I'll just put into the same report, and let

Safe Cursors and Ranges

2010-08-26 Thread Pillsy
These thoughts were inspired by the recent thread, Retrieving the traversed range. I am generally pretty sold on the range concept, but I think for some operations some sort of cursor is required. However, there are some unsafe cursor-related operations that are best avoided. However, as far

Re: Why C++ compiles slowly

2010-08-26 Thread BCS
Hello Jacob, On 2010-08-26 08:13, Walter Bright wrote: Steven Schveighoffer wrote: On Tue, 24 Aug 2010 03:58:57 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: With profiling enabled, gprof outputs this as the top hitters: Flat profile: Each sample

Re: Safe Cursors and Ranges

2010-08-26 Thread Steven Schveighoffer
On Thu, 26 Aug 2010 10:18:51 -0400, Pillsy pillsb...@gmail.com wrote: These thoughts were inspired by the recent thread, Retrieving the traversed range. I am generally pretty sold on the range concept, but I think for some operations some sort of cursor is required. However, there are some

Re: Safe Cursors and Ranges

2010-08-26 Thread Pillsy
Steven Schveighoffer Wrote: On Thu, 26 Aug 2010 10:18:51 -0400, Pillsy pillsb...@gmail.com wrote: [...] The key idea is that these cursors aren't a primitive part of a range; instead, they take a range and add a position *inside* the range. They're a perfect fit for all those

Re: Safe Cursors and Ranges

2010-08-26 Thread Steven Schveighoffer
On Thu, 26 Aug 2010 11:17:32 -0400, Pillsy pillsb...@gmail.com wrote: Steven Schveighoffer Wrote: On Thu, 26 Aug 2010 10:18:51 -0400, Pillsy pillsb...@gmail.com wrote: [...] The key idea is that these cursors aren't a primitive part of a range; instead, they take a range and add a

Re: Safe Cursors and Ranges

2010-08-26 Thread dsimcha
== Quote from Pillsy (pillsb...@gmail.com)'s article These thoughts were inspired by the recent thread, Retrieving the traversed range. I am generally pretty sold on the range concept, but I think for some operations some sort of cursor is required. However, there are some unsafe

Re: Why C++ compiles slowly

2010-08-26 Thread Walter Bright
Steven Schveighoffer wrote: Better, now takes 20 seconds vs over 60. The new culprit: Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds secondscalls ms/call ms/call name 75.79 6.51 6.51 8103 0.80

Re: Retrieving the traversed range

2010-08-26 Thread Andrei Alexandrescu
On 8/25/10 6:55 PDT, Peter Alexander wrote: Thanks for the replies Andrei, Steven. It's a bit disappointing that there is no solution to this, although I think you already know what I'll suggest as a solution :) (cursors/iterators) It's quite funny really, because I had decided to drop the

Re: Why all the D hate?

2010-08-26 Thread Steve Teale
Walter Bright Wrote: igabrieL wrote: - and suggesting feature improvements [...] When is D stable It cannot be both stable and adding in endless new features. So then Walter, when will you say enough is enough? Just paying my 3 monthly visit to the newsgroup. I see nothing much

Re: Safe Cursors and Ranges

2010-08-26 Thread Andrei Alexandrescu
On 8/26/10 7:18 PDT, Pillsy wrote: [snip] Range before (); Range after (); (I wrote my last post before reading yours.) Excellent points. I do think we can get away without defining a new type. In addition to the allBefore(all, tail) primitive (which is easy to implement as a

Re: Using glog's design for Phobos?

2010-08-26 Thread Kagamin
simendsjo Wrote: Tried RollingFileAppender? Ah, indeed... as I think of it... looks like I misconfigured it with the date pattern. x_x Thanks.

Re: Why all the D hate?

2010-08-26 Thread Walter Bright
Steve Teale wrote: Walter Bright Wrote: igabrieL wrote: - and suggesting feature improvements [...] When is D stable It cannot be both stable and adding in endless new features. So then Walter, when will you say enough is enough? Well, we decided to stop adding features to D2 with the

Re: Safe Cursors and Ranges

2010-08-26 Thread Andrei Alexandrescu
On 8/26/10 9:18 PDT, dsimcha wrote: I'm starting to think that the whole concept of ranges is starting to get too complicated. We're already seeing it with this moveFront() stuff that's a special case to deal with structs that have expensive postblits. We need a healthy dose of worse is

Re: Why C++ compiles slowly

2010-08-26 Thread Steven Schveighoffer
On Thu, 26 Aug 2010 12:53:59 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: Better, now takes 20 seconds vs over 60. The new culprit: Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds

Re: Why all the D hate?

2010-08-26 Thread Era Scarecrow
== Quote from Walter Bright (newshou...@digitalmars.com)'s article Steve Teale wrote: Walter Bright Wrote: igabrieL wrote: - and suggesting feature improvements [...] When is D stable It cannot be both stable and adding in endless new features. So then Walter, when will you

Re: Safe Cursors and Ranges

2010-08-26 Thread Steven Schveighoffer
On Thu, 26 Aug 2010 13:30:35 -0400, Pillsy pillsb...@gmail.com wrote: Steven Schveighoffer Wrote: On Thu, 26 Aug 2010 11:17:32 -0400, Pillsy pillsb...@gmail.com wrote: [...] If you don't mind me asking, what made you give up on it? A cursor that refers to one element is much more

Re: Why C++ compiles slowly

2010-08-26 Thread Walter Bright
Steven Schveighoffer wrote: I'll update the bug. Thanks!

Re: Why C++ compiles slowly

2010-08-26 Thread Walter Bright
Steven Schveighoffer wrote: Each sample counts as 0.01 seconds. % cumulative self self total time seconds secondscalls ms/call ms/call name 80.31 11.9911.9919000 0.63 0.63 searchfixlist Just for fun, searchfixlist goes back at least to

Why is Exceptions c'tor this(immutable(char[]) instead of const(char[]) ?

2010-08-26 Thread Mathias Laurenz Baumann
Well, topic says it all. Why is the string parameter for the Exception class in object.di an immutable(char[])? A const(char[]) works for both, immutable(char[]) types and char[] types. why this limitation? --Marenz

Re: Why is Exceptions c'tor this(immutable(char[]) instead of const(char[]) ?

2010-08-26 Thread Steven Schveighoffer
On Thu, 26 Aug 2010 16:05:00 -0400, Mathias Laurenz Baumann anonym...@supradigital.org wrote: Well, topic says it all. Why is the string parameter for the Exception class in object.di an immutable(char[])? A const(char[]) works for both, immutable(char[]) types and char[] types. why this

Re: Why C++ compiles slowly

2010-08-26 Thread bearophile
Walter Bright: Just for fun, searchfixlist goes back at least to 1983 or so. It contains this if (I am not able to indent it well): if (s-Sseg == p-Lseg (s-Sclass == SCstatic || #if TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS

Re: Link to that D doc-search tool?

2010-08-26 Thread Philippe Sigaud
On Wed, Aug 25, 2010 at 13:47, Adam D. Ruppe destructiona...@gmail.comwrote: On Wed, Aug 25, 2010 at 06:56:00AM +, Lars T. Kyllingstad wrote: http://dpldocs.info/ It's a great tool. Good work, Adam! Thanks! This should be part of the official D website, methinks.

Re: Why is Exceptions c'tor this(immutable(char[]) instead of const(char[]) ?

2010-08-26 Thread Mathias Laurenz Baumann
Okay, sounds reasonable. What about many of the phobos functions, like for example from std.regex: int find(string s, RegExp pattern); I mean, that function won't store anything, right? --Marenz Am 26.08.2010, 22:16 Uhr, schrieb Steven Schveighoffer schvei...@yahoo.com: On Thu, 26 Aug

Getting the name of current module

2010-08-26 Thread Philippe Sigaud
Hi, does anyone of you know a way to get the name of the current module at compile-time? I have a very fragile trick, creating a temporary, mangling/demangling it and parsing the resulting name, but it's ugly as hell and does not work so well. I need this for a very simple reason: I have a

Re: Why is Exceptions c'tor this(immutable(char[]) instead of const(char[]) ?

2010-08-26 Thread Steven Schveighoffer
On Thu, 26 Aug 2010 16:24:57 -0400, Mathias Laurenz Baumann anonym...@supradigital.org wrote: Okay, sounds reasonable. What about many of the phobos functions, like for example from std.regex: int find(string s, RegExp pattern); I mean, that function won't store anything, right? This is

Re: Getting the name of current module

2010-08-26 Thread bearophile
Philippe Sigaud: does anyone of you know a way to get the name of the current module at compile-time? It's one of the missing pieces of the static reflection: __traits(thisModuleName) Bye, bearophile

Re: Why is Exceptions c'tor this(immutable(char[]) instead of const(char[]) ?

2010-08-26 Thread Andrei Alexandrescu
On 8/26/10 13:05 PDT, Mathias Laurenz Baumann wrote: Well, topic says it all. Why is the string parameter for the Exception class in object.di an immutable(char[])? A const(char[]) works for both, immutable(char[]) types and char[] types. why this limitation? --Marenz The string is stored

Re: Why is Exceptions c'tor this(immutable(char[]) instead of const(char[]) ?

2010-08-26 Thread Andrei Alexandrescu
On 8/26/10 13:16 PDT, Steven Schveighoffer wrote: On Thu, 26 Aug 2010 16:05:00 -0400, Mathias Laurenz Baumann anonym...@supradigital.org wrote: Well, topic says it all. Why is the string parameter for the Exception class in object.di an immutable(char[])? A const(char[]) works for both,

Re: Why is Exceptions c'tor this(immutable(char[]) instead of const(char[]) ?

2010-08-26 Thread Andrei Alexandrescu
On 8/26/10 13:24 PDT, Mathias Laurenz Baumann wrote: Okay, sounds reasonable. What about many of the phobos functions, like for example from std.regex: int find(string s, RegExp pattern); I mean, that function won't store anything, right? Good point. I think Regexp does actually store

Array types

2010-08-26 Thread bearophile
Arrays are one of the most useful and most efficient data structures for nonfunctional languages. They look simple, but in a low-level language you sometimes need various kinds of them. So they are not so simple. In D there are two kinds of built-in arrays: A) 1D Dynamic arrays on the heap B)

Re: Using glog's design for Phobos?

2010-08-26 Thread sybrandy
I am using glog and gtest in my project. These tools are very useful :) I think we need useful and handy logging module for Phobos. Yeah, glog is one of the candidates. Masahiro Yeah, I started one that I at least plan on using. I've even offered to let Walter and the gang include it

Re: Using glog's design for Phobos?

2010-08-26 Thread Andrei Alexandrescu
On 8/26/10 14:48 PDT, sybrandy wrote: I am using glog and gtest in my project. These tools are very useful :) I think we need useful and handy logging module for Phobos. Yeah, glog is one of the candidates. Masahiro Yeah, I started one that I at least plan on using. I've even offered to

Re: Getting the name of current module

2010-08-26 Thread Philippe Sigaud
On Thu, Aug 26, 2010 at 22:37, bearophile bearophileh...@lycos.com wrote: Philippe Sigaud: does anyone of you know a way to get the name of the current module at compile-time? It's one of the missing pieces of the static reflection: __traits(thisModuleName) I want this to return an

[Slight OT] TDPL in Russia

2010-08-26 Thread Stanislav Blinov
Hi, I've noticed I'm not the only one Russian here, so I've decided to ask: (yeah, I know I'm quite a bit late) Did anyone buy TDPL in Russia? If so, where from? Is Amazon a good place to look (there seemed to be trouble getting stuff from them)?

Interfacing to C: const or immutable?

2010-08-26 Thread Mathias Laurenz Baumann
http://www.digitalmars.com/d/2.0/interfaceToC.html still says there is no const/immutable in D: There are no const or volatile type modifiers in D. To declare a C function that uses those type modifiers, just drop those keywords from the declaration. but that is obviously out-dated.

Re: Using glog's design for Phobos?

2010-08-26 Thread Tomek Sowiński
Dnia 26-08-2010 o 05:59:19 Andrei Alexandrescu seewebsiteforem...@erdani.org napisał(a): At my workplace we're using Google's logging library glog (http://google-glog.googlecode.com/svn/trunk/doc/glog.html), and the more I use it, the more I like it. It's simple, to the point, and

Re: [Slight OT] TDPL in Russia

2010-08-26 Thread Vladimir
Stanislav Blinov Wrote: Hi, I've noticed I'm not the only one Russian here, so I've decided to ask: (yeah, I know I'm quite a bit late) Did anyone buy TDPL in Russia? If so, where from? Is Amazon a good place to look (there seemed to be trouble getting stuff from them)? I'm quite

Re: Safe Cursors and Ranges

2010-08-26 Thread Jonathan M Davis
On Thursday, August 26, 2010 10:51:02 Andrei Alexandrescu wrote: On 8/26/10 9:18 PDT, dsimcha wrote: I'm starting to think that the whole concept of ranges is starting to get too complicated. We're already seeing it with this moveFront() stuff that's a special case to deal with structs

Re: Getting the name of current module

2010-08-26 Thread Andrej Mitrovic
import Python dir() etc.. :) I want more reflection as well, it's plenty of fun. On Fri, Aug 27, 2010 at 12:13 AM, Philippe Sigaud philippe.sig...@gmail.com wrote: On Thu, Aug 26, 2010 at 22:37, bearophile bearophileh...@lycos.com wrote: Philippe Sigaud: does anyone of you know a way to

Re: [Slight OT] TDPL in Russia

2010-08-26 Thread Yao G.
On Thu, 26 Aug 2010 17:27:31 -0500, Vladimir v...@mymail.rus wrote: I'm quite satisfied with the torrent version. As long as no money goes directly to the D development I refuse to buy books. The book guy already earns 10 to 100 times as much as a normal developer in Russia. LOL. Gotta

Re: [Slight OT] TDPL in Russia

2010-08-26 Thread Stanislav Blinov
Vladimir wrote: Stanislav Blinov Wrote: Hi, I've noticed I'm not the only one Russian here, so I've decided to ask: (yeah, I know I'm quite a bit late) Did anyone buy TDPL in Russia? If so, where from? Is Amazon a good place to look (there seemed to be trouble getting stuff from them)?

Re: [Slight OT] TDPL in Russia

2010-08-26 Thread Stanislav Blinov
Yao G. wrote: On Thu, 26 Aug 2010 17:27:31 -0500, Vladimir v...@mymail.rus wrote: I'm quite satisfied with the torrent version. As long as no money goes directly to the D development I refuse to buy books. The book guy already earns 10 to 100 times as much as a normal developer in Russia.

Re: [Slight OT] TDPL in Russia

2010-08-26 Thread Max Klyga
Hi, there. Amazon is a good place to buy books. I had no problems with delivery from US Amazon so far.

moveFront() and friends: Request for comment

2010-08-26 Thread dsimcha
Andrei and I were talking on the Phobos list and deep in a newsgroup thread about whether Phobos should make a serious effort to efficiently support structs with arbitrarily complex, expensive postblits. Such support includes the moveFront(), moveBack() and moveAt() range primitives, which are

Bug reports [Was: Re: About Andrei's interview, part 3]

2010-08-26 Thread bearophile
Walter Bright: I just hope you can be realistic about how much can be done about them in the short term. Most of of my bugzilla entries are normal bugs, suggestions for improved error messages and diagnostic, Phobos bugs, enhancement requests, _additive_ changes, etc, that don't require any D

Re: Compound assignment operators

2010-08-26 Thread bearophile
Yao G.: Is there a way to make this work? Even changing the operator string in opBinary to - doesn't do nothing. Or those kind of operators can't be overloaded? Try opOpAssign. Bye, bearophile

Re: Compound assignment operators

2010-08-26 Thread Jonathan M Davis
On Wednesday 25 August 2010 22:31:38 Yao G. wrote: Sorry, I sent the message prematurely :( Anyway, here's complete: Is there a way to make compound assignment operators (-=, +=, *= and friends) work with D's operator overload regime? I can't make them work. Look at

Re: Compound assignment operators

2010-08-26 Thread Yao G.
On Thu, 26 Aug 2010 01:46:02 -0500, Jonathan M Davis jmdavisp...@gmail.com wrote: Look at http://www.digitalmars.com/d/2.0/operatoroverloading.html (or even better, TDPL). The correct function would be opOpAssign. I believe that the syntax for += would be opOpAssign!(+)(args) { } -

Re: Three floating point questions

2010-08-26 Thread Don
bearophile wrote: Don: Do you know what cast(ulong) is doing here? Turning it from a signalling nan to a quiet nan. I really really didn't know this. Is this written somewhere in the D docs? :-) It's the way signalling nans work. _Any_ use of them raises a floating point exception, then

Debugging in D?

2010-08-26 Thread Era Scarecrow
I'm using dmd v2.048, WinDbg 5.1. I seem to be having trouble, perhaps i can get this cleared up. I'm trying to build a new structure type using math overloads (for testing). My asserts are failing; i need to debug them but can't. I've run 'dmd -gc mysource.d' as per the site, neither gdb

Re: Compound assignment operators

2010-08-26 Thread Jonathan M Davis
On Wednesday 25 August 2010 23:49:27 Yao G. wrote: On Thu, 26 Aug 2010 01:46:02 -0500, Jonathan M Davis jmdavisp...@gmail.com wrote: Look at http://www.digitalmars.com/d/2.0/operatoroverloading.html (or even better, TDPL). The correct function would be opOpAssign. I believe that the

Re: Debugging in D?

2010-08-26 Thread Trass3r
You could try cv2pdb.

Re: Ways to initialize static arrays

2010-08-26 Thread Stanislav Blinov
Sorry, I pressed the wrong button so the message was sent to your email. Reciting: 26.08.2010 1:53, Philippe Sigaud wrote: I came up with the templates in my initial post. They seem to work, but I doubt those are legal solutions. . If they work, then they are legal :) How

Re: Debugging in D?

2010-08-26 Thread Era Scarecrow
== Quote from Trass3r (u...@known.com)'s article You could try cv2pdb. I'll look it up. I'm trying ddbg, and although it is working so far, there has to be something better (At least giving it commands and breakpoints)

Re: TDPL: Operator Overloading

2010-08-26 Thread Philippe Sigaud
On Wed, Aug 25, 2010 at 17:27, Andrej Mitrovic andrej.mitrov...@test.comwrote: What would be really cool is if we had a property that returned a random value of any integrated type. And for user-defined types, maybe it would call a method with a special name. I guess one could make a template

Re: Debugging in D?

2010-08-26 Thread Trass3r
I'll look it up. I'm trying ddbg, and although it is working so far, there has to be something better (At least giving it commands and breakpoints) Isn't ddbg dead? Your best shot is to debug on Windows using cv2pdb or the upcoming Mago Debugger plugin with Visual Studio.

Re: easier way?

2010-08-26 Thread Philippe Sigaud
On Thu, Aug 26, 2010 at 03:50, bearophile bearophileh...@lycos.com wrote: Jason Spencer: Knowing just the # of dimensions won't tell me the total size or how to index. I need the size of each dimension. If you create such structs, you do what you want, so it represents a nD rectangular

Re: Can't get D calling C to build.

2010-08-26 Thread Philippe Sigaud
On Tue, Aug 24, 2010 at 15:24, Bob Cowdery b...@bobcowdery.plus.com wrote: I might be on my way :-) . Good :) I just skimmed through the thread, so I don't know if you're still using Code::Blocks. I'm using it, and it highlights D code with no problem. For 10.05, it's in Settings Editor

Re: easier way?

2010-08-26 Thread bearophile
Philippe Sigaud: What you lose is the CT checking that can be done for multiplication or additions if all dimensions are exposed in the type. If you want, you may create a second nD array struct where sizes too are CT values, plus two methods/free functions to convert between the two array

Re: Ways to initialize static arrays

2010-08-26 Thread Philippe Sigaud
On Thu, Aug 26, 2010 at 14:11, Stanislav Blinov bli...@loniir.ru wrote: Sorry, I pressed the wrong button so the message was sent to your email. Reciting: Does that work for you? Yes! Beautiful, thanks! That beats hell out of my clumsy templates :) Your templates are not clumsy, it's

Re: Ways to initialize static arrays

2010-08-26 Thread Stanislav Blinov
Philippe Sigaud wrote: That beats hell out of my clumsy templates :) Your templates are not clumsy, it's typically the way some other PL would process lists/arrays. I used to write a lot of these. But 6 months ago, CTFE got seven-leagues boots and right now it's much easier on the eye to

Re: easier way?

2010-08-26 Thread Philippe Sigaud
On Thu, Aug 26, 2010 at 22:41, bearophile bearophileh...@lycos.com wrote: Philippe Sigaud: What you lose is the CT checking that can be done for multiplication or additions if all dimensions are exposed in the type. If you want, you may create a second nD array struct where sizes too are

[Issue 4721] compilation slow when compiling unittests on dcollections

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4721 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4728] New: Crash by protected/private constructor in an other module

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4728 Summary: Crash by protected/private constructor in an other module Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords:

[Issue 4726] writeln(0.0 / 0.0) prints -nan

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4726 --- Comment #2 from bearophile_h...@eml.cc 2010-08-26 00:50:46 PDT --- OK. Thank you for your answer. I will not reopen this bug because it's a minor thing, but I don't like it because: From a purely ideal point of view, a NaN isn't a number,

[Issue 4681] Appender access violation

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4681 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|

[Issue 4729] New: std.algorithm: atrange iota behaviour

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4729 Summary: std.algorithm: atrange iota behaviour Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component:

[Issue 4681] Appender access violation

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4681 --- Comment #11 from nfx...@gmail.com 2010-08-26 05:20:08 PDT --- This is still full of dirty runtime calls and attempts to emulate half of lifetime.d (though the worst part is commented). Why doesn't it simply use the D standard way to

[Issue 4681] Appender access violation

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4681 --- Comment #12 from Steven Schveighoffer schvei...@yahoo.com 2010-08-26 05:51:15 PDT --- (In reply to comment #11) This is still full of dirty runtime calls and attempts to emulate half of lifetime.d (though the worst part is commented).

[Issue 4729] std.algorithm: strange iota behaviour

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4729 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc

[Issue 4681] Appender access violation

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4681 --- Comment #13 from nfx...@gmail.com 2010-08-26 06:20:17 PDT --- (In reply to comment #12) Why are runtime calls dirty? I don't use any undocumented runtime functions... Because they do more work than necessary and rely on more

[Issue 4721] compilation slow when compiling unittests on dcollections

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4721 --- Comment #8 from Steven Schveighoffer schvei...@yahoo.com 2010-08-26 06:22:33 PDT --- This helps, but only reduces it to 20 seconds (but a 66% reduction is pretty good!). I ran another round of profiling, and found we have a new

[Issue 4730] New: std.c.stdlib.exit in CTFE

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4730 Summary: std.c.stdlib.exit in CTFE Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD

[Issue 4681] Appender access violation

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4681 --- Comment #14 from Steven Schveighoffer schvei...@yahoo.com 2010-08-26 06:30:03 PDT --- (In reply to comment #13) (In reply to comment #12) Why are runtime calls dirty? I don't use any undocumented runtime functions... Because they

[Issue 4021] [CTFE] AA rehash

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4021 --- Comment #3 from bearophile_h...@eml.cc 2010-08-26 06:31:44 PDT --- With dmd 2.048 the error message is a little different: ...\dmd\src\druntime\import\object.di(354): Error: _aaRehash cannot be interpreted at compile time, because it has

[Issue 4729] std.algorithm: strange iota behaviour

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4729 --- Comment #2 from Max Klyga necrom...@gmail.com 2010-08-26 07:50:27 PDT --- This bug was introduced in 2.048, as is 2.047 iota stops but fails shortly after: src/phobos/std/algorithm.d(279): Enforcement failed -- Configure issuemail:

[Issue 4717] std.bitmanip.BitArray changes

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4717 --- Comment #8 from bearophile_h...@eml.cc 2010-08-26 07:56:20 PDT --- See also bug 4124 and bug 4123 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 4139] Forward reference error in front() of iterable struct

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4139 bearophile_h...@eml.cc changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 4731] New: cannot call protected base class method by using base class name

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4731 Summary: cannot call protected base class method by using base class name Product: D Version: unspecified Platform: Other OS/Version: Windows Status: NEW

[Issue 4681] Appender access violation

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4681 --- Comment #15 from nfx...@gmail.com 2010-08-26 10:12:08 PDT --- (In reply to comment #14) I'm not assuming anything about the memory layout. GC.qalloc gives me a block of data, and I'm using the data. Its interface is well defined without

[Issue 4713] PATCH for interface generation: cleanup, bugfixes and prettyprinting

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4713 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 4732] New: __traits(identifier) performs constant folding on symbols

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4732 Summary: __traits(identifier) performs constant folding on symbols Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: patch,

[Issue 4721] compilation slow when compiling unittests on dcollections

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4721 bearophile_h...@eml.cc changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

[Issue 4602] Header generation turns 'typeof(x)(...)' into C-style cast

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4602 Don clugd...@yahoo.com.au changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 4733] New: Possible bugs caused by dynamic arrays in boolean evaluation context

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4733 Summary: Possible bugs caused by dynamic arrays in boolean evaluation context Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity:

[Issue 4735] New: class that implements interface can override a static method

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4735 Summary: class that implements interface can override a static method Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity:

[Issue 4734] New: immutable return type specifier without parantheses confuses the compiler

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4734 Summary: immutable return type specifier without parantheses confuses the compiler Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW

[Issue 4080] Patch for building dynamic libraries on Mac OS X

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4080 --- Comment #5 from Walter Bright bugzi...@digitalmars.com 2010-08-26 14:21:48 PDT --- http://www.dsource.org/projects/dmd/changeset/372 I changed the location of the new files to be more consistent with druntime's existing conventions:

[Issue 3976] segfault on anonymous struct/union

2010-08-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3976 --- Comment #4 from Ellery Newcomer ellery-newco...@utulsa.edu 2010-08-26 14:25:04 PDT --- (In reply to comment #3) There is no kmd file. Also this code seems to use Tango (dunno which version!). So it's not a usable test case. But I'm

  1   2   >