Re: DIP 1007 - keywords as identifiers with an escape symbol - feedback

2016-12-19 Thread default0 via Digitalmars-d
On Monday, 19 December 2016 at 08:30:07 UTC, Stefan Koch wrote: On Monday, 19 December 2016 at 08:14:44 UTC, Basile B. wrote: I know that there is other hot stuffs since a few days but this is a really simple DIP, that has no effect on the grammar and no effect on the semantic. It was drafted a

Re: DIP10005: Dependency-Carrying Declarations is now available for community feedback

2016-12-14 Thread default0 via Digitalmars-d
On Wednesday, 14 December 2016 at 14:21:55 UTC, Andrei Alexandrescu wrote: On 12/14/16 8:26 AM, Dominikus Dittes Scherkl wrote: On Tuesday, 13 December 2016 at 22:33:24 UTC, Andrei Alexandrescu wrote: Destroy. https://github.com/dlang/DIPs/pull/51/files Why not leave it as it is and only cha

Re: Pattern matching in D?

2016-10-21 Thread default0 via Digitalmars-d
On Friday, 21 October 2016 at 11:49:42 UTC, Mark wrote: On Friday, 21 October 2016 at 06:50:26 UTC, Dennis Ritchie wrote: Previously, there were ideas on the implementation of macros in D, but now they are no longer relevant: http://s3.amazonaws.com/dconf2007/WalterAndrei.pdf AST macros are p

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread default0 via Digitalmars-d
On Wednesday, 5 October 2016 at 17:14:04 UTC, Matthias Klumpp wrote: On Wednesday, 5 October 2016 at 16:57:42 UTC, Rory McGuire wrote: On Wed, Oct 5, 2016 at 5:32 PM, angel via Digitalmars-d < digitalmars-d@puremagic.com> wrote: On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: [...]

Re: @gc attribute for bypassign @nogc

2016-07-28 Thread default0 via Digitalmars-d
On Thursday, 28 July 2016 at 16:45:05 UTC, bitwise wrote: On Thursday, 28 July 2016 at 16:15:04 UTC, Guillaume Piolat wrote: On Thursday, 28 July 2016 at 15:24:10 UTC, bitwise wrote: It's not about running out of memory. It's a performance issue. Example: In the following class, it would be

Re: The case for small diffs in Pull Requests

2016-07-20 Thread default0 via Digitalmars-d
On Thursday, 21 July 2016 at 03:30:34 UTC, Walter Bright wrote: I've looked at many PRs that consisted of multiple commits. The trouble with them is: 1. they often have nothing in particular to do with each other 2. I may want to pull a subset of the commits, but the only option I have is all

Re: front stability

2016-06-30 Thread default0 via Digitalmars-d
On Thursday, 30 June 2016 at 18:07:41 UTC, Steven Schveighoffer wrote: On 6/30/16 11:56 AM, Mathias Lang via Digitalmars-d wrote: 2016-06-02 14:51 GMT+02:00 Steven Schveighoffer via Digitalmars-d >: I have always treated ranges with this expectation: I

Re: Does a Interpretation-Engine fit in phobos ?

2016-06-30 Thread default0 via Digitalmars-d
On Thursday, 30 June 2016 at 15:53:19 UTC, ZombineDev wrote: On Thursday, 30 June 2016 at 14:14:41 UTC, Wyatt wrote: On Thursday, 30 June 2016 at 10:36:44 UTC, qznc wrote: Ok, seriously, it sounds like an awesome feat, but I don't think it is necessary to put it into Phobos. First, a dub packa

C++17 is feature complete

2016-06-27 Thread default0 via Digitalmars-d
Regarding C++ I found this to be a fun read: http://yosefk.com/c++fqa/ :-)

Re: Optimizations and performance

2016-06-09 Thread default0 via Digitalmars-d
On Thursday, 9 June 2016 at 06:51:53 UTC, poliklosio wrote: On Thursday, 9 June 2016 at 01:46:45 UTC, Dave wrote: On Wednesday, 8 June 2016 at 22:32:49 UTC, Ola Fosheim Grøstad I wouldn't put too much emphasis on that benchmark as the implementations appear different? Note that Felix compiles t

Re: Andrei's list of barriers to D adoption

2016-06-06 Thread default0 via Digitalmars-d
On Tuesday, 7 June 2016 at 06:30:05 UTC, ketmar wrote: On Tuesday, 7 June 2016 at 06:22:50 UTC, Walter Bright wrote: On 6/6/2016 10:38 PM, Brad Roberts via Digitalmars-d wrote: The D ecosystem is a large pile of incomplete features, with more added all the time. Even with only array bounds c

Re: The Case Against Autodecode

2016-06-02 Thread default0 via Digitalmars-d
On Thursday, 2 June 2016 at 21:51:51 UTC, tsbockman wrote: On Thursday, 2 June 2016 at 21:38:02 UTC, default0 wrote: On Thursday, 2 June 2016 at 21:30:51 UTC, tsbockman wrote: 1) It does not say that level 2 should be opt-in; it says that level 2 should be toggle-able. Nowhere does it say which

