11 ms·
Moving forward with work on the D language and foundation
- nnq 11y agoAwesome, and congrats to AA! We have an all out languages war ahead with D vs. Rust vs Go. I'm sure tons of innovations will come out of this that will benefit us all! (Yeah, I get it that the languages target different niches in theory, but there will be significant overlap among the people who use them, I'm sure...)
- teamhappy 11y agoD, Rust, and Go (and C++) have been on stage together: https://www.youtube.com/watch?v=BBbv1ej0fFo https://www.youtube.com/watch?v=BBbv1ej0fFo
- nnq 11y agoOuch, quite a difference between the founders... now I'm sure that C++ and Go will rule the world... unfortunately. D would be awesome for game development, because it's a "C++ done right", but I don't think Andrei has the salesman qualities needed to sell his child to game devs, like getting a bunch of people together to write a good open-source game engine that could also serve as an example of codding patterns. And Rust and his daddy... they are just too smart to become popular nowadays, people just don't have the will and time to sit and learn better ways of doing things when they have alternatives that "mostly work most of the time" and have an easier learning curve...
- vvanders 11y agoI wouldn't discount Rust, I'm finding it incredibly refreshing after spending most of my career in C++.
- qznc 11y agoRust has at least one niche for itself: Extension language for Python (or Javascript, Ruby, etc). A language with garbage collection disqualifies because Python already has one and two GCs in one application is not a good idea. Go has no plans to abandon GC and D still has a long way to go.
- forgettableuser 11y agoGame devs tired of C++ are waiting for Jonathan Blow's new language :) https://www.youtube.com/watch?v=TH9VCN6UkyQ https://www.youtube.com/watch?v=TH9VCN6UkyQ He states D isn't different enough to encourage most devs to go through the pain of switching. If they are going to switch, they would like that language to be much better targeted at solving game dev specific needs.
- Thaxll 11y agoGame devs will 'never' switch to D or anything different from C++, it's a standard in the industry for the past 20 years, everything is built around it. Edit: yeay the downvote bandwagon, you should go to a AAA studio and ask about C++.
- teamhappy 11y agoNot sure why you're getting down voted. The middleware business is dominated by C++, Windows is still the big player, and pretty much all legacy code is written in C++. Adopting new language features is far more practical than moving to another language. Relatively small backend apps written in C++ may be a better target for D and Rust.
- pjmlp 11y agoEveryone that has been related to the game industry since the early days, knows game studios also change languages, despite the existing eco-systems. The difference is that they only do it when the OS vendors, or game console vendors, force them to adopt new languages in their SDKs.
- vvanders 11y agoThe game industry isn't just AAA(arguably AAA died a while ago). I know many gamdevs using Unity, LUA, Javascript, Gamemaker and a ton of other options.
- jeremiep 11y agoNever say never. I am a game dev. I worked on AAA titles. I want to switch to D. Badly. There are reasons why AAA studios stick to C++: they don't know any better, they're in constant crunch-mode and don't have time to look for better alternatives, they use an existing engine with years of development history and don't want to invest in a new one, they target platforms where only C/C++ compilers are available, etc. You'd be surprised of the horrors you can find in a game's C++ code base (there are gems too, but you kind of expect those.)
- detaro 11y agoI've seen quite a bit of interest from hobby gamedev people in rust, way more than in D. I think reddit has had a rust gamedev sub for quite a while. Now if hobbyist/indie interest will influence the industry at large is a different matter, but I wouldn't count Rust out just yet.
- masklinn 11y ago> I think reddit has had a rust gamedev sub for quite a while. https://www.reddit.com/r/rust_gamedev https://www.reddit.com/r/rust_gamedev it's pretty small though (1264 subscribers, /r/rust has 12000, /r/swift is the same and /r/golang has 16000)
- Intermernet 11y agoI actually got the impression that the C++ and Go camps were pretty happy to see the competition and conversation. Those 4 languages are a pretty good cross section of the state of "systems programming" and I don't think any of them really feel that there isn't room, in the near future at least, for all of their offerings. I think D and Rust will both be fairly well received (if they aren't already), if only for their perspective on memory management. Andrei hopefully doesn't need salesman like qualities. I hope that there will be enough D evangelists to do the selling for him. Rust will hopefully be hugely successful, but if not, the ideas it espoused will certainly be developed further by future languages. Those 4 languages are aiming at different targets (I think Rust and D would be aiming at the most common group). C++ is looking to gain the ability to do "modern things" in C++ without confusing existing C++ devs, Go is looking to attract devs who want to do modern stuff with a tiny ramp-up cost (low cognitive over-head, low time-to-productivity, brilliant standard library, native concurrency primitives) whereas D and Rust are both offering languages with more "modern" features that may be theoretically sound, but don't have as much proven use in production code. These differences are blurred, and the languages obviously do have cross-over in terms of features and paradigms, but I doubt they're truly competing for many jobs yet. They all have their place, depending on what you're trying to achieve.
- pcwalton 11y ago> And Rust and his daddy... they are just too smart to become popular nowadays, people just don't have the will and time to sit and learn better ways of doing things when they have alternatives that "mostly work most of the time" and have an easier learning curve... That presupposes that Rust is more complex than C++ in a way that causes developers to learn C++ instead of Rust. Certainly there are a lot of C++ developers at the moment (though that number is much less than in years and decades past!) But I don't see that many new developers learning C++ anymore. Even beginning programmers who are interested in games are turning to higher-level languages and frameworks these days. My employer hires lots of C++ developers, and it's well-known that it's getting increasingly harder to find them. When comparing Rust to Go, sure, Go is an easier language to pick up. When comparing Rust to C++, the majority of people I've talked to think the ease of use advantage goes to Rust.
- cmollis 11y agothat's an impressive lineup. (flame bait: which one would fix your mem leak for you? I think AA, he seems pretty cool..)
- alex_muscar 11y agoI wouldn't say it's a language war :) The communities of D, C++ and Rust seem quite civil.
- SloopJon 11y agoOne of the first things I'm looking at in Go and Rust is compatibility with C. I haven't used D, but this page makes it look as good or better from that perspective: http://dlang.org/interfaceToC.html http://dlang.org/interfaceToC.html Can anyone comment further?
- rlonstein 11y agoI can. I've written D interfaces to vendor-supplied C and C++ SDKs and for an open source C library (libusb). We're using this at work. For C, it's relatively easy and mechanical to translate by hand but https://github.com/jacob-carlborg/dstep https://github.com/jacob-carlborg/dstep makes starting trivial. For C++, I had two cases- one was easy as that vendor provided a C handle and function call syntax while the other required doing a C shim (facade) to wrap up the object. I didn't find SWIG to be useful but did examine its output to get ideas. The built-in unit testing in D is very handy.
- dbaupp 11y agoIt seems Rust and D have very very similar C FFIs, see http://doc.rust-lang.org/book/ffi.html http://doc.rust-lang.org/book/ffi.html . https://github.com/crabtw/rust-bindgen https://github.com/crabtw/rust-bindgen is a tool in the vein of dstep. (Rust has the advantage of having no runtime beyond what C needs unlike D with its current garbage collector, so FFI, especially exposing a C interface, is likely somewhat simpler.)
- deleted 11y ago[deleted]
- gozo 11y agoDon't miss to click around a little (but probably not too much) on the D forum. It's super fast, but also somewhat annoying (at least in chrome) since it flashes when reloading. Is there a write up somewhere of the stack (etc.) behind it?
- yawniek 11y agoits open source: https://github.com/CyberShadow/DFeed https://github.com/CyberShadow/DFeed
- rerixo 11y agothanks, this is super impressive
- klickverbot 11y agoI'm amazed by how well it holds up despite being both #1 on HN and /r/programming (twice, in the latter case).
- sliverstorm 11y agoAs a mostly-non-programmer who doesn't know anything about D/Go/Rust, that's my favorite thing about D, is the web page :) To my memory it's basically generated static content. That's why it handles high load with such grace, and is so fast even on the slowest devices. I don't know the complexities behind that, but damn, I wish more sites did it.
- _pmf_ 11y agoShitty move by Facebook not at least partially sponsoring this. Instead, they keep putting lipstick on their PHP pig.
- nnq 11y agothe pig flies pretty well for them...
- aikah 11y agowhile HHVM has a little bit of popularity I don't think Hack is really popular. But good for them if it works.
- marrs 11y agoWell it doesn't play with basically any library. That goes for HHVM as well. I tried it out after someone here recommended it. I had about the simplest app possible and I still couldn't get it to build.
- bowlofstew 11y agoThat is an incredible loss for Facebook. Congratulations to the D foundation and community though!
- slipstream- 11y agoWell, this looks like interesting times ahead for the D language. Hopefully this is a good thing, I've loved D since I first came across it. :)
- dbhattar 11y agoThis is indeed a very courageous decision on AA's part to leave a secure job at Facebook to join D Foundation. But I am pretty sure, if at some point in future AA decides, FB will be very happy to have him back.
- tdsamardzhiev 11y agoAA is a rockstar programmer, I'd imagine he isn't too short on cash and wouldn't have any problem finding a job in a big company if he decides to.
- jahnu 11y agoOff topic and old but does anyone on here know what happened to the c++ ranges implementation he promised?
- uxcn 11y agoDo you mean Eric Niebler's ranges[1] library? [1]https://github.com/ericniebler/range-v3 https://github.com/ericniebler/range-v3
- jahnu 11y agoI meant this https://news.ycombinator.com/item?id=716111 https://news.ycombinator.com/item?id=716111 I think he said he had an implementation almost ready to release but I never saw it. I would be very interested to see it. Thought it would be a good thread to ask.
- yawniek 11y agogreat times ahead for D! for those now interested in the D language one must recommend Ali Çehreli's free book that now is also available as print: http://ddili.org/ders/d.en/index.html http://ddili.org/ders/d.en/index.html
- claudiug 11y agoWhat a bold move. There are other in the OS communities, languages guru's that are working 100% on the language? Matz is working only on ruby at heroku? Guido, is working full time at dropbox? I think this is huge lose for Facebook and a big win for D lang comunity
- forgettableuser 11y agoThe question on my mind (and probably everybody else's) is Facebook backing away from D? Seems like if they were stepping up D, they would want to keep him on board to help improve it. And backing away from D might have encouraged him to leave.
- npongratz 11y agoAnything is possible (crystal balls are notoriously unreliable), but in the linked forum, Mr. Alexandrescu says Facebook is not backing away from D: "Facebook is and continues to be a D user, the last project I was working on (and is ongoing) uses D, and there's more use in smaller internal projects. But there is no stronger involvement for the time being." http://forum.dlang.org/post/qnfbjzpldfhqsfqclqdx@forum.dlang.org http://forum.dlang.org/post/qnfbjzpldfhqsfqclqdx@forum.dlang...
- neomantra 11y agoI was pleasantly surprised to see that David Abrahams (Boost / C++) was working on Swift's Standard Library at Apple.
- bbatha 11y agoFaceBook has Simon Marlow working haskell though it seems he's mostly working on the library side of the things see[1]. 1: https://github.com/facebook/Haxl https://github.com/facebook/Haxl
- rdtsc 11y agoOf course if you don't know who Alexandrescu is, here is a C++ fantasy map that was circulated a few years back (it is funnier if know C++) and well, Alexandrescu has his own castle there: http://goldns.ru/cppmap-2012.png http://goldns.ru/cppmap-2012.png
- jordigh 11y ago"STL" inside the holy standard lands! I protest! The standard recognises no such thing as "STL"! It is simply the standard libary. The STL is the library that <strike>Alexandrescu</strike> Stepanov wrote that precedes the C++ stdlib.
- Gupie 11y agoAlexander Stepanov wrote it.
- fauigerzigerk 11y agoI heard that there's also a diamond mine somewhere in the multiple inheritance forest, but all pointers to its exact location seem to be off a bit :)
- rdtsc 11y agoIndeed, look West, there is a diamond mine. By the Virtual Inheritance Mountains, which are North of the Inheritance Forest. The location makes sense, because virtual inheritance helps solve the "diamond" problem. (I am not a good C++ programmer, so if this is wrong, please correct me).
- carth_baywood 11y agoThat's for explaining the joke so laboriously and with so little wit
- sclangdon 11y agoIt's location has meaning - it's right on the edge of the known lands.
- aswanson 11y agoI want to learn D, Rust, Go, Android, Rails 4.x, Objective C/Ios, D3.js, C++11, Lisp, Smalltalk.... Good luck with that, me.
- 3pt14159 11y agoI can't even get enough time to do Nim, Ember 2, and Rails 5.
- andralex 11y agoThis is he. AMA!
- alessioalex 11y agoMult succes in continuare ! :)
- andralex 11y agoMultzam!
- jordigh 11y agoLooks like the target audience for C++ mindshare is being taken away by Golang and Rust. When I think of "D" I think of nothing but "oh, yeah, they use it at Facebook". Who else uses it? How do you see Golang and Rust as competition?
- err4nt 11y agoI know a little JavaScript - what's the best way for me to tinker around with D and see what it offers? I'm curious! Even if I just built something simple in both languages it would be a fun exercise.
- patcoll 11y agoIt's a bit old, but this gives some nice context and allows you to follow along with your own D compiler: http://www.informit.com/articles/article.aspx?p=1381876 http://www.informit.com/articles/article.aspx?p=1381876
- romaniv 11y agoSomehow I find this more inspiring than most commercial success stories. Deciding to work on ideas instead of working for a large or small company. I sincerely wish the best to the D Foundation. (I'm an occasional lurker on D mailing list and proud owner of the D book. That mailing list, BTW, taught me a great deal of things about a whole bunch of programming languages.)
- misiti3780 11y agoI remember reading this book when I was using C++ a lot and being blown away: http://www.amazon.com/Modern-Design-Generic-Programming-Patterns/dp/0201704315/ref=pd_bxgy_14_img_y http://www.amazon.com/Modern-Design-Generic-Programming-Patt... Unfortunately - I changed jobs to work on some start ups and said bye to C++ for Python, JS, etc and never had a chance to really use the concepts
- krylon 11y agoI have looked at D repeatedly over the last couple of years, and I really hope it will become more popular. It looks pretty much like what one would want C++ to be like if one were to start over again, free of the need for backwards compatilibity with C (at the syntax level) I haven't had the A-Ha moment with D, I have to admit, not the way I had with Go. Right now, Go feels more aligned with the way I tend to think. But I still think that D is a brilliant language that people will come to like if they are not tied to the ground by legacy code they have to maintain. I don't think D will ever replace C++, but if Alexandrescu is behind it, that might go a long way.
- luismarques 11y agoTry programming with (std.)ranges and (std.)algorithm's. It's something completely refreshing, replacing a mess of loopy code with a clean pipeline of algorithms. The lazy nature of the standard algorithms and the clean syntax you get with the UFCS feature produce some really neat results. Even if you end up not using D any further, it can change your view of programming.
- eco 11y agoYeah, it's a lot like lisp in that regard. I'm glad I learned D even though I don't use it professionally if only because it changed the way I look at some things. The algorithm chaining enabled by UFCS and the range based standard library can lead to some very beautiful code (at least as far as C-family languages go). It also made me painfully aware of how often I copy strings in C++ (string_view cannot come soon enough). Here's a snippet of code I hacked together in D for a bot to scrape titles from pages of urls in irc messages. matchAll(message, re_url) .map!( match => match.captures[0] ) .map!( url => getFirst4k(url).ifThrown([]) ) .map!( content => matchFirst(cast(char[])content, re_title) ) .cache // cache to prevent multiple evaluations of preceding .filter!( capture => !capture.empty ) .map!( capture => capture[1].idup.entitiesToUnicode ) .map!( uni_title => uni_title.replaceAll(re_ws, " ") ) .array .ifThrown([]); It uses D's fast compile-time regex engine to look for URLs, then it downloads the first 4k (or substitutes an empty array if there was an exception), uses regex again to look for a title, filters out any that didn't find a title, converts all the html entities to their unicode equivalents (another function I wrote), replaces excessive whitespace using regex, then returns all the titles it found (or an empty array if there was an exception). There's stuff to improve upon but compared to how I would approach it in C++ it's much nicer.
- acrodrig 11y agoGood luck! I have been wishing D well for many years now and I hope your steering of the foundation will take D into the forefront of programming.
- thawkins 11y agoWhat activities are running to get some more infrastructure support for D. I keep tryimg to bring up a workflow on it, but get hit by a lack of support for things like editors/ide's and package managers. Will the foundatiom be sponsoring development of plugins for popular ide's like atom, netbeans, intelij, eclipse etc.
- emmanueloga_ 11y agonit: "Next step with the D Language Foundation is a formal talk with the foundation's prospective attorney tomorrow." Isn't that something you'd like to do before leaving your day job?
- EvenThisAcronym 11y agoI started learning D in 2012, coming from a Java/C++ background. One thing that I've learned over the past 3 years is that D is one of those languages that completely changes your perspective on some aspect of language design (for D, that's metaprogramming and range-based algorithms). D can proudly take its place among the Lisps, the Haskells, the Smalltalks, as one of those fundamental paradigm shifts that makes you think differently about everyday problems.