Re: NDC Oslo talk: Generic Programming Galore Using D

2013-07-09 Thread Dicebot
On Tuesday, 9 July 2013 at 15:35:31 UTC, Andrei Alexandrescu 
wrote:
I got permission. Videos can be uploaded to youtube as long as 
NDC Oslo 2013 is mentioned.


Andrei


http://youtu.be/2W0G_FcSPcE
http://youtu.be/G5O_ypjlDD8


Re: "Programming in D" book is about 88% translated

2013-07-09 Thread Ali Çehreli

On 06/29/2013 01:08 AM, Johannes Pfau wrote:

> BTW: The link to wiki4d on this page
> http://ddili.org/ders/d.en/intro.html
> could be updated to http://wiki.dlang.org/Editors and / or
> http://wiki.dlang.org/IDEs

Done.

Additionally, thanks to Jerome Sniatecki, I made the Ranges chapter 
const-correct and applied UFCS to code examples:


  http://ddili.org/ders/d.en/ranges.html

Thank you:

  http://ddili.org/ders/d.en/acknowledgments.html

Ali



Re: Is this D or is it Javascript?

2013-07-09 Thread Adam D. Ruppe

On Tuesday, 9 July 2013 at 19:14:30 UTC, Kagamin wrote:
With dynamic typing there's no way to tell if Math.max(12,24) 
is a method call or field delegate call.


The way my thing works is Math.max (or anything else) returns a 
ref var, and the (12,24) does opCall on it, which succeeds if the 
var is of type function.


bearophile recently posted a pull request by Kenji Hara IIRC that 
implements @property more correctly. If that gets pulled, this 
will be good.


In the little scripting language too, there's now a class 
declaration, that looks kinda like D, but it is actually just 
syntax sugar that assigns the declarations to the object, so 
there is no distinction there between a method and field - all 
"methods" are just delegates attached to the object.


Re: Is this D or is it Javascript?

2013-07-09 Thread Kagamin

On Saturday, 6 July 2013 at 00:21:54 UTC, Adam D. Ruppe wrote:

// the second () is just because @property is broken
writeln(Math.max()("12", 24)); // prints 24


With dynamic typing there's no way to tell if Math.max(12,24) is 
a method call or field delegate call. Javascript assumes it's 
member call and passes this pointer to the called function. When 
I implemented an object for javascript, I chose to detect if a 
called method is a field with delegate and forward the call to 
the delegate as per semantics of javascript.


Re: NDC Oslo talk: Generic Programming Galore Using D

2013-07-09 Thread Andrei Alexandrescu

On 7/8/13 10:03 AM, Andrei Alexandrescu wrote:

On 7/8/13 6:49 AM, Dicebot wrote:

On Thursday, 4 July 2013 at 16:47:36 UTC, Andrei Alexandrescu wrote:

Videos for my two NDC 2013 talks are now online. Generic Programming
Galore using D at http://vimeo.com/68378925 and the HipHop Virtual
Machine at http://vimeo.com/68383350.

Andrei


Am I allowed to re-upload them to YouTube?


I don't know, let me ask.

Andrei


I got permission. Videos can be uploaded to youtube as long as NDC Oslo 
2013 is mentioned.


Andrei


Re: A very basic blog about D

2013-07-09 Thread John Colvin

On Sunday, 7 July 2013 at 15:00:43 UTC, John Colvin wrote:
I had some free time so I decided I should start a simple blog 
about D, implementing some unix utilities. I've 
(unsurprisingly) started with echo.


http://foreach-hour-life.blogspot.co.uk/

It's nothing ground-breaking, but every little helps :)


Seeing as most of the traffic I'm getting is from this thread, I 
thought it might be interesting for people to see some stats 
about where people are from, what browsers they're using etc.


https://dl.dropboxusercontent.com/u/910836/Webstats_02072013-10_09072013-09.png

A lot of windows users, although that's skewed by people browsing 
from work. I hope that accounts for the IE contingent as well!