May 28, 2014
woudl be nice to have some sort of example by example comparison
or as an extension to the page http://dlang.org/cpptod.html

Am 28.05.2014 07:40, schrieb Jesse Phillips:
> On Wednesday, 28 May 2014 at 05:30:18 UTC, Philippe Sigaud via
> Digitalmars-d-announce wrote:
>>> I did a translation of most of the code in the slides.
>>>
>>> http://dpaste.dzfl.pl/72b5cfcb72e4
>>>
>>> I'm planning to transform it into blog post (or series). Right
>>> now it just
>>> has some scratch notes. Feel free to let me know everything I
>>> got wrong.
>>
>> That's a good idea. I think most of us did that while listening
>> to the
>> talk. I kept telling myself: 'oh wait, that'd simpler in D' or
>> 'that
>> does not exist in D'.
>>
>> As for the class inheritance problem, I'd also be interested in
>> an answer.
>
> When he explained why C++ inferred a const int type as int, he
> tripped me up because D does drop const for value types. But D
> does the simple to explain thing, may not be the expected thing
> (seen questions about it in D.learn), but it is simple to explain.
>

May 28, 2014
On 5/27/2014 10:40 PM, Jesse Phillips wrote:
> When he explained why C++ inferred a const int type as int, he tripped me up
> because D does drop const for value types. But D does the simple to explain
> thing, may not be the expected thing (seen questions about it in D.learn), but
> it is simple to explain.

We have at times opted for an "easy to explain" rule rather than a semantically perfect one. For example, I've rejected several proposals to make function overloading more fine-grained on such grounds.

I've rarely met anyone who could explain how C++'s function overloading rules actually work, they just try arbitrary things until it selects the function they want it to.
May 28, 2014
On Tuesday, 27 May 2014 at 16:42:35 UTC, Andrei Alexandrescu wrote:
> http://www.reddit.com/r/programming/comments/26m8hy/scott_meyers_dconf_2014_keynote_the_last_thing_d/
>
> https://news.ycombinator.com/newest (search that page, if not found click "More" and search again)
>
> https://www.facebook.com/dlang.org/posts/855022447844771
>
> https://twitter.com/D_Programming/status/471330026168651777
>
>
> Andrei

I just noticed someone posted a link to the talk at gamedev[0]. I don't know who the poster is but the gamedev.net community is pretty large; this should result in quite some extra views :)

[0] http://www.gamedev.net/topic/657103-scott-meyers-the-last-thing-d-needs/
May 28, 2014
On Tuesday, 27 May 2014 at 21:40:00 UTC, Walter Bright wrote:
> On 5/27/2014 2:22 PM, w0rp wrote:
>> I'm actually a native speaker of 25 years and I didn't get it at first. Natural
>> language communicates ideas approximately.
>
> What bugs me is when people say:
>
>    I could care less.
>
> when they mean:
>
>    I couldn't care less.
>
>
> and:
>
>    If you think that, you have another thing coming.
>
> when they mean:
>
>    If you think that, you have another think coming.

http://www.youtube.com/watch?v=om7O0MFkmpw&feature=kp
May 28, 2014
On Tuesday, 27 May 2014 at 21:40:00 UTC, Walter Bright wrote:
> On 5/27/2014 2:22 PM, w0rp wrote:
>> I'm actually a native speaker of 25 years and I didn't get it at first. Natural
>> language communicates ideas approximately.
>
> What bugs me is when people say:
>
>    I could care less.
>
> when they mean:
>
>    I couldn't care less.
>
>
> and:
>
>    If you think that, you have another thing coming.
>
> when they mean:
>
>    If you think that, you have another think coming.

Whats wrong with "If you think that, you have another thing coming."?

I've always understood it sort of like say your Father saying:

"If you think that [i.e. you can steal your little brother's ice cream cone], then  you have another thing [i.e no ice cream, but maybe the leather strap] coming."

