7 ms·
D now has an Ownership/Borrowing system implemented (though it is in its early stages). It will work with existing code, including DasBetterC code. You're able
by WalterBright 7y ago
D now has an Ownership/Borrowing system implemented (though it is in its early stages). It will work with existing code, including DasBetterC code. You're able to incrementally adapt a program to O/B rather than rewrite it.
- kick 7y agoWas this a response to something else in this thread that you accidentally top-posted? It's cool, technically, but maybe a little off-topic.
- seabrookmx 7y agoI think it's just a shameless plug from the creator of D :)
- WalterBright 7y agoRust has shown that an O/B system is viable, and now D shows that an O/B system can work with C-like syntax.
- kick 7y agoWhat's your opinion on it? Good idea? Bad idea?
- WalterBright 7y agoOn an O/B system? I think it's a good idea, otherwise I would not have implemented it.
- jacquesm 7y agoThis is a 'mindshare' game. D had its chance, now Rust has its chance. Would have been cool though if D had caught on more back in the day. Re-invention seems to be impossible to avoid in the software world.
- BubRoss 7y agoIf rust still has people talking about missing C++ for faster compile times I don't think anything has solidified yet.
- jacquesm 7y agoIt hasn't solidified for the same reason that C++ in many ways still hasn't solidified. Software is a very young industry by many standards and we still haven't found the best way to make it. Rust is one way to do it, but there are many others besides, in the end which tool wins out is less important than that we make some progress and get out of the tar-pit that we've been stuck in for the last two decades. All we seem to be doing is make more layers of gray goo and leaky abstractions that we then plumb together to attempt to make reliable systems. It still doesn't feel right to me.
- softwarejosh 7y agoidk man, people can dish out complicated, hard tested, reliable systems in a really short time. most aspects of most languages have been severely altered and improved...
- simonh 7y agoSure, we’ve made huge progress, and are still making huge progress, but it’s just not enough.
- jacquesm 7y ago> idk man, people can dish out complicated, hard tested, reliable systems in a really short time You must be living in some alternative universe. What I typically come across, even in fairly young companies, is tech debt ridden, buggy, endless cakes of layer upon layer of mostly cruft with a spiffy looking front thrown over the whole. Pretty icing on a crappy cake. As soon as you lift that top layer the illusion crumbles. I'd be happy to bet that most companies that run services out there would not survive a hostile audit of their code and systems.
- dpc_pw 7y agoThat's great to know. I'll to check it out. D is a great language and it's good to see it's getting even better.
- marta_morena_23 7y agoD has failed long ago. It tried to be like C and in doing so essentially became another C++ over time. Nobody is going to invest into D and that is proven by adoption. The benefit is just too small... Rust does the right thing. It keeps C ABI compatibility but utterly throws everything else out of the window and starts fresh. If you have the need for Rust, go for it. Otherwise stick with C++. Simple as that. D has no place in this discussion.
- glouwbug 7y agoYou do understand that you're replying to the founder of D, right? Walter put his whole life into D. Can we please show a little compassion for someone's life's work?
- optimaton 7y agoI don’t think they do. The response clearly is reasonable, but no reasonable person would say that on someone’s face. So I don’t think Marta _moreno really knew about Walter
- WalterBright 7y ago> Walter put his whole life into D. Can we please show a little compassion for someone's life's work? While I appreciate the kind words, I am not looking for compassion. D must stand entirely on its own merits. D has already succeeded quite spectacularly: 1. we have a wonderful D community which has been utterly indispensible 2. D is part of the Gnu Compiler Collection 3. D has been accepted into the HOPL conference, which is quite an honor A couple things we are particularly proud of: 4. D has been used by companies to make a LOT of money. They've told me that D is their secret weapon. :-) 5. contributing to the D community has enabled many people to advance into well paying and high status careers 6. D innovations regularly find their way into other languages
- glouwbug 7y agoGodspeed, Walter. Been a fan since 2010 as I also come from a mechanical engineering background while being fascinated by programming. TDPL sits next to KNR on my shelf
- animalnewbie 7y agoThank you for responding. There's always a room for an awesome programming language. I've never used D but as a professional c++ programmer, I admire what you set out to do. (Assuming you are the creator....) Please ignore the naysayers. HN is diverse in degree and area of knowledge and some people even think electron is the only cross platform gui framework.
- WalterBright 7y agoOh, I've always had plenty naysayers. If I ever paid any attention to them, I'd be a total failure.
- zerr 7y agoI think D didn't gain the momentum because of GC. O/B system is interesting but makes the syntax ugly (at least in Rust's case). Had D gone with a (deterministic) ref counting like Swift and Vala, it would've been much more popular I think. Such memory management keeps the syntax cute :) while not sacrificing the determinism.
- WalterBright 7y agoWe looked hard at an automatic ref counting system. We could not find a way to make it 100% memory safe while allowing pointer access for efficiency. An O/B system makes this workable. D doesn't change the syntax for O/B.
- z0ltan 7y agoI really like the D community and the language itself. However, I cannot but feel a slight disappointment after Andrei had thoroughly dissed Rust's model, and had promised to have a novel approach to memory management that would also get rid of the garbage collector (a year back? Two years back?), and now we have D following Rust's model. Maybe that's why we should be careful what we say in public. I have all the respect in the world for Walter and the Dlang community in general, and wish the very best for D!
- Aardappel 7y agoWalter, have you seen http://aardappel.github.io/lobster/memory_management.html http://aardappel.github.io/lobster/memory_management.html ? If you looked at refcounting, this may be a way to make that compile time.