r/d_language • • Oct 11 '13

First D language commit at Facebook

https://twitter.com/incomputable/status/388440621452500993
116 Upvotes

9 comments sorted by

10

u/filgood Oct 11 '13

very good to see D being backed by a major player. I hope this will give D the momentum it needs to get a wider audience...

9

u/letharion Oct 11 '13

It's really cool that D is used at Facebook, but for those not already initiated, where exactly is this code used? "committed the first 5112 lines of D code to Facebook's repository." doesn't mean much to me, as surely FB has many repositories. The only thing I can think of that's FBs and written in C++ is HHVM.

3

u/nxsy Oct 11 '13

In Andrei's AMA last week, he cited a roughly 70/30 ratio for PHP and C++ in terms of lines of code.

Much of Facebook's infrastructure is written in C++ - deployment and service discovery systems, the backends to services like feed and search, and so forth.

On the open source side, there's HHVM, as you mention, and Folly, which you can think of as Facebook's core C++ code used by almost all C++ applications.

2

u/puplan Oct 11 '13

A quote from D forum:

"Today I committed the first 5112 lines of D code to Facebook's repository. The project is in heavy daily use at Facebook. Compared to the original version (written in C++) we've measured massive wins in all of source code size, build speed, and running speed.

In all likelihood we'll follow up with a blog post describing the process."

5

u/TheSmoke Oct 11 '13

FUCK YEAH.

i've been waiting so long for this since andrei is working for fb. please post a follow up. i'm really curious about the improvements.

2

u/merlinm Oct 11 '13

he's writing a faster scala compiler

1

u/puplan Oct 11 '13

Care to elaborate? Are you using Scala metaphorically?

3

u/merlinm Oct 14 '13

This is a bit of a joke. Facebook is known to be big into scala, so the joke is they are having performance issues and so had to bring in Andrei in to make scala faster (in D) :-D