D Concurrent GC

2010-09-09 Thread Leandro Lucarella
Not quite ready for prime-time yet, but I think it's in a stage when it could be interesting anyway (at least for developers or people that want to experiment): http://llucax.com.ar/blog/blog/post/-1a4bdfba If you like history, you can read all the related posts in chronological order here:

Re: D Concurrent GC

2010-09-09 Thread Bernard Helyer
Very nice. I've been reading your posts on this with interest. How much work would be involved in porting this to druntime?

Re: The D2 homepage is missing something

2010-09-09 Thread Peter Alexander
== Quote from Andrej Mitrovic (andrej.mitrov...@gmail.com)'s article http://www.digitalmars.com/d/2.0/index.html (hint: books list). Wouldn't that just be book list at the moment?

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread retard
Thu, 09 Sep 2010 01:25:51 -0400, Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message news:i69jg8$2mu...@digitalmars.com... I always get the old versions of CDs before they were remastered :-) as I don't care for the audio leveling. I've always been unclear on

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Walter Bright
Nick Sabalausky wrote: I must be young. My first CD player was a $200 (IIRC) Sega CD (Mega CD for those outside the states and Canada). I also remember paying $600 for 64K (that's K, not M) of memory. It was worth every penny at the time, too!

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:i6a576$19j...@digitalmars.com... Nick Sabalausky wrote: I must be young. My first CD player was a $200 (IIRC) Sega CD (Mega CD for those outside the states and Canada). I also remember paying $600 for 64K (that's K, not M) of

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:i6a52a$19j...@digitalmars.com... Nick Sabalausky wrote: Weird. 'Nothing else matters' is such a depressing-sounding song, I still can't imagine any grandmothers liking it. (But then who am I to talk? My granda's in her 80's,

Re: The D2 homepage is missing something

2010-09-09 Thread Olivier Pisano
Le 09/09/2010 03:29, Andrej Mitrovic a écrit : http://www.digitalmars.com/d/2.0/index.html (hint: books list). We have a saying here for this kind of situations: shoemakers wear the worst shoes :)

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:i69vov$o6...@digitalmars.com... Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message Secondly, people ought to read contracts before they sign them. It's their own fault if they don't. Until recent

Re: The D2 homepage is missing something

2010-09-09 Thread Jonathan M Davis
On Wednesday 08 September 2010 23:47:50 Peter Alexander wrote: == Quote from Andrej Mitrovic (andrej.mitrov...@gmail.com)'s article http://www.digitalmars.com/d/2.0/index.html (hint: books list). Wouldn't that just be book list at the moment? Actually, technically, I think that the

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread retard
Thu, 09 Sep 2010 05:10:00 -0400, Nick Sabalausky wrote: Walter Bright newshou...@digitalmars.com wrote in message http://en.wikipedia.org/wiki/Dynamic_range_compression#Marketing And here's why I shoot for the old ones: http://en.wikipedia.org/wiki/File:Cd_loudness_trend-something.gif

R-values and const ref

2010-09-09 Thread Eldar Insafutdinov
A while back dmd stopped allowing rvalues as ref function arguments. I entirely understand why it was done, but the same restriction applies to the ref const function parameters. This causes a lot of pain and at the moment makes me use pass-by-value parameters(most notably when using structs). C++

Re: Bizprac database.. Urgent

2010-09-09 Thread Stephan
On 08.09.2010 18:16, Simen kjaeraas wrote: retard r...@tard.com.invalid wrote: Wed, 08 Sep 2010 15:20:52 +0200, BLS wrote: Wrong target audience? Nein, wir sprechen ja hier alle Deutsch, ja? echt hier sprechen alle Deutsch ? gut zu wissen ;)

Re: Thread + socket = (shared) problem? (2.048)

2010-09-09 Thread Bane
Thank you for your reply. I have been migrating some socket/thread code from D1 to D2 lately. One of changes is that Thread.this() must have super(run) in it. It seems when one of the thread doesn't have that line, strange things happen. Can anyone confirm this code to reproduce error: import

Re: R-values and const ref

2010-09-09 Thread bearophile
Eldar Insafutdinov: Can we please restore this behavior for const ref? From what I have seen D is built on different principles, so I doubt that will change. Bye, bearophile

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Steven Schveighoffer
On Wed, 08 Sep 2010 22:12:37 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: On Wed, 08 Sep 2010 14:58:39 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: FWIW, Metallica's Garage Inc (the second disc) has some sort of

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Steven Schveighoffer
On Thu, 09 Sep 2010 01:05:45 -0400, Nick Sabalausky a...@a.a wrote: Walter Bright newshou...@digitalmars.com wrote in message news:i69fr8$2cb...@digitalmars.com... In introducing such subtle distortion, Metallica runs the risk of being labeled a band with lousy sound. IIRC, A lot of

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Daniel Gibson
Steven Schveighoffer schrieb: On Wed, 08 Sep 2010 22:12:37 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: On Wed, 08 Sep 2010 14:58:39 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: FWIW, Metallica's Garage Inc (the

Re: R-values and const ref

2010-09-09 Thread Steven Schveighoffer
On Thu, 09 Sep 2010 06:08:14 -0400, Eldar Insafutdinov e.insafutdi...@gmail.com wrote: A while back dmd stopped allowing rvalues as ref function arguments. I entirely understand why it was done, but the same restriction applies to the ref const function parameters. This causes a lot of pain

Re: foreach is slower than for?

2010-09-09 Thread Justin Johansson
On 9/09/2010 6:56 AM, Tomek Sowiński wrote: Without -O -release the difference is even greater Is this normal? I mean, shouldn't the compiler optimize foreach a bit more? Or is it that I simply misunderstand generated code? Yes, it should; that was the point of having foreach in the language:

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Daniel Gibson
retard schrieb: Thu, 09 Sep 2010 05:55:46 +0200, Daniel Gibson wrote: retard schrieb: Wed, 08 Sep 2010 19:15:15 -0700, Walter Bright wrote: retard wrote: You must be young then. I got my first CD-ROM drive with my Pentium 75. The first 1x external CD-ROM drives were pretty expensive. I

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Steven Schveighoffer
On Thu, 09 Sep 2010 07:28:12 -0400, Daniel Gibson metalcae...@gmail.com wrote: Steven Schveighoffer schrieb: On Wed, 08 Sep 2010 22:12:37 -0400, Walter Bright newshou...@digitalmars.com wrote: Steven Schveighoffer wrote: On Wed, 08 Sep 2010 14:58:39 -0400, Walter Bright

Re: R-values and const ref

2010-09-09 Thread dsimcha
== Quote from Eldar Insafutdinov (e.insafutdi...@gmail.com)'s article A while back dmd stopped allowing rvalues as ref function arguments. I entirely understand why it was done, but the same restriction applies to the ref const function parameters. This causes a lot of pain and at the moment

Re: R-values and const ref

2010-09-09 Thread dsimcha
== Quote from dsimcha (dsim...@yahoo.com)'s article FWIW, if you can't use templates and auto ref, there is a (slightly verbose) solution. DMD apparently allows overloading ref vs. non-ref, so you can write a forwarding function to bind to rvalues. ...except that I just realized it's broken

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread BCS
Hello Nick, BCS n...@anon.com wrote in message news:a6268ff1bb248cd1ce96dc11...@news.digitalmars.com... Hello Nick, domino eff...@sitemine.org wrote in message news:i666vt$158...@digitalmars.com... Walter Bright Wrote: domino wrote: Ordinary man cannot have 5 TB of data because ALL

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread BCS
Hello retard, Wed, 08 Sep 2010 04:17:33 +, BCS wrote: I've never owned a CD player that wasn't a CD-ROM drive. I've never come across a disk I couldn't play. You must be young then. Nope, just cheap. The first CD-ROM drive I got was after high school. -- ... IXOYE

Re: The D2 homepage is missing something

2010-09-09 Thread Andrej Mitrovic
Lol, sorry for my poor English. Anyway, TDPL is missing from the homepage, that's all. On Thu, Sep 9, 2010 at 11:21 AM, Jonathan M Davis jmdavisp...@gmail.com wrote: On Wednesday 08 September 2010 23:47:50 Peter Alexander wrote: == Quote from Andrej Mitrovic (andrej.mitrov...@gmail.com)'s

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread BCS
Hello Nick, Walter Bright newshou...@digitalmars.com wrote in message news:i69jg8$2mu...@digitalmars.com... retard wrote: I doubt they have any power to fight the record company in these kinds of issues. A friend of a friend signed a deal with a record company owned by a multinational

Re: The D2 homepage is missing something

2010-09-09 Thread Jonathan M Davis
On Thursday 09 September 2010 06:59:39 Andrej Mitrovic wrote: Lol, sorry for my poor English. Anyway, TDPL is missing from the homepage, that's all. Yeah, well. English isn't everyone's first language, and out of those for whom it is, there are plenty that get it wrong a lot of the time.

Re: R-values and const ref

2010-09-09 Thread Eldar Insafutdinov
I agree that auto ref may be a better option here, but I still see no reason to disallow it. It is a performance issue, not a safety one. And as you said this only works for templates, virtual functions are out of the game here. PS. opEquals issue is very annoying, indeed.

Re: R-values and const ref

2010-09-09 Thread Steven Schveighoffer
On Thu, 09 Sep 2010 11:24:14 -0400, Eldar Insafutdinov e.insafutdi...@gmail.com wrote: I agree that auto ref may be a better option here, but I still see no reason to disallow it. It is a performance issue, not a safety one. And as you said this only works for templates, virtual functions

Re: R-values and const ref

2010-09-09 Thread dsimcha
== Quote from Steven Schveighoffer (schvei...@yahoo.com)'s article On Thu, 09 Sep 2010 11:24:14 -0400, Eldar Insafutdinov e.insafutdi...@gmail.com wrote: I agree that auto ref may be a better option here, but I still see no reason to disallow it. It is a performance issue, not a safety

Re: R-values and const ref

2010-09-09 Thread Andrei Alexandrescu
On 9/9/10 6:32 CDT, Steven Schveighoffer wrote: On Thu, 09 Sep 2010 06:08:14 -0400, Eldar Insafutdinov e.insafutdi...@gmail.com wrote: A while back dmd stopped allowing rvalues as ref function arguments. I entirely understand why it was done, but the same restriction applies to the ref const

Re: R-values and const ref

2010-09-09 Thread Andrei Alexandrescu
On 9/9/10 10:43 CDT, dsimcha wrote: == Quote from Steven Schveighoffer (schvei...@yahoo.com)'s article On Thu, 09 Sep 2010 11:24:14 -0400, Eldar Insafutdinov e.insafutdi...@gmail.com wrote: I agree that auto ref may be a better option here, but I still see no reason to disallow it. It is a

Re: R-values and const ref

2010-09-09 Thread Steven Schveighoffer
On Thu, 09 Sep 2010 13:03:17 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: On 9/9/10 6:32 CDT, Steven Schveighoffer wrote: On Thu, 09 Sep 2010 06:08:14 -0400, Eldar Insafutdinov e.insafutdi...@gmail.com wrote: A while back dmd stopped allowing rvalues as ref function

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread dsimcha
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article On 09/09/2010 03:40 AM, Nick Sabalausky wrote: Broadcast DTV is shit. I honestly can't believe anyone was ever stupid enough to buy into the DTV will give you more channels at better quality bullshit. I mean

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Andrei Alexandrescu
On 09/09/2010 03:40 AM, Nick Sabalausky wrote: Broadcast DTV is shit. I honestly can't believe anyone was ever stupid enough to buy into the DTV will give you more channels at better quality bullshit. I mean seriously: you get interference on an analog signal and you get a little static overlaid

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Andrei Alexandrescu
On 9/9/10 12:19 CDT, dsimcha wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article On 09/09/2010 03:40 AM, Nick Sabalausky wrote: Broadcast DTV is shit. I honestly can't believe anyone was ever stupid enough to buy into the DTV will give you more channels at better

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Daniel Gibson
BCS schrieb: Hello Nick, Walter Bright newshou...@digitalmars.com wrote in message news:i69jg8$2mu...@digitalmars.com... retard wrote: I doubt they have any power to fight the record company in these kinds of issues. A friend of a friend signed a deal with a record company owned by a

Re: Bizprac database.. Urgent

2010-09-09 Thread Matthias Pleh
Am 09.09.2010 12:33, schrieb Stephan: On 08.09.2010 18:16, Simen kjaeraas wrote: retard r...@tard.com.invalid wrote: Wed, 08 Sep 2010 15:20:52 +0200, BLS wrote: Wrong target audience? Nein, wir sprechen ja hier alle Deutsch, ja? echt hier sprechen alle Deutsch ? gut zu wissen ;) was

