Re: Containers

2015-09-04 Thread Dmitry Olshansky via Digitalmars-d
On 05-Sep-2015 05:36, bitwise wrote: On Friday, 4 September 2015 at 23:15:54 UTC, Andrei Alexandrescu wrote: [...] My thinking is that significant work in this(this) is poor D style. Eager copying for containers doesn't seem like the best way to go. -- Andrei I feel should add that I still ver

Re: Behavior of opEquals

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Friday, 4 September 2015 at 19:25:35 UTC, H. S. Teoh wrote: Wait, wait, did I miss something? Since when was operator overloading allowed as free functions? Or is opEquals a special case? Clearly, you haven't read TDPL recently enough. ;) There is a free function, opEquals, in object.d whi

Re: Behavior of opEquals

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Friday, 4 September 2015 at 20:39:14 UTC, Timon Gehr wrote: On 09/04/2015 09:21 PM, H. S. Teoh via Digitalmars-d wrote: Wait, wait, did I miss something? Since when was operator overloading allowed as free functions? Since UFCS, but DMD does not implement it. There is nothing in the sp

Re: std.Stream.InputStream convenience functions

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
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: On Friday, 4 September 2015 at 00:05:06 UTC, bitwise wrote: Thoughts? std.stream is on the chopping block and has been for years, and it was decided at dconf that

Re: dmd codegen improvements

2015-09-04 Thread Manu via Digitalmars-d
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, once in html. My software in this case was the mail client on Android. I'

Re: dmd codegen improvements

2015-09-04 Thread Walter Bright via Digitalmars-d
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, once in html.

Re: Containers

2015-09-04 Thread bitwise via Digitalmars-d
On Friday, 4 September 2015 at 23:15:54 UTC, Andrei Alexandrescu wrote: [...] My thinking is that significant work in this(this) is poor D style. Eager copying for containers doesn't seem like the best way to go. -- Andrei I feel should add that I still very much favor simple value type cont

Re: dmd codegen improvements

2015-09-04 Thread Manu via Digitalmars-d
Actually, in the point cloud on the web demo I've linked before, which is EXTREMELY compute intensive code, we experience a barely measurable loss in performance between pnacl and native code. 20% loss would be huge, but we see nothing like that, probably within 5% is closer to our experience. On 5

Re: Containers

2015-09-04 Thread bitwise via Digitalmars-d
On Friday, 4 September 2015 at 23:15:54 UTC, Andrei Alexandrescu wrote: My thinking is that significant work in this(this) is poor D style. Eager copying for containers doesn't seem like the best way to go. -- Andrei I would still prefer classes to the embedded RefCounted approach. It's more

Re: Containers

2015-09-04 Thread Timon Gehr via Digitalmars-d
On 09/05/2015 01:15 AM, Andrei Alexandrescu wrote: On 09/04/2015 06:36 PM, rsw0x wrote: On Friday, 4 September 2015 at 22:21:16 UTC, bitwise wrote: It specifies containers as reference types, but then goes on to explain how that's only half true, and tries to explain explain the quirks involved

Re: My problem with const

2015-09-04 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 4 September 2015 at 23:26:39 UTC, Freddy wrote: This sample doesn't compile. That's due to the nature of structs - you would be overwriting a const field. Const fields should probably be avoided since they aren't all that useful. You could instead do a const getter property for i

My problem with const

2015-09-04 Thread Freddy via Digitalmars-d
I love the way D does transitive const and immutable but i have a problem when i use const a struct field. --- struct MyStruct { int a; const int b; } struct Range { MyStruct front; void popFront() { front = MyStruct(2, 3); } enum empty = false; } --- This sa

Re: Containers

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/04/2015 06:36 PM, rsw0x wrote: On Friday, 4 September 2015 at 22:21:16 UTC, bitwise wrote: It specifies containers as reference types, but then goes on to explain how that's only half true, and tries to explain explain the quirks involved, and recommend using "make" to reconcile the proble

