abandy commented on issue #154:
URL: https://github.com/apache/arrow-swift/issues/154#issuecomment-4187798969

   Hi @kou and @willtemperley, I hope all is well.  I disagree with the 
statement "Buffers can be of a single type".  A buffer points to a location in 
memory that can contain any data. So the data it stores can be heterogeneous. 
   
   Once data is loaded into an ArrowArray then that array can be shared by 
Tables and RecordBatches and hence is Zero-Copy.  The data within a buffer is 
immutable and views could be added to filter this data without a rewrite.  The 
ArrowBuffer init method takes in an UnsafeMutableRawPointer and this pointer 
can point to an existing source in memory and that is why IPC (C import/export) 
works.
   
   There have been many changes in Swift since the inception of this library 
(pre Swift 5) so updating with current concepts definitely makes sense.  If we 
are going to make an API breaking change then maybe we should meet and discuss 
to go over the changes? That way we can discuss the different approaches based 
on Swift language changes to ensure we get to a stable API.


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to