8 ms·
I wish I had known about D 10 years ago. It's everything I ever wanted out of an LLVM language, but I feel like it's dying and the package ecosystem is tiny, wh
by sam0x17 7y ago
I wish I had known about D 10 years ago. It's everything I ever wanted out of an LLVM language, but I feel like it's dying and the package ecosystem is tiny, which is crazy with how old it is. What they need is some new web design and docs and exciting stuff to make it feel like a new language so people recognize how truly awesome it is :/
- vmchale 7y agoPlus affine types have gone mainstream. Good stuff, but I'd like memory safety!
- WalterBright 7y agoAn ownership/borrowing system memory safety is in the works for D. There's a prototype of it as a Pull Request: https://github.com/dlang/dmd/pull/10586 https://github.com/dlang/dmd/pull/10586
- sesuximo 7y agothat is really exciting!
- WalterBright 7y agoIndubitably!
- vmchale 7y agoThanks!
- theredbox 7y agoWhat is the type of apps that one should use D for ? I think this is one of the main issues with languages that did not gain traction and that is they are too generic and try to be too many things to too many people. If i exclude the financial backing i think languages that tried to tackle one specific thing did rather well. Rust came to be to address the issue with security and there is not really an alternative. Yes people use it for cli tools or backend services but that’s just because they are riding the hype train. The same with Go. On the other hand we have things like Dart which did not really try to solve an issue people felt they have. The same with Crystal. Nobody really needed faster Ruby that much and if they did they already needed a production ready solution which was just too hard to deliver. A language like Nim reminds me of D. Its author is also a brilliant Phd CS person but I feel like he does not really have a problem to solve. It’s all just an intellectual challenge. Companies like Status.im ( backer of Nim ) have a problem that they are trying to solve by using Nim. Making the right and the perfect solutions is hard but this evolutionary approach is really harming the expansion of the ecosystem. Nim has just too many features and too many approaches to memory management (recent gc:arc release). But it is all too half baked and does not support the features Nim advertises that it has. This is basically the same issue i have with D. I have no idea what I would use D for. And could i rely on D in the domain i pick it for ? Eg the same field where Go excels.
- vmchale 7y ago> Rust came to be to address the issue with security and there is not really an alternative. Yes people use it for cli tools or backend services but that’s just because they are riding the hype train. I like Rust for CLI tools because it takes some nice ML features and it handles strings sensibly.
- jane_red 7y agoLast time I tried to install a Rust-based cli network tool it took literally 4 min to compile it! Seriously, 4 minutes for something that monitors your network load. If this is what it takes to make a cli tool, I'd rather do it in plain BASH :)
- deleted 7y ago[deleted]
- vips7L 7y agoStrings in Rust are the first time I ever got confused about what a String was. It might be sensible, but it's not easy.
- pjmlp 7y agoYou could do the same with OCaml.
- WalterBright 7y ago> Rust came to be to address the issue with security and there is not really an alternative. That will change in the coming months. > I have no idea what I would use D for. And could i rely on D in the domain i pick it for ? D is a general programming language. You can use it for scripts, number crunching, UI, and everything in between. It's been around a long time, and is part of the gcc collection.
- vmchale 7y agoI think the gcc backend is quite attractive! rustc still has some cases it doesn't catch the optimizations gcc does.
- destructionator 7y agoD makes most memory safety bugs disappear through its runtime bounds checking and garbage collection, both proven solutions in a variety of languages. Yes, Walter is working on more compile time stuff too, but the existing runtime checks really do excellent work and shouldn't be overlooked.
- Neku42 7y agoI found D 10 years before and it had the same stale feeling it seems to irradiating today and this is turning people away The truth is it was good enough for most uses already but people waited out for someone to step up and make things better before they felt it would be worth trying D D really shines if you do greenfield projects where you have the luxury to reinvent some wheels. Its surprisingly pleasant to see a lot of boilerplate one might expect to accumulate to just not be there because it’s either generated or is just not necessary because the language is flexible enough
- bachmeier 7y ago> I feel like it's dying I can't control how someone else feels, but I can tell you your feeling is very wrong. Just a few of the things people are being paid to work on right now: Android support Webassembly Symmetry Autumn of Code projects There will also be paid work on iOS once they find someone that can do the job (if they haven't already). And yet another annual DConf will be taking place in London in June. These are just a few of the examples where folks are putting real money into the D ecosystem. The language continues to evolve (for example, moving to safe by default). This is by far the most active D has been in the seven years I've been using it.
- earenndil 7y ago> There will also be paid work on iOS once they find someone that can do the job AFAIK adam is going to work on it, once he finishes up with the android stuff.
- deleted 7y ago[deleted]
- emilper 7y agothe package ecosystem was like 10 times bigger in 2019 than it was in 2015 when I had my first look at D