Thread overview
Video: Andrei Alexandrescu at @ Lang.NEXT 2012
Apr 12, 2012
Jakob Ovrum
Apr 12, 2012
Jakob Ovrum
Apr 12, 2012
Jakob Ovrum
Apr 12, 2012
Jakob Ovrum
Apr 12, 2012
Martin Nowak
Apr 12, 2012
David Nadlinger
Apr 12, 2012
David Nadlinger
April 12, 2012
This video went up a while ago. I would like to comment on it, but I didn't see any thread about it, so here it is.

    Three Unlikely Successful Features of D

    http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D?format=html5

Thanks to Andrei Alexandrescu for this great presentation! Although I'm judging by the video alone, I feel you captivated the crowd quite well with this one :)
April 12, 2012
On Thursday, 12 April 2012 at 13:46:50 UTC, Jakob Ovrum wrote:
> This video went up a while ago. I would like to comment on it, but I didn't see any thread about it, so here it is.
>
>     Three Unlikely Successful Features of D
>
>     http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D?format=html5

Some comments:

Using goto for cleanup is a common trick probably known to most modern C users. Maybe the C slide should have used goto, or there could have been two C slides; the current setup was perhaps slightly unfair to C programmers who would never think of writing several indentations of rollback-cleanup.

C# programmers might want a word with you about slide #8, as C# does have the `using` statement to help with cleanup in a sort-of RAII-style way, except it still needs a level of indentation; it's not revolutionary and not nearly as good as D style or even C++ style cleanup, but it does improve it over the pure Java model.

The editor comment would've made a great segue into mentioning VisualD - I don't actually know much about the composition of the audience, but it is a Microsoft hosted conference :V

I think it's important to emphasize that string mixins are only available at compile-time, I think the host of eval()-like functions in other languages have soured quite a few people to the idea of mixing in strings as code. It should've been obvious to anyone who was paying attention, but it's probably worth mentioning nevertheless.

Slide #23: font size too big 8)

Anyway, overall, one of the best presentations about D I've seen yet, it's always a joy to watch these videos.

April 12, 2012
On Thursday, 12 April 2012 at 13:46:50 UTC, Jakob Ovrum wrote:
> This video went up a while ago. I would like to comment on it, but I didn't see any thread about it, so here it is.
>
>     Three Unlikely Successful Features of D
>
>     http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D?format=html5
>
> Thanks to Andrei Alexandrescu for this great presentation! Although I'm judging by the video alone, I feel you captivated the crowd quite well with this one :)

Reddit:

    http://www.reddit.com/r/programming/comments/s66e8/three_unlikely_successful_features_of_d_langnext/
April 12, 2012
On 4/12/12 9:13 AM, Jakob Ovrum wrote:
> On Thursday, 12 April 2012 at 13:46:50 UTC, Jakob Ovrum wrote:
>> This video went up a while ago. I would like to comment on it, but I
>> didn't see any thread about it, so here it is.
>>
>> Three Unlikely Successful Features of D
>>
>> http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D?format=html5
>>
>>
>> Thanks to Andrei Alexandrescu for this great presentation! Although
>> I'm judging by the video alone, I feel you captivated the crowd quite
>> well with this one :)
>
> Reddit:
>
> http://www.reddit.com/r/programming/comments/s66e8/three_unlikely_successful_features_of_d_langnext/
>

Rats, there are two posts:

http://www.reddit.com/r/programming/comments/s617m/three_unlikely_successful_features_of_d_andrei/


Andrei
April 12, 2012
On Thursday, 12 April 2012 at 14:15:09 UTC, Andrei Alexandrescu wrote:
> On 4/12/12 9:13 AM, Jakob Ovrum wrote:
>> On Thursday, 12 April 2012 at 13:46:50 UTC, Jakob Ovrum wrote:
>>> This video went up a while ago. I would like to comment on it, but I
>>> didn't see any thread about it, so here it is.
>>>
>>> Three Unlikely Successful Features of D
>>>
>>> http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D?format=html5
>>>
>>>
>>> Thanks to Andrei Alexandrescu for this great presentation! Although
>>> I'm judging by the video alone, I feel you captivated the crowd quite
>>> well with this one :)
>>
>> Reddit:
>>
>> http://www.reddit.com/r/programming/comments/s66e8/three_unlikely_successful_features_of_d_langnext/
>>
>
> Rats, there are two posts:
>
> http://www.reddit.com/r/programming/comments/s617m/three_unlikely_successful_features_of_d_andrei/
>
>
> Andrei

