News for hackers. Stuff that matters.
Re:Apple is looking for engineers to convert its code from C... by WalterBright on Friday March 20, 2020 @08:13PM (#22643072)
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.
Re:Apple is looking for engineers to convert its code from C... by kick on Friday March 20, 2020 @08:27PM (#22643131)
Was this a response to something else in this thread that you accidentally top-posted?

It's cool, technically, but maybe a little off-topic.

Re:Apple is looking for engineers to convert its code from C... by seabrookmx on Friday March 20, 2020 @09:04PM (#22643344)
I think it's just a shameless plug from the creator of D :)
Re:Apple is looking for engineers to convert its code from C... by WalterBright on Friday March 20, 2020 @09:40PM (#22643507)
Rust has shown that an O/B system is viable, and now D shows that an O/B system can work with C-like syntax.
Re:Apple is looking for engineers to convert its code from C... by kick on Friday March 20, 2020 @10:46PM (#22643862)
What's your opinion on it? Good idea? Bad idea?
Re:Apple is looking for engineers to convert its code from C... by WalterBright on Friday March 20, 2020 @11:02PM (#22643991)
On an O/B system? I think it's a good idea, otherwise I would not have implemented it.
Re:Apple is looking for engineers to convert its code from C... by jacquesm on Friday March 20, 2020 @08:31PM (#22643166)
This 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.
Re:Apple is looking for engineers to convert its code from C... by z3phyr on Saturday March 21, 2020 @12:55AM (#22644568)
> D had its chance

What is stopping people to download a D compiler and write software in it right now?

Re:Apple is looking for engineers to convert its code from C... by simonh on Saturday March 21, 2020 @01:15AM (#22644652)
Nothing. The problem is, by and large they don’t. D is a fantastic project and an important step forward, but Rust has won the mind share game.

https://insights.stackoverflow.com/survey/2019

Re:Apple is looking for engineers to convert its code from C... by rs23296008n1 on Saturday March 21, 2020 @02:26AM (#22644939)
For me, a mild addiction to learning nim/wren and porting code to them. D and Rust can wait a little longer.

People forget that there's a big world out there. We're all doing our thing.

Re:Apple is looking for engineers to convert its code from C... by BubRoss on Friday March 20, 2020 @09:13PM (#22643399)
If rust still has people talking about missing C++ for faster compile times I don't think anything has solidified yet.
Re:Apple is looking for engineers to convert its code from C... by jacquesm on Friday March 20, 2020 @09:36PM (#22643488)
It 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.

Re:Apple is looking for engineers to convert its code from C... by softwarejosh on Friday March 20, 2020 @11:45PM (#22644226)
idk 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...
Re:Apple is looking for engineers to convert its code from C... by jacquesm on Saturday March 21, 2020 @10:06AM (#22646555)
> 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.

Re:Apple is looking for engineers to convert its code from C... by simonh on Saturday March 21, 2020 @01:18AM (#22644669)
Sure, we’ve made huge progress, and are still making huge progress, but it’s just not enough.
Re:Apple is looking for engineers to convert its code from C... by boulos on Friday March 20, 2020 @09:24PM (#22643444)
For those not aware, Walter is the creator of D. I feel like this almost constitutes shitting on someone's Show HN post.
Re:Apple is looking for engineers to convert its code from C... by jacquesm on Friday March 20, 2020 @09:31PM (#22643472)
It definitely isn't, but if you feel like going for the most uncharitable reading possible be my guest. I respect Walter a lot more than you probably realize.
Re:Apple is looking for engineers to convert its code from C... by boulos on Friday March 20, 2020 @09:49PM (#22643548)
Hmm. Did you edit / adjust the "D had its chance" statement? I thought that ended with a period. If not, apologies. But it did come across as harsh :).
Re:Apple is looking for engineers to convert its code from C... by jacquesm on Friday March 20, 2020 @10:18PM (#22643664)
No, I did not.
[dead]
Re:Apple is looking for engineers to convert its code from C... by blahlalala on Saturday March 21, 2020 @02:32AM (#22644964)
A quick google search shows D is written with the boost license? Looks to be pretty free to me and wikipedia says the boost license co stitutes as free and open source, just not copyleft.

Considering copyleft is arguably more restrictive than not, it seems incredibly unfair, and untrue, to say it's monetized.

Whether it was previously seems irrelevant now.

Re:Apple is looking for engineers to convert its code from C... by WalterBright on Friday March 20, 2020 @11:01PM (#22643985)
D has never had a price tag on it.
Re:Apple is looking for engineers to convert its code from C... by glouwbug on Saturday March 21, 2020 @02:18AM (#22644916)
I am sensing a lot of hostility in this thread and Walter Bright, the founder of D, is replying to direct accusations in this thread.

Mods?

What's going on HN?

Re:Apple is looking for engineers to convert its code from C... by jacquesm on Saturday March 21, 2020 @09:04AM (#22646227)
Novelty accounts making idiot accusations is nothing new here, unfortunately.
Re:Apple is looking for engineers to convert its code from C... by jasonzemos on Saturday March 21, 2020 @03:17AM (#22645132)
Rust only proves that promotion buys mindshare. Since money buys promotion, and because of endless unscrupulous capital investment to two of Rust's most evangelical promoters: Mozilla and Cloudflare; Rust indeed has its chance. Make no mistake that is all there is to this.

Fifteen years ago Apple underwent a similar endeavor to convert all of its C++ code to Objective-C or even C. Apple isn't a leader in this decision-space; they're just a victim of this meme.

Re:Apple is looking for engineers to convert its code from C... by animalnewbie on Saturday March 21, 2020 @03:15AM (#22645128)
Thank 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.

Re:Apple is looking for engineers to convert its code from C... by WalterBright on Saturday March 21, 2020 @03:24AM (#22645157)
Oh, I've always had plenty naysayers. If I ever paid any attention to them, I'd be a total failure.
Re:Apple is looking for engineers to convert its code from C... by zerr on Saturday March 21, 2020 @07:45AM (#22645890)
I 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.

Re:Apple is looking for engineers to convert its code from C... by WalterBright on Saturday March 21, 2020 @03:11PM (#22649064)
We 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.

Re:Apple is looking for engineers to convert its code from C... by dpc_pw on Friday March 20, 2020 @10:52PM (#22643905)
That'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.
Re:Apple is looking for engineers to convert its code from C... by Aardappel on Saturday March 21, 2020 @04:58PM (#22650025)
Walter, have you seen http://aardappel.github.io/lobster/memory_management.html ? If you looked at refcounting, this may be a way to make that compile time.
[dead]
Re:Apple is looking for engineers to convert its code from C... by glouwbug on Saturday March 21, 2020 @02:13AM (#22644898)
You 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?
Re:Apple is looking for engineers to convert its code from C... by WalterBright on Saturday March 21, 2020 @03:20AM (#22645146)
> 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

Re:Apple is looking for engineers to convert its code from C... by glouwbug on Saturday March 21, 2020 @11:34AM (#22647230)
Godspeed, 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

Re:Apple is looking for engineers to convert its code from C... by optimaton on Saturday March 21, 2020 @02:20AM (#22644919)
I 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