Re: foreach is slower than for?

2010-09-09 Thread Jesse PHillips
Justin Johansson Wrote: Is there a roadmap for what things are more urgent? The OP has a valid point in asking what is the point of the language. A decent roadmap would help newcomers and oldcomers alike to stay with the Holy Grail of D. Justin There is a somewhat official road map[1].

Re: foreach is slower than for?

2010-09-09 Thread Andrej Mitrovic
Are the ones listed under Known D2 official? There's Remove C-style declarations. Is this really scheduled for removal? On Thu, Sep 9, 2010 at 8:33 PM, Jesse PHillips jessekphillip...@gmail.com wrote: Justin Johansson Wrote: Is there a roadmap for what things are more urgent?  The OP has a

Re: SortedRange and new docs for std.container

2010-09-09 Thread Tomek Sowiński
Tomek Sowiński napisał: 2. Could makeIndex() also return SortedRange? The predicate should be morphed of course to account for dereferencing. Or better: SortedRange's underlying range should account for dereferencing and leave the predicate intact. Tomek

Re: Bizprac database.. Urgent

2010-09-09 Thread Nick Sabalausky
Matthias Pleh go...@web.at wrote in message news:i6b988$s4...@digitalmars.com... Am 09.09.2010 12:33, schrieb Stephan: On 08.09.2010 18:16, Simen kjaeraas wrote: retard r...@tard.com.invalid wrote: Wed, 08 Sep 2010 15:20:52 +0200, BLS wrote: Wrong target audience? Nein, wir sprechen ja

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Nick Sabalausky
BCS n...@anon.com wrote in message news:a6268ff1bcc78cd1e0464501...@news.digitalmars.com... Hello Nick, I've always been unclear on what that is. Is that where they make the volume-level relatively consistent? (If so, then I wish the DVD companies would start doing it. I hate when I have to