Agh, I missed it, sorry! I deleted mine.

(Hey, mine linked directly to the HTML5 version, I take solace in this fact :P)
April 12, 2012
On Thu, 12 Apr 2012 15:46:49 +0200, Jakob Ovrum <jakobovrum@gmail.com> wrote:

> This video went up a while ago. I would like to comment on it, but I didn't see any thread about it, so here it is.
>
>      Three Unlikely Successful Features of D
>
>      http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D?format=html5
>
> Thanks to Andrei Alexandrescu for this great presentation! Although I'm judging by the video alone, I feel you captivated the crowd quite well with this one :)

The generalized palindrome doesn't work with odd lengths.
simple fix:

bool palindrome(Range)(Range range) {
    for (; !range.empty; range.popFront(), range.empty || range.popBack()) {
        if (range.front != range.back)
            return false;
    }
    return true;
}
April 12, 2012
On 4/12/12 4:57 PM, Martin Nowak wrote:
> On Thu, 12 Apr 2012 15:46:49 +0200, Jakob Ovrum <jakobovrum@gmail.com>
> wrote:
>
>> This video went up a while ago. I would like to comment on it, but I
>> didn't see any thread about it, so here it is.
>>
>> Three Unlikely Successful Features of D
>>
>> http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D?format=html5
>>
>>
>> Thanks to Andrei Alexandrescu for this great presentation! Although
>> I'm judging by the video alone, I feel you captivated the crowd quite
>> well with this one :)
>
> The generalized palindrome doesn't work with odd lengths.
> simple fix:
>
> bool palindrome(Range)(Range range) {
> for (; !range.empty; range.popFront(), range.empty || range.popBack()) {
> if (range.front != range.back)
> return false;
> }
> return true;
> }

Ouch. Thanks.

Andrei
April 12, 2012
On Thursday, 12 April 2012 at 22:15:42 UTC, Andrei Alexandrescu wrote:
> On 4/12/12 4:57 PM, Martin Nowak wrote:
>> The generalized palindrome doesn't work with odd lengths.
>> simple fix:
>>
>> bool palindrome(Range)(Range range) {
>> for (; !range.empty; range.popFront(), range.empty || range.popBack()) {
>> if (range.front != range.back)
>> return false;
>> }
>> return true;
>> }
>
> Ouch. Thanks.

Call me stupid, but how exactly is the version from Andrei's slides broken?

David
April 12, 2012
On Thursday, 12 April 2012 at 22:27:03 UTC, David Nadlinger wrote:
> Call me stupid, but how exactly is the version from Andrei's slides broken?

Disregard that, I was looking at the array slicing version.

David
April 12, 2012
On 4/12/12 4:57 PM, Martin Nowak wrote:
> On Thu, 12 Apr 2012 15:46:49 +0200, Jakob Ovrum <jakobovrum@gmail.com>
> wrote:
>
>> This video went up a while ago. I would like to comment on it, but I
>> didn't see any thread about it, so here it is.
>>
>> Three Unlikely Successful Features of D
>>
>> http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D?format=html5
>>
>>
>> Thanks to Andrei Alexandrescu for this great presentation! Although
>> I'm judging by the video alone, I feel you captivated the crowd quite
>> well with this one :)
>
> The generalized palindrome doesn't work with odd lengths.
> simple fix:
>
> bool palindrome(Range)(Range range) {
> for (; !range.empty; range.popFront(), range.empty || range.popBack()) {
> if (range.front != range.back)
> return false;
> }
> return true;
> }

Wrote a comment:

http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D

Thanks for the fix!


Andrei