Re: Interesting user mistake

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/04/2015 02:55 PM, Mint wrote: On Friday, 4 September 2015 at 17:17:26 UTC, Andrei Alexandrescu wrote: On 09/03/2015 01:08 PM, H. S. Teoh via Digitalmars-d wrote: [...] Is there a way for the lexer to check for the specific character sequence '=', '+', whitespace and not others (e.g. '=',

Re: Interesting user mistake

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/04/2015 04:41 PM, Andrej Mitrovic via Digitalmars-d wrote: On 9/3/15, Andrei Alexandrescu via Digitalmars-d wrote: http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang The gist of it is the user wrote =+ instead of +=. I wonder if we should

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

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/04/2015 12:54 PM, deadalnix wrote: On Friday, 4 September 2015 at 16:26:15 UTC, Andrei Alexandrescu wrote: On 09/02/2015 05:07 PM, deadalnix wrote: On Wednesday, 2 September 2015 at 09:28:49 UTC, Dominikus Dittes Scherkl wrote: It is not unitestable. But we have concepts like "thread lo

Re: Interesting user mistake

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
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 of it is the user wrote =+ instead of +=. I wonder if we should disallow

Re: std.Stream.InputStream convenience functions

2015-09-04 Thread bitwise via Digitalmars-d
On Friday, 4 September 2015 at 14:40:43 UTC, Jonathan M Davis wrote: On Friday, 4 September 2015 at 00:05:06 UTC, bitwise wrote: Thoughts? std.stream is on the chopping block and has been for years, and it was decided at dconf that we'd actually get rid of it now rather than just have it say

Re: Containers

2015-09-04 Thread rsw0x via Digitalmars-d
On Friday, 4 September 2015 at 22:21:16 UTC, bitwise wrote: It specifies containers as reference types, but then goes on to explain how that's only half true, and tries to explain explain the quirks involved, and recommend using "make" to reconcile the problem. This is confusing, inconsistent,

Re: Containers

2015-09-04 Thread bitwise via Digitalmars-d
On Friday, 4 September 2015 at 13:26:27 UTC, wobbles wrote: On Friday, 4 September 2015 at 10:25:24 UTC, Russel Winder wrote: On Thu, 2015-09-03 at 21:11 +, bitwise via Digitalmars-d wrote: On Thursday, 3 September 2015 at 19:45:48 UTC, bitwise wrote: > I'm not sure how the container's I'v

Re: Error reporting is terrible

2015-09-04 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 4 September 2015 at 20:20:14 UTC, Freddy wrote: Not the op,but stack traces with line numbers would be nice. I know how to do it but there's only so many free code hours in the week :( You can look up one line at a time though with the addr2line utility on Linux. Copy/paste the a

Re: Error reporting is terrible

2015-09-04 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote: 1. The setup is a much compared to most modern day compilers and software. The most inappropriately kept secret of installing dmd is that you don't have to. Just unzip it and use it in-place. 2. The error messages in D are horre

Re: Interesting user mistake

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/04/2015 08:02 AM, Steven Schveighoffer wrote: On 9/3/15 5:59 PM, Brian Schott wrote: On Thursday, 3 September 2015 at 17:17:26 UTC, Steven Schveighoffer wrote: What about all other operations that may be typos from op= where op is also a unary operator? e.g. =- We'd have to special-case

Re: Interesting user mistake

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/04/2015 08:47 AM, immu wrote: On Thursday, 3 September 2015 at 16:46:30 UTC, Andrei Alexandrescu wrote: I wonder if we should disallow during tokenization the sequence "=", "+", whitespace. Surely it's not a formatting anyone would aim for, but instead a misspelling of +=. Andrei Plea

Re: Interesting user mistake

2015-09-04 Thread Andrej Mitrovic via Digitalmars-d
On 9/4/15, H. S. Teoh via Digitalmars-d wrote: > https://en.wikipedia.org/wiki/Parkinson%27s_law_of_triviality The irony is that I now spend most of my time thinking about really pressing issues, I can finally see the forest for the trees. But I'm no longer an OSS dev so all of my effort goes int

Re: Interesting user mistake

2015-09-04 Thread H. S. Teoh via Digitalmars-d
On Fri, Sep 04, 2015 at 10:41:05PM +0200, Andrej Mitrovic via Digitalmars-d wrote: > On 9/3/15, Andrei Alexandrescu via Digitalmars-d > wrote: > > http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang > > > > The gist of it is the user wrote =+ inste

Re: Interesting user mistake

2015-09-04 Thread Andrej Mitrovic via Digitalmars-d
On 9/3/15, Andrei Alexandrescu via Digitalmars-d wrote: > http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang > > The gist of it is the user wrote =+ instead of +=. I wonder if we should > disallow during tokenization the sequence "=", "+", whitespa

Re: Behavior of opEquals

2015-09-04 Thread Timon Gehr via Digitalmars-d
On 09/04/2015 09:21 PM, H. S. Teoh via Digitalmars-d wrote: Wait, wait, did I miss something? Since when was operator overloading allowed as free functions? Since UFCS, but DMD does not implement it. Or is opEquals a special case? Yup, quite special: http://dlang.org/operatoroverloading.h

Re: Error reporting is terrible

2015-09-04 Thread Freddy via Digitalmars-d
On Friday, 4 September 2015 at 00:10:46 UTC, Xinok wrote: Again, specific examples would help. Often, when newcomers detail the trouble they encountered during their first experience with D, one or more people will get to work fixing or alleviating the specific issues they mention. Not the op

Re: dmd codegen improvements

2015-09-04 Thread Ola Fosheim Grostad via Digitalmars-d
On Friday, 4 September 2015 at 18:27:14 UTC, Laeeth Isharc wrote: Sometimes it's really worth putting energy into ensuring crisp definitions. This isn't one of those cases. Your own language is exploiting polysemy in an unstraightforward manner - mixing up different meanings to achieve a rhe

Re: Bug in logger

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 17:46:11 UTC, Prudence wrote: On Friday, 4 September 2015 at 01:00:24 UTC, Mike Parker wrote: On Thursday, 3 September 2015 at 23:09:18 UTC, Prudence wrote: \..\..\src\phobos\std\experimental\logger\core.d(1784): Error: static variable stdLoggerThreadLogger cannot

Re: A Small Enhancement Idea

2015-09-04 Thread Timon Gehr via Digitalmars-d
On 09/04/2015 04:53 PM, Jonathan M Davis wrote: Normally, the only code differences between release mode and non-release mode relate to extra correctness checking - like with assertions - which get stripped out in release mode for efficiency. Failing assertions have been redefined to be undefin

Re: Behavior of opEquals

2015-09-04 Thread H. S. Teoh via Digitalmars-d
On Fri, Sep 04, 2015 at 07:10:25PM +, Jonathan M Davis via Digitalmars-d wrote: > On Thursday, 3 September 2015 at 13:05:49 UTC, Steven Schveighoffer wrote: > >On 9/2/15 2:57 PM, Jacob Carlborg wrote: > > > >>In this case the solution/workaround is to explicitly call > >>super.opEquals, but th

Re: Behavior of opEquals

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 3 September 2015 at 13:05:49 UTC, Steven Schveighoffer wrote: On 9/2/15 2:57 PM, Jacob Carlborg wrote: In this case the solution/workaround is to explicitly call super.opEquals, but that will miss some optimizations implemented in object.opEquals. Those optimizations have alrea

Re: Interesting user mistake

2015-09-04 Thread Mint via Digitalmars-d
On Friday, 4 September 2015 at 17:17:26 UTC, Andrei Alexandrescu wrote: On 09/03/2015 01:08 PM, H. S. Teoh via Digitalmars-d wrote: [...] Is there a way for the lexer to check for the specific character sequence '=', '+', whitespace and not others (e.g. '=', whitespace, '+')? IOW, "a =+ b" w

Re: dmd codegen improvements

2015-09-04 Thread Laeeth Isharc via Digitalmars-d
On Thursday, 3 September 2015 at 04:30:04 UTC, Ola Fosheim Grostad wrote: "I don't have enough time to figure out all the ins-and-outs of the current compiler." "Unless you sell DMD, how about providing a definition of "customer"? If you don't pay attention to evaluations, then surely the com

Re: Bug in logger

2015-09-04 Thread Prudence via Digitalmars-d
On Friday, 4 September 2015 at 01:00:24 UTC, Mike Parker wrote: On Thursday, 3 September 2015 at 23:09:18 UTC, Prudence wrote: \..\..\src\phobos\std\experimental\logger\core.d(1784): Error: static variable stdLoggerThreadLogger cannot be read at compile time I'm trying to use the logger in a

Re: Error reporting is terrible

2015-09-04 Thread Russel Winder via Digitalmars-d
On Fri, 2015-09-04 at 12:37 +0200, Iain Buclaw via Digitalmars-d wrote: > […] > > Wrong. Install Emacs. > > > > > Wrong. Install Butterflies. =-P If you feel in need of a little background to this comment, see: https://xkcd.com/378/ -- Russel. =

Re: Interesting user mistake

2015-09-04 Thread Observer via Digitalmars-d
On Thursday, 3 September 2015 at 17:15:25 UTC, Enamex wrote: On Thursday, 3 September 2015 at 16:46:30 UTC, Andrei Alexandrescu wrote: we should disallow during tokenization the sequence "=", "+", whitespace. Surely it's not a formatting anyone would aim for, but instead a misspelling of +=.

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 17:05:41 UTC, deadalnix wrote: Statement do not makes arguements. pNaCl is portable, take only a 20% hit compared to pure native and is compact to send through the wire. You think pnacl is compact and compresses well? That's an unusual position. Both asm.js and

Re: dmd codegen improvements

2015-09-04 Thread Laeeth Isharc via Digitalmars-d
On Friday, 4 September 2015 at 14:22:17 UTC, Jonathan M Davis wrote: On Thursday, 3 September 2015 at 01:54:45 UTC, Laeeth Isharc wrote: On Tuesday, 1 September 2015 at 17:14:44 UTC, Jonathan M Davis wrote: One of the first projects I used D for was back in college a number of years ago where I

Re: Interesting user mistake

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/03/2015 01:15 PM, "Luís Marques wrote: On Thursday, 3 September 2015 at 17:12:31 UTC, H. S. Teoh wrote: Is there a way for the lexer to check for the specific character sequence '=', '+', whitespace and not others (e.g. '=', whitespace, '+')? IOW, "a =+ b" will be prohibited, but "a = +

Re: Interesting user mistake

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/03/2015 01:08 PM, H. S. Teoh via Digitalmars-d wrote: On Thu, Sep 03, 2015 at 12:46:29PM -0400, Andrei Alexandrescu via Digitalmars-d wrote: http://stackoverflow.com/questions/32369114/leap-years-not-working-in-date-and-time-program-in-dlang The gist of it is the user wrote =+ instead of

Re: dmd codegen improvements

2015-09-04 Thread deadalnix via Digitalmars-d
On Friday, 4 September 2015 at 14:56:48 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:45:39 UTC, rsw0x wrote: Because it has the path of least resistance. It's still a poor technology that is just treating the symptoms. pnacl/pepper is not good either, they are both poor t

Re: dmd codegen improvements

2015-09-04 Thread deadalnix via Digitalmars-d
On Friday, 4 September 2015 at 14:43:43 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:40:32 UTC, rsw0x wrote: On Friday, 4 September 2015 at 14:34:52 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:26:49 UTC, rsw0x wrote: Maybe we'll be lucky and Firefox wi

Re: dmd codegen improvements

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/03/2015 02:54 AM, Walter Bright wrote: On 9/2/2015 9:09 PM, H. S. Teoh via Digitalmars-d wrote: As Walter once said, "Be the change you wish to see." I think that was Andrei. But I do agree with it. I think it was Gandhi :o). -- Andrei