Re: Bizprac database.. Urgent

2010-09-09 Thread Andrej Mitrovic
I've heard there's no standard library for it. Apparently you have to choose between the DDR and BRD libraries. Or maybe that was Germany 1.0, I've heard good things about Germany 2.0. :p On Thu, Sep 9, 2010 at 9:45 PM, Nick Sabalausky a...@a.a wrote: Matthias Pleh go...@web.at wrote in message

Re: Bizprac database.. Urgent

2010-09-09 Thread Daniel Gibson
Nick Sabalausky schrieb: Matthias Pleh go...@web.at wrote in message news:i6b988$s4...@digitalmars.com... Am 09.09.2010 12:33, schrieb Stephan: On 08.09.2010 18:16, Simen kjaeraas wrote: retard r...@tard.com.invalid wrote: Wed, 08 Sep 2010 15:20:52 +0200, BLS wrote: Wrong target audience?

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.viri2yp3eav...@localhost.localdomain... On Thu, 09 Sep 2010 01:05:45 -0400, Nick Sabalausky a...@a.a wrote: Walter Bright newshou...@digitalmars.com wrote in message news:i69fr8$2cb...@digitalmars.com... In introducing such

Re: [Slight OT] TDPL in Russia

2010-09-09 Thread Daniel Gibson
Nick Sabalausky schrieb: Speaking of all this, am I correct in my understanding that Load was right after Megadeth split off? (And that black album was right before?) No, Megadeth was found in 1983 - Mustaine was kicked out of Metallica before they recorded their first album. (Don't like

Re: foreach is slower than for?

2010-09-09 Thread Stanislav Blinov
Tomek Sowiński wrote: Dnia 08-09-2010 o 23:12:55 Stanislav Blinov stanislav.bli...@gmail.com napisał(a): I was wondering about it for some time: void foreach_loop(int arr[100]) { foreach(i,a; arr) { auto e = a; } } void for_loop(int arr[100]) { for (int i = 0; i

Re: [Really OT] Metallica

2010-09-09 Thread Steven Schveighoffer
On Thu, 09 Sep 2010 16:05:34 -0400, Nick Sabalausky a...@a.a wrote: Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.viri2yp3eav...@localhost.localdomain... On Thu, 09 Sep 2010 01:05:45 -0400, Nick Sabalausky a...@a.a wrote: Walter Bright newshou...@digitalmars.com wrote in

Re: foreach is slower than for?

2010-09-09 Thread Stanislav Blinov
Justin Johansson wrote: On 9/09/2010 6:56 AM, Tomek Sowiński wrote: Without -O -release the difference is even greater Is this normal? I mean, shouldn't the compiler optimize foreach a bit more? Or is it that I simply misunderstand generated code? Yes, it should; that was the point of having

Re: [Really OT] Metallica

2010-09-09 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vir8rzjeeav...@localhost.localdomain... As Daniel wrote, Mustane left before Kill 'em All (their first album), but his name is listed as the one of the authors for many of those songs. If you are looking for what was the

Re: Bizprac database.. Urgent

2010-09-09 Thread Simen kjaeraas
Nick Sabalausky a...@a.a wrote: What's this German language I keep hearing about? Is it imperative? OO? Functional? Multi-paradigm? Only middle European paradigms are supported. What's a good compiler for it? Compilation in German is, sadly, manual. -- Simen

Re: Bizprac database.. Urgent

2010-09-09 Thread Walter Bright
Simen kjaeraas wrote: Nein, wir sprechen ja hier alle Deutsch, ja? Keepen das fingern raus von der machinen, sitz backen und vatchen das blinkenlights!

Re: Bizprac database.. Urgent

2010-09-09 Thread Walter Bright
Nick Sabalausky wrote: What's this German language I keep hearing about? [...] What's a good compiler for it? http://www.hyperrealm.com/main.php?s=talkfilters

Re: Bizprac database.. Urgent

2010-09-09 Thread Nick Sabalausky
Walter Bright newshou...@digitalmars.com wrote in message news:i6botm$1ru...@digitalmars.com... Simen kjaeraas wrote: Nein, wir sprechen ja hier alle Deutsch, ja? Keepen das fingern raus von der machinen, sitz backen und vatchen das blinkenlights! Gotta love google translate: Keeper of

Re: foreach is slower than for?

2010-09-09 Thread Jonathan M Davis
On Thursday, September 09, 2010 13:31:13 Stanislav Blinov wrote: Justin Johansson wrote: On 9/09/2010 6:56 AM, Tomek Sowiński wrote: Without -O -release the difference is even greater Is this normal? I mean, shouldn't the compiler optimize foreach a bit more? Or is it that I simply

Re: Bizprac database.. Urgent

2010-09-09 Thread Daniel Gibson
Nick Sabalausky schrieb: Walter Bright newshou...@digitalmars.com wrote in message news:i6botm$1ru...@digitalmars.com... Simen kjaeraas wrote: Nein, wir sprechen ja hier alle Deutsch, ja? Keepen das fingern raus von der machinen, sitz backen und vatchen das blinkenlights! Gotta love google

One more update on d-programming-language.org

2010-09-09 Thread Andrei Alexandrescu
http://d-programming-language.org From David Gileadi: the annoying Google Translate bar behavior on browsers with other languages has been fixed, the behavior when shrinking and growing the window size has been improved, the Reddit button is gone, and a few styles were changed. Could have

Re: One more update on d-programming-language.org

2010-09-09 Thread Michel Fortin
On 2010-09-09 20:07:20 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org said: http://d-programming-language.org From David Gileadi: the annoying Google Translate bar behavior on browsers with other languages has been fixed, the behavior when shrinking and growing the window size

Re: One more update on d-programming-language.org

2010-09-09 Thread bearophile
Andrei: http://d-programming-language.org The designer of those pages has taken the wrong choice of wasting some part of the screen on the right. I will need to use no style often with Firefox to use those pages and be able to read the non-proportional text present in those pages. Bye,

Re: One more update on d-programming-language.org

2010-09-09 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:i6c1u7$2f1...@digitalmars.com... Andrei: http://d-programming-language.org The designer of those pages has taken the wrong choice of wasting some part of the screen on the right. I will need to use no style often with Firefox to

Input handling? (newbie alert!)

2010-09-09 Thread Cavalary
Now I guess this has been asked and answered 1000 times before around here, but looking through discussions that don't even seem to thread properly (unless you're in the archive) would just confuse me more, and the few attempts at D tutorials for people who are not already skilled C++ programmers

Using IMPLIB with D dll's

2010-09-09 Thread Andrej Mitrovic
I'm trying to figure how to use IMPLIB with D DLLs. The DLL example from the samples folder in DMD: dll.d http://pastebin.com/C9NJtqUV mydll.d http://pastebin.com/8idbnge0 test.d http://pastebin.com/6c953BSJ mydll.def http://pastebin.com/4enbfbc7 First I'll show how to build without using

Re: Using IMPLIB with D dll's

2010-09-09 Thread Andrej Mitrovic
One other thing. I'm trying to use a tool called objconv, it allows modification of .lib files, e.g. adding aliases to existing symbols. I was trying to add aliases to existing symbols and make them have underscores, but the tool complains that I can't use OMF file formats that have a 16bit

Re: Using IMPLIB with D dll's

2010-09-09 Thread Andrej Mitrovic
Forgive me for my ignorance, I neglected to use the /s switch for IMPLIB: $ implib /s mydll3.lib mydll.dll $ dmd test.d mydll3.lib $ test hello dll world However I still get a .lib file with no symbols if I use IMPLIB with a .def file instead of a .dll file. Is this a bug? Andrej Mitrovic

Re: forks/pipes and std.socket

2010-09-09 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vipr20xfeav...@localhost.localdomain... On Tue, 07 Sep 2010 16:51:48 -0400, Nick Sabalausky a...@a.a wrote: Ah cool, looking forward to it. I was just about ready to launch into a bunch of std.process improvements myself ;) In

Re: forks/pipes and std.socket

2010-09-09 Thread Steven Schveighoffer
On Thu, 09 Sep 2010 16:25:44 -0400, Nick Sabalausky a...@a.a wrote: Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vipr20xfeav...@localhost.localdomain... On Tue, 07 Sep 2010 16:51:48 -0400, Nick Sabalausky a...@a.a wrote: Ah cool, looking forward to it. I was just about

std.conv.parse of string literals

2010-09-09 Thread bearophile
This is a small D2 program that uses parse: import std.conv: parse; void main() { parse!int(111); parse!int(111); } Gives the error: std.conv.ConvError: std.conv(1122): Can't convert value `' of type string base 2 to type int But a string literal isn't a lvalue. This seems all wrong.

Re: std.conv.parse of string literals

2010-09-09 Thread Andrej Mitrovic
This might be related to that bug report you wrote where you could assign one string literal to another. bearophile Wrote: But a string literal isn't a lvalue. This seems all wrong.

Re: std.conv.parse of string literals

2010-09-09 Thread bearophile
Andrej Mitrovic: This might be related to that bug report you wrote where you could assign one string literal to another. Right. And recently there's another similar bug report in Bugzilla. So I may add this case just to one of those bug reports. Bye, bearophile

Re: forks/pipes and std.socket

2010-09-09 Thread Nick Sabalausky
Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vir82cineav...@localhost.localdomain... On Thu, 09 Sep 2010 16:25:44 -0400, Nick Sabalausky a...@a.a wrote: Steven Schveighoffer schvei...@yahoo.com wrote in message news:op.vipr20xfeav...@localhost.localdomain... On Tue, 07

Re: Input handling? (newbie alert!)

2010-09-09 Thread Bernard Helyer
I've not time for a more full answer now (I'll try later), but please, for the love of God, don't use scanf! As a general hint, use std.stdio.readln to get input as a string, then use the `to` function found in std.conv to convert it into what you want: auto input = readln(); auto

