Re: [swift-users] Building Swift 3 under ArchLinux

2016-07-16 Thread Andrés Botero via swift-users
Hello. I've never tried building from the Swift repository, and I think you don't need to do it either. What I do is just installing from the AUR, if you install the 'swift' package it will compile the last release for you, if you install 'swift-bin' it will repackage the ubuntu binary for arch. If

[swift-users] Building Swift 3 under ArchLinux

2016-07-16 Thread Farhan Ahmed via swift-users
Hi, I am hoping someone would be able to help with the following problem: I am trying to build Swift 3 under ArchLinux. I have followed the build instructions and everything has been cloned and kick off the build by typing: ./swift/utils/build-script -R After a long while the build errors out

Re: [swift-users] simple i/o on linux with open source swift

2016-07-16 Thread Jacob Bandes-Storch via swift-users
If I've surmised correctly from other messages on this thread, you should be able to `import Glibc` and then you can use most of what's in the C standard library (since Swift interoperates directly with C). The module map which enables you to import Glibc is: https://github.com/apple/swift/blob/mas

[swift-users] simple i/o on linux with open source swift

2016-07-16 Thread K Richard Pixley via swift-users
I'm a new swift person, /long/ time unix/linux developer, mac user but only mac developer inasmuch as mac is unix. I've installed swift on my ubuntu box, written hello world, etc. Now... to write much of anything else, I need a way to open/read/write/close a file. I don't see anything like that

Re: [swift-users] NSData and UnsafePointer

2016-07-16 Thread Dmitri Gribenko via swift-users
On Sat, Jul 16, 2016 at 1:16 PM, Andrew Trick via swift-users wrote: > >> On Jul 16, 2016, at 5:28 AM, J.E. Schotsman via swift-users >> wrote: >> >> A mysterious bug has got me thinking about using UnsafePointer with >> NSData (Swift 2). >> >> Is this safe: >> >> let data:NSData = … >> let dat

Re: [swift-users] NSData and UnsafePointer

2016-07-16 Thread Andrew Trick via swift-users
> On Jul 16, 2016, at 5:28 AM, J.E. Schotsman via swift-users > wrote: > > A mysterious bug has got me thinking about using UnsafePointer with > NSData (Swift 2). > > Is this safe: > > let data:NSData = … > let dataStart = UnsafePointer(data:NSDAta.bytes) > > myProcessdata1(dataStart,data.l

[swift-users] NSData and UnsafePointer

2016-07-16 Thread J.E. Schotsman via swift-users
A mysterious bug has got me thinking about using UnsafePointer with NSData (Swift 2). Is this safe: let data:NSData = … let dataStart = UnsafePointer(data:NSDAta.bytes) myProcessdata1(dataStart,data.length) … (no more references to data) And this: let data:NSData = … myProcessdata2(data) …