8 ms·
Has anyone here done any production-level stuff with D? I'm debating using it for my next project, but I want to see if it's industry-tested.
by tombert 10y ago
Has anyone here done any production-level stuff with D? I'm debating using it for my next project, but I want to see if it's industry-tested.
- mark_element 10y agohttps://dlang.org/orgs-using-d.html https://dlang.org/orgs-using-d.html
- Cyph0n 10y agoDoesn't Facebook use D internally?
- gbrown_ 10y agoThey wrote a C/C++ preprocessor in D, but this now appears to be abandoned. https://github.com/facebookarchive/warp https://github.com/facebookarchive/warp
- Cyph0n 10y agoThat's too bad. I guess OCaml is the non-mainstream language Facebook seems to be interested in. One thing D and Nim are lacking is adoption by a large company, and I feel that's partly what's keeping them behind Go and Rust.
- codemac 10y agoAndrei left fb in 2015 - probably due to their lack of commitment to D & his F stocks doing well.
- bachmeier 10y agoAndrei works full time on the D language/D foundation. To my knowledge, his decision to leave Facebook had something to do with his family and his desire to work on D full time, not any problems with his employer.
- swah 10y agoMost folks will say that either C++ has improved or use Rust. (D was a really lovely experience a few years ago, though..)
- p0nce 10y agoMost folks haven't tried D.
- x0x0 10y agoSince you use it in prod / sell products written in it, could you (briefly) share why you like it and the advantages you see in it? Thank you!
- p0nce 10y agoWent from Delphi to Ocaml to lots of C++ to D. Basically I'm happier with the products I wrote in D so I keep using it. It's an almost schizophrenic language that always says "yes" when you ask if something is possible. The community regularly "discovers" new idioms within the language. Learning D for real is as involved as any other language, but what people remark first is the low mental overhead and how absurdly practical it is. Advantages I see would be: fast to edit, compile, and run. Non-controversial syntax, focus on power, and the fact you kind of already know it.
- int_19h 10y agoHow good is the tooling? IDE support, code completion and debugging especially.
- Ace17 10y agoThere are 3 major compiler implementations (dmd, gdc, ldc). I mostly work with gdc from GNU/Linux, and basically, everything that works with g++ works with gdc. More precisely, I use, on a daily basis: - vim + ctags (editor + symbol lookup) - gdb (debugger) - gcov (code coverage) - valgrind (mostly callgrind (call-graph) and massif (memory profiler)) - oprofile (cpu profiler) Unfortunately there's no ccache equivalent yet, and I'm missing it. For the Windows people, there's VisualD, which basically is the integration in Visual Studio. At this point, you have an IDE and a debugger (I don't know about code completion). There's also a build-tool (with package-managing abilities), called "dub" ; that handles fetching and building external dependencies (in the vein of npm).
- glaze 10y agoQuantum Break is a modern Xbox One & PC game and uses D in some subsystems.
- oripel 10y agoI do every day. It's pretty awesome, I recommend trying it. D's CTFE and templates are really really nice to use. I can write very low-level high-performance memory sensitive code, controlling everything, but the code can still be beautiful with great compiler checking. It can confuse my C++ brain sometimes, though, and then it's great to have someone to consult with (e.g on the D forums).
- p0nce 10y agoYou'll be okay.
- vogt 10y agoOur data team at Emsi (www.economicmodeling.com) use it in production every day. We are a labor market data viz company with a multitude of different sources of data, most of which are public.
- rdnetto 10y agoI used it for a while, ended up switching to Haskell, which had a lot of similar benefits despite being so different. If you're going to use it, I highly recommend the D Programming Language (book). It's extremely well written, and remains once of my favourite technical books.
- Ace17 10y agoMy company (~50 people) has been using D in production for several years. We rely on gdc (we measured it generates the fastest code for our usage). Nearly once per year, a blocking bug sneaks into the compiler and needs to be worked-around (crashes on invalid code are easy to avoid ; sometimes, it's a little more tricky, but we've never been blocked for more than 1 day). The maintainers are very active, though, and it's generally quickly fixed, provided that I report the bug myself. There's also been some friction when it came to cross-compilation (definitely doable, but not as easy at "apt install mingw-gcc"). In the team, the adoption went well ; coming from C++, switching to D feels natural. The syntax is more concise and consistent than C++14 syntax. The standard library handles so much stuff (md5, sending emails, command line parsing, filesystem, process creation) that most of our projects don't depend on any other external library (nor do they depend on any OS-specific stuff). The fact that all variables are initialized by default makes it hard to have non-deterministic behaviour ; and the fact that the "buffer" abstraction (aka "Span"/"Slice"/"string_view"/"ptr+len") is in the language makes it really easy to write code which is concise and secure. C++ has been slowly catching up since 2011, however, why wait?