Re: The Case Against Autodecode

2016-06-02 Thread default0 via Digitalmars-d
On Thursday, 2 June 2016 at 21:30:51 UTC, tsbockman wrote: On Thursday, 2 June 2016 at 21:07:19 UTC, default0 wrote: The level 2 support description noted that it should be opt-in because its slow. 1) It does not say that level 2 should be opt-in; it says that level 2 should be toggle-able. N

Re: The Case Against Autodecode

2016-06-02 Thread default0 via Digitalmars-d
On Thursday, 2 June 2016 at 20:52:29 UTC, ag0aep6g wrote: On 06/02/2016 10:36 PM, Andrei Alexandrescu wrote: By whom? The "support level 1" folks yonder at the Unicode standard? :o) -- Andrei Do they say that level 1 should be the default, and do they give a rationale for that? Would you kin

Re: The Case Against Autodecode

2016-06-02 Thread default0 via Digitalmars-d
On Thursday, 2 June 2016 at 20:30:34 UTC, Andrei Alexandrescu wrote: On 06/02/2016 04:23 PM, ag0aep6g wrote: People are arguing that auto-decoding to code points is not useful. And want to return to the point where char[] is but an indiscriminated array, which would take std.algorithm back to

Re: Dealing with Autodecode

2016-05-31 Thread default0 via Digitalmars-d
On Wednesday, 1 June 2016 at 01:36:43 UTC, Adam D. Ruppe wrote: D USERS **WANT** BREAKING CHANGES THAT INCREASE OVERALL CODE QUALITY WITH A SIMPLE MIGRATION PATH Agree with that very much. Yes, you still have to think about cost/benefit for breaking changes, but in general

Re: Free the DMD backend

2016-05-31 Thread default0 via Digitalmars-d
I have no idea how licensing would work in that regard but considering that DMDs backend is actively maintained and may eventually even be ported to D, wouldn't it at some point differ enough from Symantecs "original" backend to simply call the DMD backend its own thing? Or are all the change

Re: The Case Against Autodecode

2016-05-31 Thread default0 via Digitalmars-d
On Tuesday, 31 May 2016 at 06:45:56 UTC, H. S. Teoh wrote: On Tue, May 31, 2016 at 12:13:57AM -0400, Andrei Alexandrescu via Digitalmars-d wrote: On 5/30/16 6:00 PM, Walter Bright wrote: > On 5/30/2016 11:25 AM, Adam D. Ruppe wrote: > > I don't agree on changing those. Indexing and slicing a >

Re: Transient ranges

2016-05-29 Thread default0 via Digitalmars-d
On Sunday, 29 May 2016 at 18:09:29 UTC, Steven Schveighoffer wrote: On 5/29/16 1:45 PM, Steven Schveighoffer wrote: On 5/27/16 7:42 PM, Seb wrote: So what about the convention to explicitely declare a `.transient` enum member on a range, if the front element value can change? enum isTransie

Re: Transient ranges

2016-05-29 Thread default0 via Digitalmars-d
On Sunday, 29 May 2016 at 11:36:37 UTC, ZombineDev wrote: On Sunday, 29 May 2016 at 11:28:11 UTC, ZombineDev wrote: On Sunday, 29 May 2016 at 11:15:19 UTC, Dicebot wrote: On 05/28/2016 08:27 PM, Joseph Rushton Wakeling wrote: On Saturday, 28 May 2016 at 01:48:08 UTC, Jonathan M Davis wrote: On

Re: The Case Against Autodecode

2016-05-29 Thread default0 via Digitalmars-d
On Sunday, 29 May 2016 at 11:47:30 UTC, Tobias Müller wrote: On Sunday, 29 May 2016 at 11:25:11 UTC, Chris wrote: Unicode graphemes are not always the same as graphemes in natural (written) languages. If <é> is composed in Unicode, it is still one grapheme in a written language, not two distinc

Re: DMD producing huge binaries

2016-05-19 Thread default0 via Digitalmars-d
On Thursday, 19 May 2016 at 22:16:03 UTC, Walter Bright wrote: On 5/19/2016 6:45 AM, Andrei Alexandrescu wrote: I very much advocate slapping a 64-long random string for all Voldermort returns and calling it a day. I bet Liran's code will get a lot quicker to build and smaller to boot. Let's

Re: DlangUI & DlangIDE

2016-05-05 Thread default0 via Digitalmars-d
On Friday, 6 May 2016 at 06:03:46 UTC, thedeemon wrote: On Thursday, 5 May 2016 at 13:47:10 UTC, Chris wrote: I might ask as long as DConf is still going on. Anyone interested in joining forces to improve and extend DlangUI and DlangIDE? I think I can write a few DlangUI tutorials based on e

Re: [OT] Swift removing minor features to piss me off

2016-05-02 Thread default0 via Digitalmars-d
On Monday, 2 May 2016 at 14:32:30 UTC, Steven Schveighoffer wrote: On 5/2/16 6:55 AM, ag0aep6g wrote: And anyone who says "bleh, you can just use a while loop if you need that" I want to beat with a semi-colon over the head. -Steve Apparently, Swift also does not have goto. For all language

Re: [OT] Swift removing minor features to piss me off

2016-04-28 Thread default0 via Digitalmars-d
On Friday, 29 April 2016 at 04:06:24 UTC, Adam D. Ruppe wrote: Though I'm on the fence of ++. Sure, I like it, but when I have to use a language that doesn't have it, +=1 works just as well (I just waste a little time on the edit cycle because I always use ++ first out of habit.) I find ++ ea

Re: Line spacing for '///ditto' on the website

2016-04-24 Thread default0 via Digitalmars-d
On Saturday, 23 April 2016 at 20:50:31 UTC, Adam D. Ruppe wrote: On Saturday, 23 April 2016 at 20:06:39 UTC, ag0aep6g wrote: On 23.04.2016 21:53, Andrei Alexandrescu wrote: Should we use a single ? -- Andrei That would look better in the case you linked, but it would be a step back with long

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread default0 via Digitalmars-d
On Sunday, 24 January 2016 at 11:20:20 UTC, Gary Willoughby wrote: Please, no more new syntax! This can be done using templates and Flag is not an ugly hack! Why no more new syntax? I agree that keeping the language simple is a good idea, but new syntax isn't usually hard to learn, especiall

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread default0 via Digitalmars-d
On Sunday, 24 January 2016 at 10:40:10 UTC, Jonathan M Davis wrote: On Sunday, 24 January 2016 at 10:14:53 UTC, default0 wrote: Anyone who wrote a function like that is just plain writing bad code. With that many parameters, they should be creating a struct to hold the values. Named arguments

Re: DIP 88: Simple form of named parameters

2016-01-24 Thread default0 via Digitalmars-d
On Sunday, 24 January 2016 at 02:51:43 UTC, Jonathan M Davis wrote: On Saturday, 23 January 2016 at 14:19:03 UTC, Jacob Carlborg wrote: This is mostly to prevent ugly hacks like Flag [1]. http://wiki.dlang.org/DIP88 [1] https://dlang.org/phobos/std_typecons.html#.Flag Regardless, I for one,

Re: So... add maxCount and maxPos?

2016-01-21 Thread default0 via Digitalmars-d
On Thursday, 21 January 2016 at 02:36:05 UTC, Ivan Kazmenko wrote: An alternative would be to define min(one argument) to just be that argument. That would be consistent with what we have now, but violates the principle of least astonishment for newcomers: why would min ([3, 1, 2]) return [3,

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread default0 via Digitalmars-d
On Friday, 25 December 2015 at 15:46:23 UTC, tcak wrote: On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. [...] My mistake at the end. It should be: my.big.lib.createFile("FSociety.dat"); htt

Re: Mockup of my doc dream ideas

2015-12-25 Thread default0 via Digitalmars-d
On Friday, 25 December 2015 at 14:50:06 UTC, Adam D. Ruppe wrote: This linked page is my dream for a narrow part of the docs: the function signature. The whitespace formatting can be worked into existing ddoc (I'm angry with existing ddoc and don't want to work with it for a while, but it isn't

Re: Collections question

2015-11-28 Thread default0 via Digitalmars-d
On Friday, 27 November 2015 at 20:14:21 UTC, Andrei Alexandrescu wrote: There's this oddity of built-in hash tables: a reference to a non-empty hash table can be copied and then both references refer to the same hash table object. However, if the hash table is null, copying the reference won't

Re: Here's looking at you, kid

2015-11-23 Thread default0 via Digitalmars-d
On Monday, 23 November 2015 at 20:21:37 UTC, Chris Wright wrote: This is your line of objection when I asked you to be respectful toward people who might want to learn D. Normal people are polite and respectful out of common human decency. Does this sometimes mean not uttering everything tha

Re: DMD is slow for matrix maths?

2015-10-26 Thread default0 via Digitalmars-d
On Monday, 26 October 2015 at 20:30:51 UTC, rsw0x wrote: dmd will never reach gdc/ldc performance, gcc and LLVM have entire teams of people that actively contribute to their compilers. We have a Walter though :-)

Re: Moving back to .NET

2015-09-21 Thread default0 via Digitalmars-d
On Monday, 21 September 2015 at 00:01:01 UTC, Temtaime wrote: I also hate errors when a lambda contains some errors. [ 1 ].countUntil!(a => a == undeclared_something); Error: template std.algorithm.searching.countUntil cannot deduce function from argument types !((a) => a == undefined)(int[])