Re: dmd codegen improvements

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/02/2015 11:57 PM, Walter Bright wrote: On 9/2/2015 7:48 PM, Adam D. Ruppe wrote: but still i'm meh on the practical usefulness of such things. I guess if you target a canvas and run your code in it that makes more sense but my preferred style is a progressive enhancement webpage where you

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

2015-09-04 Thread deadalnix via Digitalmars-d
On Friday, 4 September 2015 at 16:26:15 UTC, Andrei Alexandrescu wrote: On 09/02/2015 05:07 PM, deadalnix wrote: On Wednesday, 2 September 2015 at 09:28:49 UTC, Dominikus Dittes Scherkl wrote: It is not unitestable. But we have concepts like "thread local per default" and message passing tha

Re: Interesting user mistake

2015-09-04 Thread skoppe via Digitalmars-d
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 of it is the user wrote =+ instead of +=. I wonder if we should disallow during tokenization the sequence "=",

Re: "else if" for template constraints

2015-09-04 Thread Enamex via Digitalmars-d
On Friday, 4 September 2015 at 15:52:08 UTC, Enamex wrote: The biggest problem, I think, is that a template can has multiple 'predicates' to agree to be instantiated, but only some of them can mutually exclusive (the specialization syntax produces mutually exclusive ones, the if-constraints don

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

2015-09-04 Thread Andrei Alexandrescu via Digitalmars-d
On 09/02/2015 05:07 PM, deadalnix wrote: On Wednesday, 2 September 2015 at 09:28:49 UTC, Dominikus Dittes Scherkl wrote: It is not unitestable. But we have concepts like "thread local per default" and message passing that should make avoiding race conditions easier. And concurrent code doesn't

Re: dmd codegen improvements

2015-09-04 Thread jmh530 via Digitalmars-d
On Friday, 4 September 2015 at 14:26:49 UTC, rsw0x wrote: All of this could have been avoided by all browser vendors agreeing to implement pNaCl. Maybe we'll be lucky and Firefox will fade into obscurity with the way they've been handling things lately. I thought even the PNaCl people were w

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 15:45:35 UTC, Luís Marques wrote: On Friday, 4 September 2015 at 14:59:12 UTC, Ola Fosheim Grøstad wrote: Actually, browsers are deprecating NPAPI plugins. Flash is so dead… Could, in principle, Flash be supported through an extension, instead of a media / NPAPI

Re: "else if" for template constraints

2015-09-04 Thread Enamex via Digitalmars-d
On Monday, 17 August 2015 at 13:18:43 UTC, Steven Schveighoffer wrote: I was just looking at fixing this bug:https://issues.dlang.org/show_bug.cgi?id=14925 [...] How often are you writing overloaded templates, and you want to say "if it doesn't match anything else, do this"? I'd love to see

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 14:59:12 UTC, Ola Fosheim Grøstad wrote: Actually, browsers are deprecating NPAPI plugins. Flash is so dead… Could, in principle, Flash be supported through an extension, instead of a media / NPAPI plugin?

Re: Interesting user mistake

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 15:13:08 UTC, Steven Schveighoffer wrote: I think that is Andrei's original suggestion: the sequence "=", "+", whitespace should be rejected. He says nothing about "=","+" without the whitespace. Yup.

Re: Interesting user mistake

2015-09-04 Thread Steven Schveighoffer via Digitalmars-d
On 9/4/15 10:05 AM, Jonathan M Davis wrote: On Friday, 4 September 2015 at 13:55:03 UTC, Jonathan M Davis 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 g

Re: Interesting user mistake

2015-09-04 Thread Steven Schveighoffer via Digitalmars-d
On 9/4/15 9:38 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= wrote: On Friday, 4 September 2015 at 12:02:26 UTC, Steven Schveighoffer wrote: On 9/3/15 5:59 PM, Brian Schott wrote: On Thursday, 3 September 2015 at 17:17:26 UTC, Steven Schveighoffer wrote: What about all other operations that may be typos

Re: Current state of GUI's

2015-09-04 Thread Chris via Digitalmars-d
On Friday, 4 September 2015 at 13:23:47 UTC, motaito wrote: On Friday, 4 September 2015 at 09:12:23 UTC, Chris wrote: Don't give up yet. I've learned that a D GUI is not so important. There is a plethora of platforms and devices (mobile phones, tablets, PCs etc etc), so it's better not to get

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 14:53:06 UTC, Manu wrote: What I don't get is, Firefox and ie support plugins... Why isn't there a pnacl plugin for other browsers? Surely it could be added with the existing plugin interfaces? Actually, browsers are deprecating NPAPI plugins. Flash is so dead…

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 14:45:39 UTC, rsw0x wrote: Because it has the path of least resistance. It's still a poor technology that is just treating the symptoms. pnacl/pepper is not good either, they are both poor technologies. But vendors are moving in the same direction, which is impor

Re: dmd codegen improvements

2015-09-04 Thread rsw0x via Digitalmars-d
On Friday, 4 September 2015 at 14:53:06 UTC, Manu wrote: On 5 Sep 2015 12:32 am, "rsw0x via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: [...] wrote: [...] Performance is a different issue since it does not provide SIMD yet. [...] run about 20% slower typically. [...] In fact a la

Re: dmd codegen improvements

2015-09-04 Thread rsw0x via Digitalmars-d
On Friday, 4 September 2015 at 14:43:43 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:40:32 UTC, rsw0x wrote: On Friday, 4 September 2015 at 14:34:52 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:26:49 UTC, rsw0x wrote: Maybe we'll be lucky and Firefox wi

Re: A Small Enhancement Idea

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 2 September 2015 at 16:28:12 UTC, Jack Stouffer wrote: I wanted some second opinions on an idea I had for D before I made a bugzilla issue. Currently in D, to have a statement run only in debug mode, you can mark it with the debug keyword. But, there is currently no way to mark

Re: dmd codegen improvements

2015-09-04 Thread Manu via Digitalmars-d
On 5 Sep 2015 12:32 am, "rsw0x via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > On Thursday, 3 September 2015 at 22:53:01 UTC, deadalnix wrote: >> >> On Thursday, 3 September 2015 at 21:08:51 UTC, Ola Fosheim Grostad wrote: >>> >>> On Thursday, 3 September 2015 at 10:04:58 UTC, deadalni

Re: Current state of GUI's

2015-09-04 Thread Jacob Carlborg via Digitalmars-d
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 managed to install the necessary libraries yet. -- /Jacob Carlborg

Re: A Small Enhancement Idea

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, 2 September 2015 at 19:34:53 UTC, Jack Stouffer wrote: On Wednesday, 2 September 2015 at 19:15:08 UTC, jmh530 wrote: I wasn't familiar with version(release). Would you need to compile with -version=release then? No, it seems to work with just the -release flag. The Python progra

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 14:40:32 UTC, rsw0x wrote: On Friday, 4 September 2015 at 14:34:52 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:26:49 UTC, rsw0x wrote: Maybe we'll be lucky and Firefox will fade into obscurity with the way they've been handling things lately.

Re: dmd codegen improvements

2015-09-04 Thread rsw0x via Digitalmars-d
On Friday, 4 September 2015 at 14:34:52 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 14:26:49 UTC, rsw0x wrote: Maybe we'll be lucky and Firefox will fade into obscurity with the way they've been handling things lately. No. TurboFan is in Chrome with asm.js support. I'd rat

Re: std.Stream.InputStream convenience functions

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Friday, 4 September 2015 at 00:05:06 UTC, bitwise wrote: Thoughts? std.stream is on the chopping block and has been for years, and it was decided at dconf that we'd actually get rid of it now rather than just have it say in the documentation that it's going away. As I understand it, the o

Re: dmd codegen improvements

2015-09-04 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-04 15:39, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= wrote: Err... avoid WebStorm. Just noticed JetBrains have decided to rip off their customers with a subscription model and increase their pricing 100%. Damn, I'm going back to OpenSource IDEs… I heard the TypeScript support for Visual

Re: dmd codegen improvements

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 3 September 2015 at 01:54:45 UTC, Laeeth Isharc wrote: On Tuesday, 1 September 2015 at 17:14:44 UTC, Jonathan M Davis wrote: It's been mentioned before that there really isn't much point in using C when you can use D. Even if you completely avoid the GC and the standard library, yo

Re: Interesting user mistake

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Friday, 4 September 2015 at 14:14:43 UTC, Mike James wrote: On Friday, 4 September 2015 at 14:05:09 UTC, Jonathan M Davis wrote: On Friday, 4 September 2015 at 13:55:03 UTC, Jonathan M Davis wrote: [...] [snip] [...] Isn't it called Maximal Munch... https://en.wikipedia.org/wiki/Maximal

Re: dmd codegen improvements

2015-09-04 Thread rsw0x via Digitalmars-d
On Thursday, 3 September 2015 at 22:53:01 UTC, deadalnix wrote: On Thursday, 3 September 2015 at 21:08:51 UTC, Ola Fosheim Grostad wrote: On Thursday, 3 September 2015 at 10:04:58 UTC, deadalnix wrote: On Thursday, 3 September 2015 at 09:56:55 UTC, Ola Fosheim Grøstad wrote: On Thursday, 3 Sept

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 14:26:49 UTC, rsw0x wrote: Maybe we'll be lucky and Firefox will fade into obscurity with the way they've been handling things lately. No. TurboFan is in Chrome with asm.js support.

Re: dmd codegen improvements

2015-09-04 Thread rsw0x via Digitalmars-d
On Friday, 4 September 2015 at 13:39:45 UTC, Ola Fosheim Grøstad wrote: On Friday, 4 September 2015 at 07:52:30 UTC, Ola Fosheim Grøstad wrote: I have no problem recommending TypeScript with WebStorm (or some other editor) for business like applications. Err... avoid WebStorm. Just noticed Jet

Re: Interesting user mistake

2015-09-04 Thread Mike James via Digitalmars-d
On Friday, 4 September 2015 at 14:05:09 UTC, Jonathan M Davis wrote: On Friday, 4 September 2015 at 13:55:03 UTC, Jonathan M Davis wrote: [...] [snip] [...] Isn't it called Maximal Munch... https://en.wikipedia.org/wiki/Maximal_munch Regards, --

Re: Interesting user mistake

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Friday, 4 September 2015 at 13:55:03 UTC, Jonathan M Davis 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 of it is the user wrote =+ instead of +=.

Re: Interesting user mistake

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
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 of it is the user wrote =+ instead of +=. I wonder if we should disallow during tokenization the sequence "=",

Re: Interesting user mistake

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 12:02:26 UTC, Steven Schveighoffer wrote: On 9/3/15 5:59 PM, Brian Schott wrote: On Thursday, 3 September 2015 at 17:17:26 UTC, Steven Schveighoffer wrote: What about all other operations that may be typos from op= where op is also a unary operator? e.g. =- We'

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 07:52:30 UTC, Ola Fosheim Grøstad wrote: I have no problem recommending TypeScript with WebStorm (or some other editor) for business like applications. Err... avoid WebStorm. Just noticed JetBrains have decided to rip off their customers with a subscription model

Re: Interesting user mistake

2015-09-04 Thread Jonathan M Davis via Digitalmars-d
On Thursday, 3 September 2015 at 18:31:59 UTC, Meta wrote: On Thursday, 3 September 2015 at 17:12:31 UTC, H. S. Teoh wrote: Is there a way for the lexer to check for the specific character sequence '=', '+', whitespace and not others (e.g. '=', whitespace, '+')? IOW, "a =+ b" will be prohibite

Re: Containers

2015-09-04 Thread wobbles via Digitalmars-d
On Friday, 4 September 2015 at 10:25:24 UTC, Russel Winder wrote: On Thu, 2015-09-03 at 21:11 +, bitwise via Digitalmars-d wrote: On Thursday, 3 September 2015 at 19:45:48 UTC, bitwise wrote: > I'm not sure how the container's I've built would be > integrated I suppose what I'm suggestin

Re: Current state of GUI's

2015-09-04 Thread motaito via Digitalmars-d
On Friday, 4 September 2015 at 09:12:23 UTC, Chris wrote: Don't give up yet. I've learned that a D GUI is not so important. There is a plethora of platforms and devices (mobile phones, tablets, PCs etc etc), so it's better not to get married to one particular UI. Keep your program GUI-agnostic

Re: Interesting user mistake

2015-09-04 Thread immu via Digitalmars-d
On Thursday, 3 September 2015 at 16:46:30 UTC, Andrei Alexandrescu wrote: I wonder if we should disallow during tokenization the sequence "=", "+", whitespace. Surely it's not a formatting anyone would aim for, but instead a misspelling of +=. Andrei Please don't. That would feel like a co

Re: Interesting user mistake

2015-09-04 Thread Steven Schveighoffer via Digitalmars-d
On 9/3/15 5:59 PM, Brian Schott wrote: On Thursday, 3 September 2015 at 17:17:26 UTC, Steven Schveighoffer wrote: What about all other operations that may be typos from op= where op is also a unary operator? e.g. =- We'd have to special-case '*': a=*b; You could say the same thing for =-:

Re: Bug in logger

2015-09-04 Thread Steven Schveighoffer via Digitalmars-d
On 9/4/15 4:30 AM, Robert burner Schadek wrote: the sharedLog Logger (aka default logger) will only work after its static this has run. D shouldn't have a problem with this. It uses import dependencies to make sure the static ctors are run in dependency order. -Steve

Re: Error reporting is terrible

2015-09-04 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-04 12:37, Iain Buclaw via Digitalmars-d wrote: On 4 September 2015 at 12:19, Russel Winder via Digitalmars-d Wrong. Install Emacs. Wrong. Install Butterflies. =-P There's already a command for that in Emacs ;) -- /Jacob Carlborg

Re: Containers

2015-09-04 Thread BBasile via Digitalmars-d
On Thursday, 3 September 2015 at 19:45:48 UTC, bitwise wrote: Any interest in having these in Phobos? https://github.com/bitwise-github/d-containers Phobos doesn't currently have a Queue(T), and Array(T) leaves much to be desired. The containers I've built are very full featured, fast, and ar

Re: Error reporting is terrible

2015-09-04 Thread Iain Buclaw via Digitalmars-d
On 4 September 2015 at 12:19, Russel Winder via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Fri, 2015-09-04 at 03:26 +, David DeWitt via Digitalmars-d > wrote: > > […] > > > > Wipe Windows > > Install Arch > > Or Debian Sid or Fedora. > > Or Slackware > > Install vim > > Wrong.

Re: Containers

2015-09-04 Thread Russel Winder via Digitalmars-d
On Thu, 2015-09-03 at 21:11 +, bitwise via Digitalmars-d wrote: > On Thursday, 3 September 2015 at 19:45:48 UTC, bitwise wrote: > > > I'm not sure how the container's I've built would be integrated > > I suppose what I'm suggesting would be to integrate my new > containers and modify the spe

Re: Error reporting is terrible

2015-09-04 Thread Russel Winder via Digitalmars-d
On Fri, 2015-09-04 at 03:26 +, David DeWitt via Digitalmars-d wrote: > […] > > Wipe Windows > Install Arch Or Debian Sid or Fedora. > Install vim Wrong. Install Emacs. > Install DMD. And/or LDC, GDC > Problem solved :) Weee… -- Russel. =

