jorgecarleitao opened a new pull request #9495:
URL: https://github.com/apache/arrow/pull/9495


   The background and rational for this is described 
[here](https://github.com/jorgecarleitao/arrow2/tree/proposal); the idea is 
that this is groundwork to make our buffers typed, so that we can start 
introducing strong typing in the crate.
   
   This change is backward incompatible:
   
   1. Our allocator is now a generic over type `T: NativeType`, which implies 
that we can now allocate certain types.
   2. The allocator moved from `memory` to a new module `alloc` (inspired after 
`std::alloc`).
   
   Necessary steps to migrate existing code:
   
   1. `use arrow::memory` -> `use arrow::alloc`
   2. `memory::allocate_aligned(...)` -> `alloc::allocate_aligned::<u8>(...)`
   
   Note how `NativeType` contains `to_le_bytes`; we will use this method for 
IPC, where we need to serialize buffers with a specific endianess. This is 
ground work to enable two endianesses at the IPC boundary.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to