[swift-users] New Swift Snapshots Available!

2016-08-15 Thread mishal_shah via swift-users
New Swift Snapshots Available! Download new packages from https://swift.org/download/ Swift Development: (master) Following repository are tagged with swift-DEVELOPMENT-SNAPSHOT-2016-08-15-a https://github.com/apple/swift

Re: [swift-users] changes to pointer data types in Xcode 8 beta 6

2016-08-15 Thread Zach Waldowski via swift-users
Nerd here! That part of the code ends up not needing to go through the UnsafeRawPointer API, as it's processing UTF-8 bytes, see also: . That being said, good resources for reading about the new pointer system are: - [SE-0107]:

Re: [swift-users] Swift in bare-metal embedded programming/Swift runtime

2016-08-15 Thread David Sweeris via swift-users
I don't know what you mean by "naked function", but you'd request it by starting a thread on swift evolution (which I would encourage you to do). - Dave Sweeris > On Aug 15, 2016, at 17:36, Rick Mann wrote: > > Well, even C++ requires some amount of run time. On a larger MCU, the runtime > sh

Re: [swift-users] Swift in bare-metal embedded programming/Swift runtime

2016-08-15 Thread Rick Mann via swift-users
Well, even C++ requires some amount of run time. On a larger MCU, the runtime shouldn't be a problem at all. What I want to do is minimize the amount of OS I have to implement. For example, using newlib (https://sourceware.org/newlib/), I can stub out 20-odd functions, and everything gets static

[swift-users] changes to pointer data types in Xcode 8 beta 6

2016-08-15 Thread Dave Reed via swift-users
I'm trying to convert the following code (from the Big Nerd Ranch's Freddy JSON parser) that works in Xcode 8 beta 5 and convert it to work with beta 6. Essentially it appears it needs to take a Data object and convert it to a UnsafeBufferPointer if I understand it correctly. /// Creates a