Re: Current state of GUI's

2015-09-04 Thread Chris via Digitalmars-d
On Thursday, 3 September 2015 at 15:15:47 UTC, motaito wrote: Thanks for the details! I was afraid, of something like this. To me D doesn't seam very competitive without a complete toolset :( Given that D has been around for a while now I am somewhat surprised it's not further along. I know i

Re: Error reporting is terrible

2015-09-04 Thread Kagamin via Digitalmars-d
On Thursday, 3 September 2015 at 23:56:53 UTC, Prudence wrote: a ton of money behind it You already know how to help :)

Re: Did a presentation on a tool I wrote in D

2015-09-04 Thread wobbles via Digitalmars-d
On Thursday, 3 September 2015 at 20:53:12 UTC, Israel wrote: On Thursday, 3 September 2015 at 20:05:14 UTC, wobbles wrote: So, I did a presentation to about 10 colleagues on a tool I wrote to aid in automated testing. Of the 10 (all of us testers by the way, not programmers) 9 had never seen

Re: Did a presentation on a tool I wrote in D

2015-09-04 Thread wobbles via Digitalmars-d
On Thursday, 3 September 2015 at 23:14:54 UTC, Jack Stouffer wrote: On Thursday, 3 September 2015 at 20:05:14 UTC, wobbles wrote: So, I did a presentation to about 10 colleagues on a tool I wrote to aid in automated testing. Would you mind putting the slides on slideshare? I'm curious. I had

