On 10/19/24 5:27 PM, Hairy Pixels via fpc-pascal wrote:
On Oct 19, 2024 at 9:15:10 PM, Rainer Stratmann via fpc-pascal
<fpc-pascal@lists.freepascal.org> wrote:
I really can not see where beginners have to struggle with memory
management.
If a project gets bigger you have to think about it, yes. It depends
on the
coding style. In my project I wrote my own memory management for the
webserver. It took me 3 weeks of work.
I didn’t mean to get into a big flame war over this and debate the
merits of both I’m just telling you what I see in the industry and
trends in programming. This isn’t the only thing either just one of
the larger ones.
Counterexample 1: The growth of Rust.
Counterexample 2: Pascal is also growing.
Counterexample 3: The amount of C and C++ code your computer is running.
GC is only used as the top "scripting" layer, everything else is C++.
Every pixel that you see on your screen, every animation, all of this is
done by C or C++ code. Rewriting all of this in a GC'd "memory safe"
language will result in your computer becoming slow as a snail. Moore's
law has been dead for some time, so this situation is here to stay.
If you really want to know then FPC should conduct a survey and see
what users say. Ask existing users and try to reach out to other
programmers too.
I could easily predict that the majority of FPC users don't have a
problem with manual memory management.
Nikolay
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal