Plan for D

Paulo Pinto pjmlp at progtools.org
Sun May 16 07:18:54 UTC 2021


On Sunday, 16 May 2021 at 06:44:09 UTC, Ola Fosheim Grostad wrote:
> On Sunday, 16 May 2021 at 05:50:12 UTC, Mike Parker wrote:
>> Yeah, and...? dmd a very short-running program, and its 
>> allocated memory is released when it exits.
>
> No, it isnt very short-running. And that is not a valid 
> argument either, as the user may have other tasks that need the 
> memory.
>
> To keep it short:
>
> Programs that acquire significantly more resources than needed 
> are misbehaving. Never met anyone disagreeing with this view.
>
> Memory management is insignificant time wise if you have a 
> solution suitable for systemsprogramming.
>
> If D does not have a memory management solution suitable for 
> DMD, then D does not have a solution for systems level 
> programming, yet...
>
> If this is difficult to accept, then there is no hope of 
> improvements.
>
>> The GC is not a panacea. It's not suitable for every use case 
>> or performance goal. And that's perfectly fine.
>
> If GC is suitable for anything system level, it would be a 
> batch program like a compiler.

This is the big difference I see here, everyone keeps discussing 
how much GC matters, while other language communities, regardless 
of what others think just keep doing their stuff.

https://www.f-secure.com/en/consulting/foundry/usb-armory

https://tinygo.org/

https://makecode.com/language

https://www.microej.com/

https://www.wildernesslabs.co/

Now you can argue that Go, Python, JavaScript, Java, .NET aren't 
suitable for systems programming, that people are doing a big 
mistake adopting them, that they are just subsets of the actual 
languages, pick your argument against them.

However at the end of the day hardware is being sold, and 
developers are making money with such products, regardless of 
their suitability for systems programming or whatever else.

Meanwhile over here, yet another GC discussion round starts, or 
what features to implement that should be the next great thing, 
and then one wonders why adoption isn't working out.


More information about the Digitalmars-d mailing list