290 points · by signa11 · 11y ago · 130 comments
So, as you try to formalize it, I encourage you to try to remove as much ambiguity and processing complexity as possible. Maybe also work with academics who specialize in formal specs or methods that caught many defects in prior language or system specs. The result is that researchers interested in building assurance and QA tools for D will have a much easier time. Just look at how long it took to certify a C compiler vs ML and LISP compilers despite latter languages being much more powerful.
Reason it's important, whether an immediate concern or not, is that much of the best stuff comes from cash- and time-strapped, but smart, academics trying to make a name or push state-of-the-art. Easier your language is to work with, the more of them might choose it. And you've done a really, good job on a C++ replacement that I thought would've had more adoption. So, I'd like to see some of those brains get put on your work, too. :)
Regardless, good luck to you on your next move!
Competition is good for all involved. Rust and C++ are the competitors closer to the same turf. I think we have a solid value proposition and several ways to enhance it and differentiate ourselves. Time will tell.
- learning of large-scale classifiers and regressors using custom optimizers
- real-time pricing of billions of ads a day using these models on ad exchanges. <.5ms latency to parse complex bid requests and compute sparse and simd dense dot-products
- a real-time event processing system that hits DynamoDB with ~4.5K json queries per sec on a single node
We literally have D systems deployed on hundreds of ec2 instances as we speak and responsible for mission critical tasks of a >100$M run rate company. D is ready for prime time and works at scale.
It's a fun time.
Not on ARM. I will try again but last time I tried setting up a toolchain (~6 months ago) met with headache, pain, and eventually heartache.
http://wiki.dlang.org/Current_D_Use
And many more companies not in that list.
(EDIT sorry, submitted too soon) With regard to targeted users and uses, D is an ample language that could be used for a large range (heh) of applications. I want to make sure the core language and libraries offers a solid support on which various applications, frameworks, and libraries can build.
The advice given in marketing new products is often opposite - find a niche, offer much better value than competitors for that niche ,become the leader of that niche - and use that base to expand.
I wonder if this kind of advice offers a better route for success for a programming language ? What was the case historically ?
2. is there any plan to include Mobile(mainly iOS/Android) in the D roadmap?
3. any plans to safely use the standard library with GC disabled?
However, there were two concurrent developments. One is Martin Nowak and others did great work on improving D's existing garbage collector. The other trend is that it became increasingly clear that a category of users will always be weary of a GC, be it for the right or wrong reasons. So the better place to hit is to offer a great experience in D without requiring any garbage collection at all.
2. Mobile is an important area for a language like D. We don't have many experts on team to work on that, but we're looking. One thing I can do soon is to encourage ARM support, which right now works only experimentally and in a science project kind of way.
3. I want to make it possible to use a well-defined subset of the standard library without a GC. (The subset part is for legacy compatibility.)
Do you vision D becoming a transpiler platform, similar to JavaScript land where languages target D source ?
x-lang => D => ldc => binary
That said, just as a related aside, there's the Daniel Murphy's magicport program that translates real projects from C++ do D semiautomatically (Daniel used it to translate the D compiler itself; we recently committed to bootstrapping).
On a serious note... what do you think you will miss the most about Facebook?
How about adding a byte buffer concept alongside with ranges? I'm thinking an API similar to Netty's ByteBuf but using D's compile-time capabilities instead. These would be valid ranges as well but offer direct byte access on top.
It would be great if the reflection info could be outputted to a separate file for those cases where its only needed during program initialization or used by external tools.
I want more than empty, front and popFront to manipulate byte buffers with high performance.
I'm thinking about reading data structures, performing bit conversion, and extracting primitive values from untyped byte arrays. Going as far as to reuse the array's memory for the values being read which isn't possible with ranges.
(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...)
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...
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.
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.
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.
http://dlang.org/interfaceToC.html
Can anyone comment further?
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.)
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.
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.for those now interested in the D language one must recommend Ali Çehreli's free book that now is also available as print:
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
"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...
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.
(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.)
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
Will the foundatiom be sponsoring development of plugins for popular ide's like atom, netbeans, intelij, eclipse etc.
Even if I just built something simple in both languages it would be a fun exercise.
"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?
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.
it makes me sad :(