Re: I'm joining Facebook

2014-04-05 Thread Andrei Alexandrescu

On 4/5/14, 3:13 AM, Peter Alexander wrote:

Well, I didn't considering this D.announce worthy, but Andrei suggested
I post the news.

As the title suggests, after over 5 years in the games industry I've
decided to shake things up a bit and join Facebook at their London office.


Good luck, and ping me when you're around! -- Andrei



Re: It's official: Sociomantic Labs has been acquired by dunnhumby Ltd

2014-04-05 Thread Andrei Alexandrescu

On 4/4/14, 2:06 AM, Don wrote:

On Friday, 4 April 2014 at 02:38:58 UTC, Andrei Alexandrescu wrote:

On 4/3/14, 7:04 AM, Don wrote:


https://www.sociomantic.com/dunnhumby-acquires-sociomantic/


Congratulations to all involved!

How will this impact the use of D at dunnhumby?


Andrei


This is going to be very big for D. Our technology will be used with
their data and analysis (they're not a software company).


Fantastic! Good luck, and hopefully you'll switch to D2 soon! :o)

Andrei



Re: Interesting rant about Scala's issues

2014-04-05 Thread Walter Bright

On 4/5/2014 6:28 PM, Leandro Lucarella wrote:

Walter Bright, el  5 de April a las 11:04 me escribiste:

Of course, you can hide all this in a template.


Well, you can "emulate" enums as they are now with structs too, so that
doesn't change anything in the argument about why to provide syntax
sugar for one and not the other.



The argument for syntactic sugar is it must show a very large benefit over using 
a template.


Having special syntax for everything makes the language unusable.


Re: Interesting rant about Scala's issues

2014-04-05 Thread Leandro Lucarella
Walter Bright, el  5 de April a las 11:04 me escribiste:
> On 4/5/2014 2:40 AM, Leandro Lucarella wrote:
> >enum Symbolic { Dogs, Cars, Trees }// not implicitly casteable (and
> >// maybe not even expose the
> >// internal value)
> >
> >?
> 
> 
> struct Symbolic {
> private static struct _impl { private int x; }
> enum Dogs = _impl(0);
> enum Cars = _impl(1);
> enum Trees = _impl(2);
> }
> 
> Of course, you can hide all this in a template.

Well, you can "emulate" enums as they are now with structs too, so that
doesn't change anything in the argument about why to provide syntax
sugar for one and not the other.

-- 
Leandro Lucarella (AKA luca) http://llucax.com.ar/


Re: Interesting rant about Scala's issues

2014-04-05 Thread Seth Tisue

On Saturday, 5 April 2014 at 18:47:50 UTC, Walter Bright wrote:

In response to a question about macros & reflection:

"I begged them not to, not to just export the compiler to I 
begged them I begged them not to do it."


A reboot is in progress on this, too:
http://scalareflect.org


Re: Interesting rant about Scala's issues

2014-04-05 Thread Walter Bright

On 4/5/2014 10:10 AM, Timon Gehr wrote:

On 04/03/2014 04:45 AM, Walter Bright wrote:

On 4/2/2014 6:55 PM, Andrei Alexandrescu wrote:

A lot of them could apply to us as well.

https://www.youtube.com/watch?v=TS1lpKBMkgg



at about 44:00: "I begged them not to do them [AST macros]." :-)


(This is a misquote.)


Yeah, I should have been more accurate.

In response to a question about macros & reflection:

"I begged them not to, not to just export the compiler to I begged them I begged 
them not to do it."


Re: I'm joining Facebook

2014-04-05 Thread Walter Bright

On 4/5/2014 3:13 AM, Peter Alexander wrote:

Huge thanks to Andrei for referring me, and to Facebook for hiring me!


Congratulations!


Re: Interesting rant about Scala's issues

2014-04-05 Thread Walter Bright

On 4/5/2014 2:40 AM, Leandro Lucarella wrote:

enum Symbolic { Dogs, Cars, Trees }// not implicitly casteable (and
   // maybe not even expose the
   // internal value)

?



struct Symbolic {
private static struct _impl { private int x; }
enum Dogs = _impl(0);
enum Cars = _impl(1);
enum Trees = _impl(2);
}

Of course, you can hide all this in a template.


Re: Interesting rant about Scala's issues

2014-04-05 Thread Timon Gehr

On 04/03/2014 04:45 AM, Walter Bright wrote:

On 4/2/2014 6:55 PM, Andrei Alexandrescu wrote:

A lot of them could apply to us as well.

https://www.youtube.com/watch?v=TS1lpKBMkgg