May 28, 2014
On Wed, 28 May 2014 04:48:09 +0000, Jesse Phillips wrote:

> On Tuesday, 27 May 2014 at 16:42:35 UTC, Andrei Alexandrescu wrote:
>> http://www.reddit.com/r/programming/comments/26m8hy/scott_meyers_dconf_2014_keynote_the_last_thing_d/
>>
>> https://news.ycombinator.com/newest (search that page, if not found click "More" and search again)
>>
>> https://www.facebook.com/dlang.org/posts/855022447844771
>>
>> https://twitter.com/D_Programming/status/471330026168651777
>>
>>
>> Andrei
> 
> I did a translation of most of the code in the slides.
> 
> http://dpaste.dzfl.pl/72b5cfcb72e4
> 
> I'm planning to transform it into blog post (or series). Right now it just has some scratch notes. Feel free to let me know everything I got wrong.

The first line:

  int x2; // (at global scope)

The x2 resides in Thread Local Storage (TLS). A __gshared would put it in global scope. Still initialized to int.init which is zero.

May 28, 2014
On Wednesday, 28 May 2014 at 14:39:53 UTC, anonymous_me wrote:
> The first line:
>
>   int x2; // (at global scope)
>
> The x2 resides in Thread Local Storage (TLS). A __gshared would put it in global scope.
> Still initialized to int.init which is zero.

D doesn't have global scope. C++ does not do TLS but that isn't relevant to the no cost position that C++ is taking.
May 28, 2014
On Wednesday, 28 May 2014 at 08:58:34 UTC, Rene Zwanenburg wrote:
> I just noticed someone posted a link to the talk at gamedev[0]. I don't know who the poster is but the gamedev.net community is pretty large; this should result in quite some extra views :)

Out of curiosity - did anyone try to post it to slashdot?
If not as a news article then maybe in the comments?

Andrzej

> [0] http://www.gamedev.net/topic/657103-scott-meyers-the-last-thing-d-needs/

May 28, 2014
On 5/28/2014 2:28 AM, John Colvin wrote:
> On Tuesday, 27 May 2014 at 21:40:00 UTC, Walter Bright wrote:
>> On 5/27/2014 2:22 PM, w0rp wrote:
>>> I'm actually a native speaker of 25 years and I didn't get it at first. Natural
>>> language communicates ideas approximately.
>>
>> What bugs me is when people say:
>>
>>    I could care less.
>>
>> when they mean:
>>
>>    I couldn't care less.
>>
>>
>> and:
>>
>>    If you think that, you have another thing coming.
>>
>> when they mean:
>>
>>    If you think that, you have another think coming.
>
> http://www.youtube.com/watch?v=om7O0MFkmpw&feature=kp

At least the Queen and I agree on something!
May 29, 2014
On 2014-05-28 13:05, Craig Dillabaugh via Digitalmars-d-announce wrote:
> On Tuesday, 27 May 2014 at 21:40:00 UTC, Walter Bright wrote:
>> On 5/27/2014 2:22 PM, w0rp wrote:
>>> I'm actually a native speaker of 25 years and I didn't get it at
>>> first. Natural
>>> language communicates ideas approximately.
>>
>> What bugs me is when people say:
>>
>>    I could care less.
>>
>> when they mean:
>>
>>    I couldn't care less.
>>
>>
>> and:
>>
>>    If you think that, you have another thing coming.
>>
>> when they mean:
>>
>>    If you think that, you have another think coming.
>
> Whats wrong with "If you think that, you have another thing coming."?
>
> I've always understood it sort of like say your Father saying:
>
> "If you think that [i.e. you can steal your little brother's ice cream
> cone], then  you have another thing [i.e no ice cream, but maybe the
> leather strap] coming."
>

It's an old saying, and in more modern English might be phrased "If you think that, you have another thought coming", i.e. you'll soon enough see why you're wrong.

--
  Simen