News for hackers. Stuff that matters.
Re:Building a bare-metal bootable game for Raspberry Pi in C# by pjmlp on Monday December 11, 2023 @08:53AM (#38600624)
Manually memory allocation has been there since the begining in interop APIs, and improved later on.

https://learn.microsoft.com/en-us/dotnet/api/system.runtime....

There is always C++ for those that don't want a tracing GC.

Re:Building a bare-metal bootable game for Raspberry Pi in C# by DeathArrow on Tuesday December 12, 2023 @07:06AM (#38611138)
>Manually memory allocation has been there since the begining in interop APIs, and improved later on.

I want to be able allocate/deallocate C# objects.

Re:Building a bare-metal bootable game for Raspberry Pi in C# by neonsunset on Tuesday December 12, 2023 @07:41AM (#38611417)
Why do you want that? This does not really win performance when you start to care about it yet imposes severe requirements on the programmer to ensure that manually deallocated object is not referenced anywhere.
Re:Building a bare-metal bootable game for Raspberry Pi in C# by pjmlp on Wednesday December 13, 2023 @02:47AM (#38623917)
Use structs for that.