at about 44:00: "I begged them not to do them [AST macros]." :-)


(This is a misquote.)


Re: Interesting rant about Scala's issues

2014-04-05 Thread Marc Schütz

On Friday, 4 April 2014 at 01:54:16 UTC, Ben Boeckel wrote:

There is *zero* rationale as to why this would be a compilable
implementation of comparison:

int compare(int a, int b) {
return a * b;
}

The fact that this compiles when used as a comparison is 
*insane* when

you take a fresh look at how you can construct a language.


You're actually not restricted to int; you can also return float, 
or in fact any type that's compare to 0, including user-defined 
types that implement their own `opCmp`.


Re: I'm joining Facebook

2014-04-05 Thread Andrej Mitrovic
On 4/5/14, Peter Alexander  wrote:
> Well, I didn't considering this D.announce worthy, but Andrei
> suggested I post the news.

Congrats!

> As the title suggests, after over 5 years in the games industry
> I've decided to shake things up a bit and join Facebook at their
> London office.
>
> It will most likely be
> tools/infrastructure work of some sort.

Hmm, gamedev experience and working at Facebook. Something something VR. :p

Good luck with the job!


Re: I'm joining Facebook

2014-04-05 Thread Dicebot

Promising!

Congratulations and looking forward to more Facebook + D 
announcements :)


Re: I'm joining Facebook

2014-04-05 Thread Paulo Pinto

Am 05.04.2014 12:13, schrieb Peter Alexander:

Well, I didn't considering this D.announce worthy, but Andrei suggested
I post the news.

As the title suggests, after over 5 years in the games industry I've
decided to shake things up a bit and join Facebook at their London office.

Unfortunately, that's about all there is to say at the moment! I'm
starting at the end of May and that's when I'll figure out what project
I'll be working on (as Andrei has mentioned before, you aren't hired for
a particular role at Facebook, but as a general engineer and you decide
on your project during your first 6 weeks at "bootcamp"). It will most
likely be tools/infrastructure work of some sort.

To be clear, I haven't been hired for anything specifically D related,
but it goes without saying that I'll continue to be a D evangelist ;-)

Huge thanks to Andrei for referring me, and to Facebook for hiring me!


Congratulations!


Re: Mono-D 1.9 - opIndex/opSlice overload recognition + completion

2014-04-05 Thread Alexander Bothe

On Friday, 4 April 2014 at 19:20:18 UTC, Adam Wilson wrote:
If that's not possible then it's still nice to know that I am 
working with a type and not an identifier.


I furthermore fixed some reference finding + highlighting bugs, 
some NREs, an SO regression and some further bugs, they're all 
part of v1.9.2


Re: I'm joining Facebook

2014-04-05 Thread Rikki Cattermole

Good luck!

Will definately be looking forward to hearing how the influence
of D is spreading  at Facebook over the next year or so.


I'm joining Facebook

2014-04-05 Thread Peter Alexander
Well, I didn't considering this D.announce worthy, but Andrei 
suggested I post the news.


As the title suggests, after over 5 years in the games industry 
I've decided to shake things up a bit and join Facebook at their 
London office.


Unfortunately, that's about all there is to say at the moment! 
I'm starting at the end of May and that's when I'll figure out 
what project I'll be working on (as Andrei has mentioned before, 
you aren't hired for a particular role at Facebook, but as a 
general engineer and you decide on your project during your first 
6 weeks at "bootcamp"). It will most likely be 
tools/infrastructure work of some sort.


To be clear, I haven't been hired for anything specifically D 
related, but it goes without saying that I'll continue to be a D 
evangelist ;-)


Huge thanks to Andrei for referring me, and to Facebook for 
hiring me!


Re: Interesting rant about Scala's issues

2014-04-05 Thread Leandro Lucarella
bearophile, el  4 de April a las 18:39 me escribiste:
> Walter Bright:
> 
> Thank you for the answers.
> 
> >Here's one:
> >
> >  enum Index { A, B, C }
> >  T[Index.max] array; // Error: Index.max is not an int
> >  ...
> >  array[B] = t;   // Error: B is not an int
> 
> In the last months I've grown a moderate desire for optionally
> strongly typed array indexes in D (as seen in Ada, but with a

What about:

enum Int : int { One = 1, Two, Three } // implicitly casteable to int
enum Symbolic { Dogs, Cars, Trees }// not implicitly casteable (and
   // maybe not even expose the
   // internal value)

?

-- 
Leandro Lucarella (AKA luca) http://llucax.com.ar/