3 ms·
Really? So you can completely control the layout of where items on the heap are allocated, get hold of pointer addresses, and store things within the least sign
by berkut 11y ago
Really? So you can completely control the layout of where items on the heap are allocated, get hold of pointer addresses, and store things within the least significant bits (for tagged pointers)?
- pjmlp 11y agoFor Ada, yes to all your points. For .NET, almost with a few additional tricks. - Value types - Struct layout attributes - Field offsets. - Arrays with value types - Unsafe - Interop with native buffers - Buffer manipulation with custom serialisers Your challenge can be fulfilled with getting a native buffer, with a custom serialiser and a few unsafe tricks. As a matter of fact, you just gave me a mini project idea. Lets see if I am up for the challenge or need to eat my own words. Meanwhile here is an example what C# devs are able to achieve, when they know how to explore the tooling properly. http://www.infoq.com/articles/Big-Memory-Part-2 http://www.infoq.com/articles/Big-Memory-Part-2 I am an old C++ dog since the C++ ARM days, meanwhile busy with other languages.