Re: Input handling? (newbie alert!)

2010-09-09 Thread Jonathan M Davis
On Thursday 09 September 2010 17:48:47 Bernard Helyer wrote: I've not time for a more full answer now (I'll try later), but please, for the love of God, don't use scanf! As a general hint, use std.stdio.readln to get input as a string, then use the `to` function found in std.conv to convert it

Re: Input handling? (newbie alert!)

2010-09-09 Thread Bernard Helyer
On Thu, 09 Sep 2010 18:07:43 -0700, Jonathan M Davis wrote: Yes std.stdio.readln() would be a much better way to go. However, I'd suggest using std.conv.parse() rather than std.conv.to(). It's less picky about whitespace, and it allows you to deal with the case where you have multiple values

Re: Using getchar

2010-09-09 Thread Andrej Mitrovic
Jesse Phillips Wrote: Hello, I didn't get much feedback on what was thought about it. I think I'll try the Phobos mailing list... Okay, give it a try. :) without my library the code would look something like (sorry cant test right now) import std.stdio; void main() { char

Re: ubyte[] - immutable(ubyte)[]

2010-09-09 Thread Andrej Mitrovic
I'm trying to use algorithm.copy, but I get back nothing in the copy buffer. How do I to copy an array of ubyte's? iimport std.algorithm, std.concurrency, std.stdio; void main() { enum bufferSize = 4; auto tid = spawn(fileWriter); // Read loop foreach

slow runtime

2010-09-09 Thread Dr. Smith
The class code below runs terribly slow. Conversely, when converted into a function (albeit returning only one value), it runs fast. Any insights into this or suggestions to get a function to return multiple types at once? ...library code... module testlib; import std.stdio, std.string; class

Re: slow runtime

2010-09-09 Thread Jonathan M Davis
On Thursday 09 September 2010 19:40:47 Dr. Smith wrote: The class code below runs terribly slow. Conversely, when converted into a function (albeit returning only one value), it runs fast. Any insights into this or suggestions to get a function to return multiple types at once? ...library

Re: slow runtime

2010-09-09 Thread Andrej Mitrovic
Related: Do stack variables get freed on exit or do they just get marked as unused by the GC? Because I'm not seeing any memory increase over time. I guess I have to read more about how allocation works. :p Jonathan M Davis Wrote: _every time_ that you use hit or hot in main(), you're

Re: slow runtime

2010-09-09 Thread Jonathan M Davis
On Thursday 09 September 2010 19:40:47 Dr. Smith wrote: The class code below runs terribly slow. Conversely, when converted into a function (albeit returning only one value), it runs fast. Any insights into this or suggestions to get a function to return multiple types at once? ...library

Re: slow runtime

2010-09-09 Thread Dr. Smith
Jonathan, thank you for the quick response. I made some changes as you suggested and got much more speed. For some code that I'd like to convert to D, I am exploring the pros and cons of constructing a class library (versus a C like function library). My code here is just part of that

Re: slow runtime

2010-09-09 Thread Jonathan M Davis
On Thursday 09 September 2010 20:17:23 Andrej Mitrovic wrote: Related: Do stack variables get freed on exit or do they just get marked as unused by the GC? Because I'm not seeing any memory increase over time. I guess I have to read more about how allocation works. :p Jonathan M Davis Wrote:

Re: slow runtime

2010-09-09 Thread Jonathan M Davis
On Thursday 09 September 2010 20:54:15 Dr. Smith wrote: Jonathan, thank you for the quick response. I made some changes as you suggested and got much more speed. For some code that I'd like to convert to D, I am exploring the pros and cons of constructing a class library (versus a C like

[Issue 4843] New: Inconsistency in overloading ref vs. non-ref

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4843 Summary: Inconsistency in overloading ref vs. non-ref Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity:

[Issue 3463] Integrate Precise Heap Scanning Into the GC

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3463 nfx...@gmail.com changed: What|Removed |Added Attachment #739 is|0 |1 obsolete|

[Issue 3463] Integrate Precise Heap Scanning Into the GC

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3463 nfx...@gmail.com changed: What|Removed |Added Attachment #737 is|0 |1 obsolete|

[Issue 3463] Integrate Precise Heap Scanning Into the GC

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3463 --- Comment #74 from nfx...@gmail.com 2010-09-09 06:41:46 PDT --- Created an attachment (id=753) dmd: enable precise scanning for AAs AAs are special because they use some runtime mechanism. dmd didn't allow precise scanning because not all

[Issue 3463] Integrate Precise Heap Scanning Into the GC

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3463 --- Comment #75 from nfx...@gmail.com 2010-09-09 06:43:43 PDT --- Created an attachment (id=754) tango: enable precise scanning for AAs This is the Tango patch that goes with the dmd patch (attachment 753). The AA implementation is duplicated

[Issue 3463] Integrate Precise Heap Scanning Into the GC

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3463 nfx...@gmail.com changed: What|Removed |Added Attachment #488 is|0 |1 obsolete|

[Issue 4844] New: _traits(allMembers, X) ignores version guards inside X

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4844 Summary: _traits(allMembers, X) ignores version guards inside X Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2

[Issue 4845] New: Bad error message with missing math import for ^^

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4845 Summary: Bad error message with missing math import for ^^ Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity:

[Issue 4329] Do not show error messages that refer to __error

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4329 --- Comment #12 from bearophile_h...@eml.cc 2010-09-09 12:49:36 PDT --- struct Foo { int x; } void main() { Foo(5 ^^ 5); // line 5 } DMD 2.048 shows: test.d(5): Error: must import std.math to use ^^ operator test.d(5): Error:

[Issue 4846] New: A problem with array of std.typecons.Tuple

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4846 Summary: A problem with array of std.typecons.Tuple Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2

[Issue 4847] New: std.algorithm.topN documentation

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4847 Summary: std.algorithm.topN documentation Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component:

[Issue 1001] print stack trace (in debug mode) when program die

2010-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1001 --- Comment #30 from Sean Kelly s...@invisibleduck.org 2010-09-09 13:32:47 PDT --- Okay, demangling added for Linux and OSX. I'll try to make sure that -L--export-dynamic is added to dmd.conf on Linux for the next release. -- Configure