Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-06 Thread grauzone
Yay! But every time you give, we demand more. Where's dmd for 64 bit platforms?

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-06 Thread dsimcha
== Quote from grauzone (n...@example.net)'s article Yay! But every time you give, we demand more. Where's dmd for 64 bit platforms? I assume a 64-bit port would be significantly harder than the Mac or FreeBSD ports because it would require writing a whole new codegen, or at least heavily

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-06 Thread Ellery Newcomer
Walter Bright wrote: Now works for FreeBSD 7.1! http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.043.zip The D2 version for FreeBSD isn't ready yet. Lots of library work to be done. awesome!

Re: dmd 1.043 alpha for FreeBSD 7.1

2009-04-06 Thread Tim Matthews
On Mon, 06 Apr 2009 12:07:38 +0200 grauzone n...@example.net wrote: Yay! But every time you give, we demand more. Where's dmd for 64 bit platforms? I use 64 bit freebsd too but thanks anyway.

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Robert Fraser
Brad Roberts wrote: BCS wrote: Hello Daniel, http://dobbscodetalk.com/index.php?option=com_myblogshow=Multithreade d-I-O.htmlItemid=29 -- Daniel P.S. It really seems barbaric in our digital age that we all have motors and levers and gears and spinning things in our boxes. Those damned

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Robert Fraser
Jarrett Billingsley wrote: On Mon, Apr 6, 2009 at 12:07 AM, davidl dav...@126.com wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer overlapping(actually I find it quite hard to

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Robert Fraser
davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer overlapping(actually I find it quite hard to detect and fix). What's your opinion and experience? Null

Re: what are the most common bugs in your D apps?

2009-04-06 Thread bearophile
Robert Fraser Wrote: I'm assuming overflow Which could be 95% solved by buffer overflow checks :-) My ears are ringing. Bye, bearophile

silly question: why can't i alias an expression?

2009-04-06 Thread dennis luehring
why is something like that not possible? (except the missing langauge feature thing) could it be a nice extension? double A,B; alias ( A + B * 10 ) my_expression; double C = my_expression;

Re: what are the most common bugs in your D apps?

2009-04-06 Thread downs
davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer overlapping(actually I find it quite hard to detect and fix). What's your opinion and experience? I'd say it's

Re: The version of dsss I use

2009-04-06 Thread Alexander Pánek
Bill Baxter wrote: I really hope someone emerges to take over DSSS before too long here. I didn't think it was going to take so long. :-( If you have any bugfixes/patches/requests for DSSS, create a ticket for it and I'll review those. I do have commit rights, but I can't find the time to

Freedom, D and Chapel language

2009-04-06 Thread bearophile
Despite D being a system language, I use it mostly for numerical processing, data processing, and so on, where Python is too much slow. I also appreciate D because it gives me _freedom_ to use memory almost as I want (expecially from the C heap, because the GC heap adds some constraints,

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
I'm not really sure about this, but doesn't running the error check tool clean the cache?

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
Also, microsoft bootvis.

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Walter Bright
bearophile wrote: There are several other bugs I have had in D. The good thing is that, I am used to use lot of unit testing, so I can catch many of them. Around I see lot of D code with too few unittests (for example most of the code in Phobos has just few unittests. That's bad). Sure, but if

Re: What Scala?

2009-04-06 Thread Nick Sabalausky
Georg Wrede georg.wr...@iki.fi wrote in message news:gr7p2o$2ne...@digitalmars.com... As a child I read SciAm (from 12 on), and read about all this way cool stuff the folks at MIT and the other places do, and my goal was to go to America to study. Then some crap happened at home. MIT is

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Walter Bright
Saaa wrote: I'm not really sure about this, but doesn't running the error check tool clean the cache? I have no idea.

Nesting in pure functions

2009-04-06 Thread bearophile
This post was originally meant for digitalmars.D.learn, but maybe it can interest more people here. Now that the D1/D2 zips have a better internal structure and don't require DMC anymore I am more free to use D2 more, so I have tried to understand how the optimization of pure functions works.

Re: Nesting in pure functions

2009-04-06 Thread Don
bearophile wrote: This post was originally meant for digitalmars.D.learn, but maybe it can interest more people here. Now that the D1/D2 zips have a better internal structure and don't require DMC anymore I am more free to use D2 more, so I have tried to understand how the optimization of

Re: Nesting in pure functions

2009-04-06 Thread bearophile
Don: But this one works: pure int double_sqr(int x) { int z; int do_sqr(int y) pure { return y*y; } z = do_sqr(x); z += do_sqr(x); return z; } Right, thank you. But why the pure is after the argument list? I didn't even know that syntax is allowed. I have

Re: Nesting in pure functions

2009-04-06 Thread bearophile
bearophile: I don't know why sqr is written like this: Sorry, I meant: I don't know why sqr isn't written like this: This is the same compiled with -inline too, as you can see double_sqr() isn't being inlined, despite containing just an imul and an add: sqr: mov

Thread pause and resume

2009-04-06 Thread Steve Teale
Earlier versions of D2.x used std.thread which had pause() and resume(). The later versions use core.thread where these appear to be missing. Any portable workaround suggestions?

Re: Thread pause and resume

2009-04-06 Thread grauzone
Steve Teale wrote: Earlier versions of D2.x used std.thread which had pause() and resume(). The later versions use core.thread where these appear to be missing. Any portable workaround suggestions? Monitors. They're even built-in in the language (synchronized statement)

Re: Nesting in pure functions

2009-04-06 Thread Don
Don wrote: bearophile wrote: This post was originally meant for digitalmars.D.learn, but maybe it can interest more people here. Now that the D1/D2 zips have a better internal structure and don't require DMC anymore I am more free to use D2 more, so I have tried to understand how the

Re: Nesting in pure functions

2009-04-06 Thread Don
Don wrote: Don wrote: bearophile wrote: This post was originally meant for digitalmars.D.learn, but maybe it can interest more people here. Now that the D1/D2 zips have a better internal structure and don't require DMC anymore I am more free to use D2 more, so I have tried to understand

Re: Nesting in pure functions

2009-04-06 Thread bearophile
Don: (sorry that this isn't a proper patch, I've hacked my DMD so much by now, the line numbers would be all wrong... g) Ah lol :-) What have you done to your poor DMD? Are such changes good/interesting enough for Walter to be interested in them? Bye, bearophile

minimal evaluation

2009-04-06 Thread Qian Xu
Hi All, Is minimal evaluation always enabled in D? I want to write a function IsNull(), so that I can check the precondition as follows:   if (isNull(foo) ||       isNull(foo.getBar) ||       isNull(foo.getBar.getBar2)   {     return false;   }   // normal code goes here If an argument is

Re: minimal evaluation

2009-04-06 Thread Qian Xu
if (isNull(foo) || isNull(foo.getBar) || isNull(foo.getBar.getBar2) { return false; } Update: If minimal evaluation is not always enabled, and foo.getBar is NULL. I will get a segfault when evaluating foo.getBar.getBar2.

Re: Nesting in pure functions

2009-04-06 Thread Don
bearophile wrote: Don: (sorry that this isn't a proper patch, I've hacked my DMD so much by now, the line numbers would be all wrong... g) Ah lol :-) What have you done to your poor DMD? Are such changes good/interesting enough for Walter to be interested in them? They're fixes for

Re: minimal evaluation

2009-04-06 Thread downs
Qian Xu wrote: Hi All, Is minimal evaluation always enabled in D? I want to write a function IsNull(), so that I can check the precondition as follows: if (isNull(foo) || isNull(foo.getBar) || isNull(foo.getBar.getBar2) { return false; } // normal code goes

Re: minimal evaluation

2009-04-06 Thread Daniel Keep
Qian Xu wrote: Hi All, Is minimal evaluation always enabled in D? I want to write a function IsNull(), so that I can check the precondition as follows: if (isNull(foo) || isNull(foo.getBar) || isNull(foo.getBar.getBar2) { return false; } // normal code

Re: minimal evaluation

2009-04-06 Thread Daniel Keep
downs wrote: Qian Xu wrote: Hi All, Is minimal evaluation always enabled in D? I want to write a function IsNull(), so that I can check the precondition as follows: if (isNull(foo) || isNull(foo.getBar) || isNull(foo.getBar.getBar2) { return false; } //

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 2:24 AM, Robert Fraser fraseroftheni...@gmail.com wrote: davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer overlapping(actually I find it quite

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 2:33 AM, bearophile bearophileh...@lycos.com wrote: Robert Fraser Wrote: I'm assuming overflow Which could be 95% solved by buffer overflow checks :-) My ears are ringing. For what it's worth, mine aren't. I have never had a bug due to integer overflow. No, I take

Re: Thread pause and resume

2009-04-06 Thread Robert Jacques
On Mon, 06 Apr 2009 05:57:24 -0400, Steve Teale steve.te...@britseyeview.com wrote: Earlier versions of D2.x used std.thread which had pause() and resume(). The later versions use core.thread where these appear to be missing. Any portable workaround suggestions? Also, these functions

Re: Thread pause and resume

2009-04-06 Thread Steve Teale
Robert Jacques Wrote: On Mon, 06 Apr 2009 05:57:24 -0400, Steve Teale steve.te...@britseyeview.com wrote: Earlier versions of D2.x used std.thread which had pause() and resume(). The later versions use core.thread where these appear to be missing. Any portable workaround

Re: Thread pause and resume

2009-04-06 Thread Steve Teale
grauzone Wrote: Steve Teale wrote: Earlier versions of D2.x used std.thread which had pause() and resume(). The later versions use core.thread where these appear to be missing. Any portable workaround suggestions? Monitors. They're even built-in in the language (synchronized

Re: minimal evaluation

2009-04-06 Thread davidl
在 Mon, 06 Apr 2009 19:33:31 +0800,Qian Xu quian...@stud.tu-ilmenau.de 写道: if (isNull(foo) || isNull(foo.getBar) || isNull(foo.getBar.getBar2) { return false; } Update: If minimal evaluation is not always enabled, and foo.getBar is NULL. I will get a segfault when evaluating

D, so it happend...

2009-04-06 Thread Baas
In the past 10 motnhs, I completly rewrote the D Compiler in C#! Motivations: - LOVE THE D LANGUAGE!! - To be fully able to develop in a VS.NET like environment using D, with no limmitations. Cons: - Requires Windows platforms (XP and above). - Requires P4+ CPU. - 2-4 times slower compiler

Re: D, so it happend...

2009-04-06 Thread Jason House
Any plans for release? It looks like you made many language changes according to personal style preferences... Baas Wrote: In the past 10 motnhs, I completly rewrote the D Compiler in C#! Motivations: - LOVE THE D LANGUAGE!! - To be fully able to develop in a VS.NET like environment

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Jason House
Jarrett Billingsley Wrote: On Mon, Apr 6, 2009 at 2:24 AM, Robert Fraser fraseroftheni...@gmail.com wrote: davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer

Re: D, so it happend...

2009-04-06 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 10:29 AM, Baas hac...@webmail.co.za wrote: In the past 10 motnhs, I completly rewrote the D Compiler in C#! Sorry... NO CODE OR BINARIES INCLUDED WITH THIS MESSAGE! (yet) Why, because it's complete vaporware? Why would someone rewrite the D compiler in C# - and change

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Christopher Wright
Saaa wrote: I always thought people who would need to reinstall their windows to keep it clean were like the ones that didn't know how computers works. I haven't reinstalled my windows box in like 6 years and it doesn't startup any slower then before. If only you keep to the simple things like:

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Christopher Wright
davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of integer overlapping(actually I find it quite hard to detect and fix). What's your opinion and experience? Logic errors.

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Christopher Wright
Jason House wrote: Jarrett Billingsley Wrote: On Mon, Apr 6, 2009 at 2:24 AM, Robert Fraser fraseroftheni...@gmail.com wrote: davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of

Re: D, so it happend...

2009-04-06 Thread Ellery Newcomer
Baas wrote: Tech info: - Parse the code into XML using Regular Expressions. *double take*

Re: minimal evalu-OMG COOKIE YAY

2009-04-06 Thread downs
Daniel Keep wrote: downs wrote: Qian Xu wrote: Hi All, Is minimal evaluation always enabled in D? I want to write a function IsNull(), so that I can check the precondition as follows: if (isNull(foo) || isNull(foo.getBar) || isNull(foo.getBar.getBar2) { return

Re: what are the most common bugs in your D apps?

2009-04-06 Thread Don
Jason House wrote: Jarrett Billingsley Wrote: On Mon, Apr 6, 2009 at 2:24 AM, Robert Fraser fraseroftheni...@gmail.com wrote: davidl wrote: Actually I'm not sure about what kind of bugs my d apps usually have. But I notice that the harmonia project(I now make it uptodate) gets the problem of

Re: D, so it happend...

2009-04-06 Thread downs
Ellery Newcomer wrote: Baas wrote: Tech info: - Parse the code into XML using Regular Expressions. *double take* It's all about the better optimizations that are now possible!

Re: D, so it happend...

2009-04-06 Thread Bass
bearophile Wrote: Jarrett Billingsley: Why would someone rewrite the D compiler in C# - For fun, I guess :-) Or maybe as a programming exercise, etc. So there are already four D compilers, (and no one of them is high quality). - Faster overall application execution speed. - Tested

Re: D, so it happend...

2009-04-06 Thread Bass
Tom S Wrote: How is compilar formed? How is compilar formed? How executable get maked? Well, it (the D code) is simply converted to HLA (High Level Assembler) files. HLA take it from there and compile it into .obj files. From there you can bassically choose your favourite linker to create exe

Re: D, so it happend...

2009-04-06 Thread downs
Bass wrote: downs Wrote: Ellery Newcomer wrote: Baas wrote: Tech info: - Parse the code into XML using Regular Expressions. *double take* It's all about the better optimizations that are now possible! I've only provide a brief description upfront. It basically is now more dynamic to

Re: D, so it happend...

2009-04-06 Thread bearophile
Jarrett Billingsley: Why would someone rewrite the D compiler in C# - For fun, I guess :-) Or maybe as a programming exercise, etc. So there are already four D compilers, (and no one of them is high quality). - Faster overall application execution speed. - Tested against existing benchmarks.

Re: D, so it happend...

2009-04-06 Thread Tom S
How is compilar formed? How is compilar formed? How executable get maked?

Re: D, so it happend...

2009-04-06 Thread Bass
downs Wrote: Ellery Newcomer wrote: Baas wrote: Tech info: - Parse the code into XML using Regular Expressions. *double take* It's all about the better optimizations that are now possible! I've only provide a brief description upfront. It basically is now more dynamic to do

Re: D, so it happend...

2009-04-06 Thread Baas
Jason House Wrote: Any plans for release? It looks like you made many language changes according to personal style preferences... As I've mentioned, it's possoble for the developer to change it back to his/her style. - Release? I'm busy finalizing the release version and will drop it in

cast a LinkSeq

2009-04-06 Thread Qian Xu
Hi All, can I cast a LinkSeq from inherited type to base type? code --    class Fruit {}    class Apple: Fruit {}    auto apples = new LinkSeq!(Apple);    apples.append(new Apple);    assert(apples !is null);    assert(apples.length == 1);        

Re: D, so it happend...

2009-04-06 Thread Bass
Jarrett Billingsley Wrote: On Mon, Apr 6, 2009 at 10:29 AM, Baas hac...@webmail.co.za wrote: In the past 10 motnhs, I completly rewrote the D Compiler in C#! Sorry... NO CODE OR BINARIES INCLUDED WITH THIS MESSAGE! (yet) Why, because it's complete vaporware? Why would someone

Re: D, so it happend...

2009-04-06 Thread BCS
Hello Jason, Any plans for release? It looks like you made many language changes according to personal style preferences... My thought exactly. It's not sounding like D anymore...

Re: D, so it happend...

2009-04-06 Thread dennis luehring
Bass schrieb: Tom S Wrote: How is compilar formed? How is compilar formed? How executable get maked? Well, it (the D code) is simply converted to HLA (High Level Assembler) files. HLA take it from there and compile it into .obj files. From there you can bassically choose your favourite

Re: D, so it happend...

2009-04-06 Thread Alexander Pánek
Baas wrote: In the past 10 motnhs, I completly rewrote the D Compiler in C#! Wtf. No you didn't.

Re: Thread pause and resume

2009-04-06 Thread Sean Kelly
== Quote from Steve Teale (steve.te...@britseyeview.com)'s article Earlier versions of D2.x used std.thread which had pause() and resume(). The later versions use core.thread where these appear to be missing. Any portable workaround suggestions? Use thread synchronization and signaling

Re: Thread pause and resume

2009-04-06 Thread Sean Kelly
== Quote from Steve Teale (steve.te...@britseyeview.com)'s article In some code I wrote at that time, I had a worker thread pool. When a thread had done its job it would mark itself as available then pause. The listener thread would then resume it or start one that had never been started. I'm

Re: Thread pause and resume

2009-04-06 Thread Jason House
Sean Kelly Wrote: == Quote from Steve Teale (steve.te...@britseyeview.com)'s article Earlier versions of D2.x used std.thread which had pause() and resume(). The later versions use core.thread where these appear to be missing. Any portable workaround suggestions? Use thread

Re: silly question: why can't i alias an expression?

2009-04-06 Thread BCS
Reply to dennis, why is something like that not possible? (except the missing langauge feature thing) could it be a nice extension? double A,B; alias ( A + B * 10 ) my_expression; double C = my_expression; You can only alias things that at some level are symbols. In effect an alias is a

Re: D, so it happend...

2009-04-06 Thread davidl
在 Mon, 06 Apr 2009 22:29:26 +0800,Baas hac...@webmail.co.za 写道: In the past 10 motnhs, I completly rewrote the D Compiler in C#! Motivations: - LOVE THE D LANGUAGE!! - To be fully able to develop in a VS.NET like environment using D, with no limmitations. Cons: - Requires Windows platforms

Re: D, so it happend...

2009-04-06 Thread Baas
No. Just .. no. On the off chance that you're serious about that - XML is a data format that encodes tree-like hierarchical information. But if your parser isn't already using a tree-like structure internally, you're doing something wrong. And if it is, there's absolutely no reason

Re: Thread pause and resume

2009-04-06 Thread Steve Teale
Steve Teale Wrote: Sean Kelly Wrote: == Quote from Steve Teale (steve.te...@britseyeview.com)'s article In some code I wrote at that time, I had a worker thread pool. When a thread had done its job it would mark itself as available then pause. The listener thread would then

Re: Thread pause and resume

2009-04-06 Thread Steve Teale
Sean Kelly Wrote: == Quote from Steve Teale (steve.te...@britseyeview.com)'s article In some code I wrote at that time, I had a worker thread pool. When a thread had done its job it would mark itself as available then pause. The listener thread would then resume it or start one that had

Re: Thread pause and resume

2009-04-06 Thread Sean Kelly
== Quote from Steve Teale (steve.te...@britseyeview.com)'s article Sean Kelly Wrote: == Quote from Steve Teale (steve.te...@britseyeview.com)'s article In some code I wrote at that time, I had a worker thread pool. When a thread had done its job it would mark itself as available then

Re: Thread pause and resume

2009-04-06 Thread Sean Kelly
== Quote from Jason House (jason.james.ho...@gmail.com)'s article It's a shame stuff like core.sync doesn't make it into the official changelog with the dmd releases... That's my fault I suppose. But since core.sync still appears to be missing from the import path, the next release can

Re: Thread pause and resume

2009-04-06 Thread Steve Teale
Sean Kelly Wrote: == Quote from Steve Teale (steve.te...@britseyeview.com)'s article Sean Kelly Wrote: == Quote from Steve Teale (steve.te...@britseyeview.com)'s article In some code I wrote at that time, I had a worker thread pool. When a thread had done its job it would mark

Re: D, so it happend...

2009-04-06 Thread Steve Teale
Baas Wrote: In the past 10 motnhs, I completly rewrote the D Compiler in C#! Motivations: - LOVE THE D LANGUAGE!! - To be fully able to develop in a VS.NET like environment using D, with no limmitations. Cons: - Requires Windows platforms (XP and above). - Requires P4+ CPU. - 2-4

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 11:07 AM, Christopher Wright dhase...@gmail.com wrote: Saaa wrote: I always thought people who would need to reinstall their windows to keep it clean were like the ones that didn't know how computers works. I haven't reinstalled my windows box in like 6 years and it

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread dsimcha
== Quote from Jarrett Billingsley (jarrett.billings...@gmail.com)'s article On Mon, Apr 6, 2009 at 11:07 AM, Christopher Wright dhase...@gmail.com wrote: Saaa wrote: I always thought people who would need to reinstall their windows to keep it clean were like the ones that didn't know

Re: minimal evaluation

2009-04-06 Thread TomD
Qian Xu Wrote: Hi All, Is minimal evaluation always enabled in D? I want to write a function IsNull(), so that I can check the precondition as follows:   if (isNull(foo) ||       isNull(foo.getBar) ||       isNull(foo.getBar.getBar2)   {     return false;   }   //

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 3:31 PM, dsimcha dsim...@yahoo.com wrote: Yeah, I've always wondered why some people put so much emphasis on the 10% of computer security that's highly technical in nature when 90% of the problem of computer security is between the keyboard and the chair.

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
Christopher Wright dhase...@gmail.com wrote in message news:grd5rq$f7...@digitalmars.com... Saaa wrote: I always thought people who would need to reinstall their windows to keep it clean were like the ones that didn't know how computers works. I haven't reinstalled my windows box in like 6

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Andrei Alexandrescu
Jarrett Billingsley wrote: On Mon, Apr 6, 2009 at 3:31 PM, dsimcha dsim...@yahoo.com wrote: Yeah, I've always wondered why some people put so much emphasis on the 10% of computer security that's highly technical in nature when 90% of the problem of computer security is between the keyboard and

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 4:13 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: ComputerIlliterateFriend: Hey Jarrett, can you come over and fix my computer? Jarrett: What's it doing? CIF: It's popping up all sorts of dialog boxes telling me I need to get Spyware Aweseom Remover and

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread superdan
Jarrett Billingsley Wrote: On Mon, Apr 6, 2009 at 4:13 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: ComputerIlliterateFriend: Hey Jarrett, can you come over and fix my computer? Jarrett: What's it doing? CIF: It's popping up all sorts of dialog boxes telling me I need

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Sean Kelly
== Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article Jarrett Billingsley wrote: On Mon, Apr 6, 2009 at 3:31 PM, dsimcha dsim...@yahoo.com wrote: Yeah, I've always wondered why some people put so much emphasis on the 10% of computer security that's highly technical

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
superdan su...@dan.org wrote in message news:grdoag$1hd...@digitalmars.com... Jarrett Billingsley Wrote: On Mon, Apr 6, 2009 at 4:13 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: ComputerIlliterateFriend: Hey Jarrett, can you come over and fix my computer? Jarrett:

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Andrei Alexandrescu
superdan wrote: Jarrett Billingsley Wrote: On Mon, Apr 6, 2009 at 4:13 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: ComputerIlliterateFriend: Hey Jarrett, can you come over and fix my computer? Jarrett: What's it doing? CIF: It's popping up all sorts of dialog boxes telling

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
I desperately wish my computer-illiterate family members would move off of Windows as well, since it would eliminate basically every tech- support call I field from them. Perhaps I've simply had good luck with other OSes, but Windows is the only one I've had regular problems with. Maybe as

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 4:22 PM, superdan su...@dan.org wrote: Jarrett Billingsley Wrote: On Mon, Apr 6, 2009 at 4:13 PM, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: ComputerIlliterateFriend: Hey Jarrett, can you come over and fix my computer? Jarrett: What's it doing?

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
Except this has actually happened to me, modulo a couple details. Three or four times. You should install noscript or maybe better: sandboxie

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Andrei Alexandrescu
Sean Kelly wrote: As for programming specifically... I made a deliberate shift away from Windows years ago because it's a nightmare to develop for (aside from Visual Studio, which is a great debugging environment). Best move I ever made. Yah, I too remember my Windows-only days the way I'd

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
Yah, I too remember my Windows-only days the way I'd remember a temporary disability. (I recall to this day: any little thing I wanted to do, I'd start off a wizard in Dev Studio. It was kind of a surprise for me to find out that all those programs had been written, along with plenty

Re: D, so it happend...

2009-04-06 Thread BCS
Reply to Baas, But if your parser isn't already using a tree-like structure internally, you're doing something wrong. And if it is, there's absolutely no reason to use XML as some weird sort of intermediary stage. [...] I saw nothing in your description that in any way would be made

Re: Thread pause and resume

2009-04-06 Thread Fawzi Mohamed
On 2009-04-06 20:49:50 +0200, Steve Teale steve.te...@britseyeview.com said: Steve Teale Wrote: Sean Kelly Wrote: == Quote from Steve Teale (steve.te...@britseyeview.com)'s article In some code I wrote at that time, I had a worker thread pool. When a thread had done its job it would mark

Re: Thread pause and resume

2009-04-06 Thread Andrei Alexandrescu
Fawzi Mohamed wrote: On 2009-04-06 20:49:50 +0200, Steve Teale steve.te...@britseyeview.com said: Steve Teale Wrote: Sean Kelly Wrote: == Quote from Steve Teale (steve.te...@britseyeview.com)'s article In some code I wrote at that time, I had a worker thread pool. When a thread had

The new, new phobos sneak preview

2009-04-06 Thread Andrei Alexandrescu
Hi everybody, I just committed all of Phobos into svn on dsource.org. That is not an official release and has known and unknown bugs, limitations, and rhinodemons. I expect some ripples before we stabilize, but when we will we'll stabilize at a higher potential. For convenience, I've also

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Jarrett Billingsley
On Mon, Apr 6, 2009 at 4:41 PM, Saaa em...@needmail.com wrote: Except this has actually happened to me, modulo a couple details. Three or four times. You should install noscript or maybe better: sandboxie /facepalm, I'm not talking about getting viruses, I'm talking about dealing with morons

Re: The new, new phobos sneak preview

2009-04-06 Thread BCS
Reply to Andrei, auto a = slurp!(int, double)(filename, %s, %s); Each line in the file looks like e.g. 1, 2.3. slurp returns an array of Tuple!(int, double) with the parsed content. It would be nice to have a version that would slurp into pre defined structs. struct S{ int i; double d }

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Steven Schveighoffer
On Mon, 06 Apr 2009 15:53:56 -0400, Jarrett Billingsley jarrett.billings...@gmail.com wrote: On Mon, Apr 6, 2009 at 3:31 PM, dsimcha dsim...@yahoo.com wrote: Yeah, I've always wondered why some people put so much emphasis on the 10% of computer security that's highly technical in nature

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread grauzone
Jarrett Billingsley wrote: On Mon, Apr 6, 2009 at 4:41 PM, Saaa em...@needmail.com wrote: Except this has actually happened to me, modulo a couple details. Three or four times. You should install noscript or maybe better: sandboxie /facepalm, I'm not talking about getting viruses, I'm talking

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
Except this has actually happened to me, modulo a couple details. Three or four times. You should install noscript or maybe better: sandboxie /facepalm, I'm not talking about getting viruses, I'm talking about dealing with morons who don't realize that going to bad sites make their

Re: cast a LinkSeq

2009-04-06 Thread Qian Xu
Qian Xu wrote: Hi All, can I cast a LinkSeq from inherited type to base type? What I can do, is to create a new LinkSeq!(Fruit) and then cast all elements one by one. -- Xu, Qian (stanleyxu) http://stanleyxu2005.blogspot.com

why Unix?

2009-04-06 Thread Andrei Alexandrescu
Saaa wrote: Yah, I too remember my Windows-only days the way I'd remember a temporary disability. (I recall to this day: any little thing I wanted to do, I'd start off a wizard in Dev Studio. It was kind of a surprise for me to find out that all those programs had been written, along with

  1   2   >