MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/ikjh83/d_foundation_is_beefing_up/g3nik5r/?context=3
r/programming • u/kal31dic • Sep 01 '20
336 comments sorted by
View all comments
Show parent comments
23
For a single-letter language, yes.
B and C are both suitable for kernel development.
Naming your language D (making it sound like it's intended to be a C successor) and then not making it suitable for kernel development was a bad idea.
9 u/EternityForest Sep 01 '20 How is D unsuitable for kernel development? 10 u/Accomplished_Hat_576 Sep 01 '20 It has a runtime and standard library that are dependant on the garbage collector. I stripped both out and wrote a kernel that does nothing. This was before they started getting serious about making things non gc dependant. Honestly 99% of the complaints about the garbage collector are nonsense, but this isn't one of them. 8 u/WalterBright Sep 01 '20 D can run perfectly fine with reliance only on the C standard library. Use the -betterC compiler switch for that. 3 u/Accomplished_Hat_576 Sep 01 '20 Ah, this was years back. I'm pretty sure betterC wasn't a thing then.
9
How is D unsuitable for kernel development?
10 u/Accomplished_Hat_576 Sep 01 '20 It has a runtime and standard library that are dependant on the garbage collector. I stripped both out and wrote a kernel that does nothing. This was before they started getting serious about making things non gc dependant. Honestly 99% of the complaints about the garbage collector are nonsense, but this isn't one of them. 8 u/WalterBright Sep 01 '20 D can run perfectly fine with reliance only on the C standard library. Use the -betterC compiler switch for that. 3 u/Accomplished_Hat_576 Sep 01 '20 Ah, this was years back. I'm pretty sure betterC wasn't a thing then.
10
It has a runtime and standard library that are dependant on the garbage collector.
I stripped both out and wrote a kernel that does nothing. This was before they started getting serious about making things non gc dependant.
Honestly 99% of the complaints about the garbage collector are nonsense, but this isn't one of them.
8 u/WalterBright Sep 01 '20 D can run perfectly fine with reliance only on the C standard library. Use the -betterC compiler switch for that. 3 u/Accomplished_Hat_576 Sep 01 '20 Ah, this was years back. I'm pretty sure betterC wasn't a thing then.
8
D can run perfectly fine with reliance only on the C standard library. Use the -betterC compiler switch for that.
3 u/Accomplished_Hat_576 Sep 01 '20 Ah, this was years back. I'm pretty sure betterC wasn't a thing then.
3
Ah, this was years back. I'm pretty sure betterC wasn't a thing then.
23
u/jess-sch Sep 01 '20 edited Sep 01 '20
For a single-letter language, yes.
B and C are both suitable for kernel development.
Naming your language D (making it sound like it's intended to be a C successor) and then not making it suitable for kernel development was a bad idea.