Re: [swift-evolution] [Pitch] deprecating ManagedBufferPointer

2016-10-22 Thread Colin Barrett via swift-evolution
May be totally wrong about this but I always thought that ManagedBuffer(Pointer) would be really useful in conjunction w/ Metal. In particular, MTLBuffer gives you a region of memory that is in common configurations shared btwn the CPU and GPU. I believe the idea is you write your vertex data

Re: [swift-evolution] [Pitch] deprecating ManagedBufferPointer

2016-10-19 Thread Erik Eckstein via swift-evolution
> On Oct 19, 2016, at 3:28 PM, Alexis wrote: > > A bit late to this game, because I didn’t fully understand the “point” of > ManagedBuffer(Pointer). After a good week of messing around with these in > Dictionary/Array/String, I now have Opinions. > > I agree

Re: [swift-evolution] [Pitch] deprecating ManagedBufferPointer

2016-10-19 Thread Alexis via swift-evolution
A bit late to this game, because I didn’t fully understand the “point” of ManagedBuffer(Pointer). After a good week of messing around with these in Dictionary/Array/String, I now have Opinions. I agree ManagedBufferPointer is largely unnecessary. However it’s seeming a lot like ManagedBuffer

Re: [swift-evolution] [Pitch] deprecating ManagedBufferPointer

2016-10-13 Thread Erik Eckstein via swift-evolution
I created a proposal: https://github.com/apple/swift-evolution/pull/545 > On Oct 11, 2016, at 11:32 PM, Dave Abrahams via swift-evolution > wrote: > > > on Tue Oct 11 2016, Károly Lőrentey

Re: [swift-evolution] [Pitch] deprecating ManagedBufferPointer

2016-10-12 Thread Dave Abrahams via swift-evolution
on Tue Oct 11 2016, Károly Lőrentey wrote: > +1 > > ManagedBuffer has been really useful a couple of times, but I never > found a use for ManagedBufferPointer. I can’t even say I’m entirely > sure what need it was originally designed to fulfill. The real need is/was

Re: [swift-evolution] [Pitch] deprecating ManagedBufferPointer

2016-10-11 Thread Károly Lőrentey via swift-evolution
+1 ManagedBuffer has been really useful a couple of times, but I never found a use for ManagedBufferPointer. I can’t even say I’m entirely sure what need it was originally designed to fulfill. > On 2016-10-11, at 00:12, Erik Eckstein via swift-evolution > wrote: >

Re: [swift-evolution] [Pitch] deprecating ManagedBufferPointer

2016-10-11 Thread Robert Widmann via swift-evolution
+1. I haven’t found use for it, and I don’t think there is one outside of stdlib. ~Robert Widmann > On Oct 10, 2016, at 6:12 PM, Erik Eckstein via swift-evolution > wrote: > > The purpose of ManagedBufferPointer is to create a buffer with a custom >

[swift-evolution] [Pitch] deprecating ManagedBufferPointer

2016-10-10 Thread Erik Eckstein via swift-evolution
The purpose of ManagedBufferPointer is to create a buffer with a custom class-metadata to be able to implement a custom deinit (e.g. to destroy the tail allocated elements). It was used in Array (before I replaced it with the new tail-allocated-array-built-ins). But now it’s not used anymore in