Re: Fwd: What to do to get new users
Hairy Pixels via fpc-pascal <[email protected]>
| Newsgroups | gmane.comp.compilers.free-pascal.general |
|---|---|
| Message-ID | <CAGsUGt=v3+3ykbZWkCJPsKJBfjCDOTiQLdfQoJE5eEYO_zhSpw@mail.gmail.com> |
On Oct 19, 2024 at 7:37:15 PM, Martin Frb via fpc-pascal < [email protected]> wrote: > Because if the latter, well I know some people who would shot the person > introducing that in a high performance software... > yes it’s bad except for UI apps which is what FPC and new users seem to be focusing on. FPC has it already on some types which are widely used. > Actually, if we are talking safety (rather than comfort for the > developer) then we may not need ARC at all. Because freeing memory is > not the only (nor biggest?) worry. Running out of mem (and handling it > gracefully, and without vulnerability) is important too. But ARC > doesn't solve that. > One way to solve that is pre-allocate any mem that may be needed, and > then never free or alloc any mem thereafter. And then you need no ARC at > all. > FPC sadly has no concept of custom allocators for classes, just something you can add to the type itself but that’s very limited. I really like how Jai and Odin have added allocators in as a core part of the language and library. Zig does something like this too but it’s much more clumsy and tedious. Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal