Re: faster splitter

2016-05-31 Thread Chris via Digitalmars-d
On Monday, 30 May 2016 at 22:16:27 UTC, qznc wrote: And Desktop: ./benchmark.ldc std: 129 ±24+40 (3121) -17 (6767) manual: 129 ±31+59 (2668) -21 (7244) qznc: 112 ±14+30 (2542) -9 (7312) Chris: 134 ±33+58 (2835) -23 (7068) Andrei: 123 ±27+53

Re: The Case Against Autodecode

2016-05-31 Thread Walter Bright via Digitalmars-d
On 5/30/2016 9:16 PM, Andrei Alexandrescu wrote: On 5/30/16 5:51 PM, Walter Bright wrote: On 5/30/2016 8:34 AM, Marc Schütz wrote: In an ideal world, we'd also want to change the way `length` and `opIndex` work, Why? strings are arrays of code units. All the trouble comes from erratically

Re: @trusting generic functions

2016-05-31 Thread Lodovico Giaretta via Digitalmars-d-learn
On Sunday, 29 May 2016 at 18:02:53 UTC, Steven Schveighoffer wrote: You can create a trusted expression by using a lambda and immediately calling it. ag0aep6g brought it up. I would write it like this (untested, but I think this works): return (()@trusted => )().doSomething(); The key is to

Re: Cross-platform documentation

2016-05-31 Thread ZombineDev via Digitalmars-d
On Tuesday, 31 May 2016 at 07:12:06 UTC, Jacob Carlborg wrote: Currently the documentation for Phobos and druntime is generated on (I'm guessing) Linux. This can sometimes cause problems when platform specific declarations are removed due to them not being available on Linux. Sometimes it

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 >

Cross-platform documentation

2016-05-31 Thread Jacob Carlborg via Digitalmars-d
Currently the documentation for Phobos and druntime is generated on (I'm guessing) Linux. This can sometimes cause problems when platform specific declarations are removed due to them not being available on Linux. Sometimes it looks even worse when none of the declarations are available on

Re: The Case Against Autodecode

2016-05-31 Thread H. S. Teoh via Digitalmars-d
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 char[] is > > > really useful and actually not hard to do

Re: Why aren't overloaded nested functions allowed?

2016-05-31 Thread Max Samukha via Digitalmars-d-learn
On Monday, 30 May 2016 at 23:17:15 UTC, pineapple wrote: On Monday, 30 May 2016 at 16:22:26 UTC, Max Samukha wrote: From the spec (https://dlang.org/spec/function.html#nested): "Nested functions cannot be overloaded." Anybody knows what's the rationale? I'm guessing it's related to -

Re: Why simple code using Rebindable doesn't compile ?

2016-05-31 Thread Era Scarecrow via Digitalmars-d-learn
On Tuesday, 31 May 2016 at 05:31:59 UTC, chmike wrote: My conclusion is that rebindable is not a satisfying solution to have mutable references to immutable objects. I don't understand the rationale of these immutable references. It is too constraining. I still don't know why you're trying

Re: foo => "bar" key/value literals in D!

2016-05-31 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/27/16 10:17 PM, Taylor Hillegeist wrote: On Friday, 27 May 2016 at 18:10:59 UTC, Vladimir Panteleev wrote: On Monday, 23 May 2016 at 19:00:40 UTC, Adam D. Ruppe wrote: Have I gone completely mad?!?! Yes, though what does it have to do with this thread? :D This is by far the most

<    1   2   3