Re:Porting 58000 lines of D and C++ to jai, Part 0: Why and How
by ibgeek on Wednesday November 23, 2022 @11:28PM
(#33727796)
Honest question: as a GC’d language, D seems to occupy the same niches as Go, JVM-based, and CLR-based languages rather than that of C++. Wouldn’t it be more accurate to compare to them than C/C++? Am I misunderstanding something?
[ Parent
| on HN ]
Re:Porting 58000 lines of D and C++ to jai, Part 0: Why and How
by WalterBright on Wednesday November 23, 2022 @11:34PM
(#33727839)
D isn't a GC based language. The GC can be used, or not used, as the user chooses. D supports many different programming paradigms.
Re:Porting 58000 lines of D and C++ to jai, Part 0: Why and How
by ibgeek on Thursday November 24, 2022 @12:04AM
(#33727962)
Ah! Okay, that’s what I was missing. I found the blog posts on using malloc and free from D. I knew the GC could be disabled, but I wasn’t aware of how practical it was to manually manage memory. Thanks!
Re:Porting 58000 lines of D and C++ to jai, Part 0: Why and How
by WalterBright on Thursday November 24, 2022 @01:04AM
(#33728209)
It's not necessary to disable it, just don't use it.