Re: dmd codegen improvements

2015-09-05 Thread Iain Buclaw via Digitalmars-d
On 5 Sep 2015 11:25 pm, "Walter Bright via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > On 9/5/2015 5:54 AM, Adam D. Ruppe wrote: >> >> On Saturday, 5 September 2015 at 08:15:06 UTC, Walter Bright wrote: >>> >>> And your post did it too. >>> >>> If you're using the Thunderbird news read

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread bitwise via Digitalmars-d
On Sunday, 6 September 2015 at 03:42:20 UTC, BBasile wrote: [...] auto rng = StreamRange!(MemoryStream,long)(instance); auto rng = StreamRange!(FileStream,float)(instance); --- Actually I have nothing against your helper functions (except that they don't make Streams compatible with std.algorit

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread BBasile via Digitalmars-d
On Sunday, 6 September 2015 at 02:19:41 UTC, bitwise wrote: On Saturday, 5 September 2015 at 23:00:43 UTC, BBasile wrote: On Saturday, 5 September 2015 at 19:59:03 UTC, bitwise wrote: On Saturday, 5 September 2015 at 06:15:17 UTC, Jonathan M Davis wrote: [...] Thanks for the explanation, but

Re: Current state of GUI's

2015-09-05 Thread Rikki Cattermole via Digitalmars-d
On 06/09/15 11:43 AM, motaito wrote: On Saturday, 5 September 2015 at 19:13:12 UTC, Jacob Carlborg wrote: It links now when I manged to install all the dependencies, but it doesn't run :(. Segfaults for some reason, I haven't looked in to it. Bummer... However, I appreciate that you are giving

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 23:00:43 UTC, BBasile wrote: On Saturday, 5 September 2015 at 19:59:03 UTC, bitwise wrote: On Saturday, 5 September 2015 at 06:15:17 UTC, Jonathan M Davis wrote: [...] Thanks for the explanation, but could you give an example of how Stream would be rangified?

Re: dmd codegen improvements

2015-09-05 Thread Walter Bright via Digitalmars-d
On 9/5/2015 4:32 PM, Manu via Digitalmars-d wrote: Perhaps the NG server should make an effort to trim the wanted message content then? I'd rather work with NNTP as it is. I'm still astonished I'm the only one that uses Gmail... this should be a rampant problem. It probably is a rampant pro

Re: Current state of GUI's

2015-09-05 Thread motaito via Digitalmars-d
On Saturday, 5 September 2015 at 19:13:12 UTC, Jacob Carlborg wrote: It links now when I manged to install all the dependencies, but it doesn't run :(. Segfaults for some reason, I haven't looked in to it. Bummer... However, I appreciate that you are giving it a shot! But you see my point. An

Re: dmd codegen improvements

2015-09-05 Thread Manu via Digitalmars-d
On 6 September 2015 at 07:20, Walter Bright via Digitalmars-d wrote: > On 9/5/2015 5:54 AM, Adam D. Ruppe wrote: >> >> On Saturday, 5 September 2015 at 08:15:06 UTC, Walter Bright wrote: >>> >>> And your post did it too. >>> >>> If you're using the Thunderbird news reader, typing Cntl-U will show

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread BBasile via Digitalmars-d
On Saturday, 5 September 2015 at 19:59:03 UTC, bitwise wrote: On Saturday, 5 September 2015 at 06:15:17 UTC, Jonathan M Davis wrote: On Friday, 4 September 2015 at 22:36:01 UTC, bitwise wrote: On Friday, 4 September 2015 at 14:40:43 UTC, Jonathan M Davis wrote: [...] Wow...this is surprising

Re: Plot library wanted

2015-09-05 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 5 September 2015 at 19:38:46 UTC, dan wrote: On Monday, 27 January 2014 at 12:46:43 UTC, terchestor wrote: ((snipped)) Does anyone using PLplot can tell if it's worth using it or is there any alternative? Well, this thread is a 1.5 years old but i was looking around for info on

Can we have strcu with destructor have postblit disabled if none is provided ?

2015-09-05 Thread deadalnix via Digitalmars-d
I find myself reproducing the same pattern again and again, where I need to disable postblit on struct that have a sdestructor. It doesn't make any sense and it is error prone. If the struct is copied, then the destructor is going to run twice and free the same resource twice, which is dangero

Re: Error reporting is terrible

2015-09-05 Thread deadalnix via Digitalmars-d
On Saturday, 5 September 2015 at 15:55:00 UTC, Idan Arye wrote: On Friday, 4 September 2015 at 03:26:50 UTC, David DeWitt wrote: On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote: [...] I think D is about as easy to install as anything. But then again I dont use Windows so I dont

Re: dmd codegen improvements

2015-09-05 Thread Walter Bright via Digitalmars-d
On 9/5/2015 5:54 AM, Adam D. Ruppe wrote: On Saturday, 5 September 2015 at 08:15:06 UTC, Walter Bright wrote: And your post did it too. If you're using the Thunderbird news reader, typing Cntl-U will show the full source of the message. This is perfectly normal for emails and such. They are m

Re: std.Stream.InputStream convenience functions

2015-09-05 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 06:15:17 UTC, Jonathan M Davis wrote: On Friday, 4 September 2015 at 22:36:01 UTC, bitwise wrote: On Friday, 4 September 2015 at 14:40:43 UTC, Jonathan M Davis wrote: [...] Wow...this is surprising. At first glance, the streams seemed to be fairly well done.

Re: Plot library wanted

2015-09-05 Thread dan via Digitalmars-d
On Monday, 27 January 2014 at 12:46:43 UTC, terchestor wrote: ((snipped)) Does anyone using PLplot can tell if it's worth using it or is there any alternative? Well, this thread is a 1.5 years old but i was looking around for info on plplot also, and it is possible to use it with d, at least

Re: Current state of GUI's

2015-09-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-05 13:41, motaito wrote: Glad to see someone giving an effort for BSD. It would be awesome to have more developers keeping it in mind. It links now when I manged to install all the dependencies, but it doesn't run :(. Segfaults for some reason, I haven't looked in to it. -- /Jaco

Re: Containers

2015-09-05 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 06:59:28 UTC, Russel Winder wrote: On Fri, 2015-09-04 at 22:21 +, bitwise via Digitalmars-d wrote: This is another problem: --->FROM THE D DOCS "Containers do not form a class hierarchy, instead they implement a common set of primitives (see table below)

Re: Containers

2015-09-05 Thread bitwise via Digitalmars-d
On Saturday, 5 September 2015 at 06:44:30 UTC, Dmitry Olshansky wrote: On 05-Sep-2015 05:36, bitwise wrote: On Friday, 4 September 2015 at 23:15:54 UTC, Andrei Alexandrescu wrote: [...] I feel should add that I still very much favor simple value type containers. C++ does just fine with value

Re: Interesting user mistake

2015-09-05 Thread Mint via Digitalmars-d
On Saturday, 5 September 2015 at 10:45:35 UTC, ponce wrote: On Friday, 4 September 2015 at 18:55:03 UTC, Mint wrote: On Friday, 4 September 2015 at 17:17:26 UTC, Andrei A simple solution would be to just have unary + perform integer promotion, as it does in C. Wait, what? Is this another sec

Re: Error reporting is terrible

2015-09-05 Thread Idan Arye via Digitalmars-d
On Friday, 4 September 2015 at 03:26:50 UTC, David DeWitt wrote: On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote: [...] I think D is about as easy to install as anything. But then again I dont use Windows so I dont have 99.9% of the hassles that come along with that. Since you

Re: dmd codegen improvements

2015-09-05 Thread via Digitalmars-d
On Friday, 4 September 2015 at 14:25:11 UTC, rsw0x wrote: I believe the FOSS version of Intellij can install the Javascript plugin which also adds support for Typescript. May be wrong. Hm. I bought WebStorm to do Dart, but have kinda put Dart on hold, so maybe not a bad idea. I assume it woul

Re: So what about -betterC flag?

2015-09-05 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 5 September 2015 at 12:56:48 UTC, Adam D. Ruppe wrote: On Saturday, 5 September 2015 at 10:51:23 UTC, Rel wrote: I remember that there was some buzz around undocumented -betterC compiler flag that should allow people get away from hard druntime dependencies and write bare metal cod

Re: So what about -betterC flag?

2015-09-05 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 5 September 2015 at 10:51:23 UTC, Rel wrote: I remember that there was some buzz around undocumented -betterC compiler flag that should allow people get away from hard druntime dependencies and write bare metal code, drivers or kernel modules in some limited D subset. -betterC u

Re: dmd codegen improvements

2015-09-05 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 5 September 2015 at 08:15:06 UTC, Walter Bright wrote: And your post did it too. If you're using the Thunderbird news reader, typing Cntl-U will show the full source of the message. This is perfectly normal for emails and such. They are multipart/alternative MIME messages which

Re: Current state of GUI's

2015-09-05 Thread motaito via Digitalmars-d
On Friday, 4 September 2015 at 14:47:47 UTC, Jacob Carlborg wrote: On 2015-09-04 15:23, motaito wrote: BSD is certainly the most difficult to find a solution. I tried compiling DWT on PC-BSD and it compile just if I remove one check for Linux. Although it doesn't link because I haven't mana

Re: Current state of GUI's

2015-09-05 Thread motaito via Digitalmars-d
On Friday, 4 September 2015 at 15:03:59 UTC, Chris wrote: I see what you mean. As far as I know, the libraries (PyD, LuaD etc.) would be in the static build of the executable, so you wouldn't have to "distribute" them, only Python or Lua. But that's no problem either, just include lua5.x.so/dll

So what about -betterC flag?

2015-09-05 Thread Rel via Digitalmars-d
I remember that there was some buzz around undocumented -betterC compiler flag that should allow people get away from hard druntime dependencies and write bare metal code, drivers or kernel modules in some limited D subset. Could you make some comments about it. Does it exists and is it practic

Re: Interesting user mistake

2015-09-05 Thread ponce via Digitalmars-d
On Friday, 4 September 2015 at 18:55:03 UTC, Mint wrote: On Friday, 4 September 2015 at 17:17:26 UTC, Andrei A simple solution would be to just have unary + perform integer promotion, as it does in C. Wait, what? Is this another secret difference from C integer promotion rules?

Re: Interesting user mistake

2015-09-05 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 4 September 2015 at 23:08:21 UTC, Andrei Alexandrescu wrote: On 09/04/2015 12:39 PM, skoppe wrote: On Thursday, 3 September 2015 at 16:46:30 UTC, Andrei Alexandrescu wrote: http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang The gist

Re: dmd codegen improvements

2015-09-05 Thread Dmitry Olshansky via Digitalmars-d
On 18-Aug-2015 13:45, Walter Bright wrote: Martin ran some benchmarks recently that showed that ddmd compiled with dmd was about 30% slower than when compiled with gdc/ldc. This seems to be fairly typical. I'm interested in ways to reduce that gap. .. 2. instruction selection patterns like s

Re: Behavior of opEquals

2015-09-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-05 08:26, Jonathan M Davis wrote: Clearly, you haven't read TDPL recently enough. ;) There is a free function, opEquals, in object.d which gets called for classes, and _it_ is what == gets translated to for classes, and it calls the member function version of opEquals on classes: ht

Re: Behavior of opEquals

2015-09-05 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-05 08:18, Jonathan M Davis wrote: There is nothing in the spec about supporting operator overloading with free functions, so I don't know where you get the idea that it's even intended to be a feature. UFCS applies to functions which use the member function call syntax, and operators

Re: dmd codegen improvements

2015-09-05 Thread Walter Bright via Digitalmars-d
On 9/5/2015 1:00 AM, Iain Buclaw via Digitalmars-d wrote: On 5 Sep 2015 6:31 am, "Manu via Digitalmars-d" mailto:digitalmars-d@puremagic.com>> wrote: > > On 5 September 2015 at 14:14, Walter Bright via Digitalmars-d > mailto:digitalmars-d@puremagic.com>> wrote: > > On 9/4/2015 7:52 AM, Manu v

Re: Possible solution for export : `unittest export`?

2015-09-05 Thread Joseph Rushton Wakeling via Digitalmars-d
On Tuesday, 1 September 2015 at 18:25:06 UTC, H. S. Teoh wrote: On Tue, Sep 01, 2015 at 06:14:05PM +, deadalnix via Digitalmars-d wrote: A ton of code is not unitestable. GUI as a starter. Random number generator. Very rare events handling outside the control of the program. Concurent code

Re: dmd codegen improvements

2015-09-05 Thread Iain Buclaw via Digitalmars-d
On 5 Sep 2015 6:31 am, "Manu via Digitalmars-d" wrote: > > On 5 September 2015 at 14:14, Walter Bright via Digitalmars-d > wrote: > > On 9/4/2015 7:52 AM, Manu via Digitalmars-d wrote: > >> > >> [...] > > > > > > Sadly, your newsgroup software is back to doing double posts - once in > > plaintext

Re: Containers

2015-09-05 Thread Russel Winder via Digitalmars-d
On Fri, 2015-09-04 at 22:21 +, bitwise via Digitalmars-d wrote: > […] > This is another problem: >"Containers do not form a class hierarchy, instead they > implement a common set of primitives (see table below). These > primitives each guarantee a specific worst case complexity and > th