Re: Bug in logger

2015-09-04 Thread Robert burner Schadek via Digitalmars-d
the sharedLog Logger (aka default logger) will only work after its static this has run. you could create a new Logger and use this one. static this() { auto tmpLog = new FileLogger("logfile.log"); tmpLog.log("Hello World"); }

Re: dmd codegen improvements

2015-09-04 Thread via Digitalmars-d
On Friday, 4 September 2015 at 07:44:23 UTC, Jacob Carlborg wrote: Looking how many languages compile to JS and how many JS libraries there are out there that try to invent some kind of new syntax for declaring classes and now E6, I would say a lot of people are not satisfied with the current s

Re: dmd codegen improvements

2015-09-04 Thread Jacob Carlborg via Digitalmars-d
On 2015-09-03 23:01, Ola Fosheim Grostad wrote: If you don't change the prototype object, then it is mostly similar, but more flexible. Functions are constructors and prototype objects are class definitions. Looking how many languages compile to JS and how many JS libraries there are out ther

Re: Current state of GUI's

2015-09-04 Thread motaito via Digitalmars-d
On Friday, 4 September 2015 at 03:36:37 UTC, Shannon wrote: Anyway, though I have so enjoyed the huge part of Qt that is non-gui, and especially their model/view components where I can do all my model manipulation behind the scenes and practically hot-swap or connect multiple views to a model.

  1   2   >