Re: [swift-corelibs-dev] Wrapping up Swift 3 for swift-corelibs

2016-08-09 Thread David P Grove via swift-corelibs-dev

Bug filed:  https://bugs.swift.org/browse/SR-2309

I've prototyped potential solution #2 this morning (embedding yet another
copy of the blocks runtime into libdispatch).I need to do a little
cleanup of the build plumbing, but it is workable.

I have time to work on it this week once there is a consensus on the
approach.

--dave




From:   Daniel Dunbar 
To: Chris Bailey 
Cc: David P Grove/Watson/IBM@IBMUS, "swift-corelibs-dev@swift.org"

Date:   08/03/2016 02:10 PM
Subject:Re: [swift-corelibs-dev] Wrapping up Swift 3 for swift-corelibs
Sent by:daniel_dun...@apple.com



Can someone file a bug to track how we are going to resolve this issue, and
outline our options? I want to make sure we have enough eyes on it to make
sure we get what we need for Swift 3.

 - Daniel

  On Aug 1, 2016, at 3:08 AM, Chris Bailey  wrote:

  I had a quick conversation with Daniel Dunbar on this. Adding -Xcc
  -fblocks as a default option to Swift PM (on Linux). The wrinkle is
  the availability of the blocks runtime - it would either need to
  become a pre-req for Swift, or needs one to be built into the
  package.

  Chris




  From:David P Grove via swift-corelibs-dev <
  swift-corelibs-dev@swift.org>
  To:Swift corelibs dev 
  Date:28/07/2016 18:50
  Subject:Re: [swift-corelibs-dev] Wrapping up Swift 3 for
  swift-corelibs
  Sent by:swift-corelibs-dev-boun...@swift.org



  Tony Parker wrote on 07/28/2016 01:41:55 PM:
  >
  > 1. Integrate swift-corelibs-dispatch into Foundation.

  Hi Tony,

  Hopefully this is on the task list already, but if it isn't we should
  add it before it gets to be too late to change the compiler...

  When compiling a Swift program on Linux that imports Dispatch (or
  Foundation once the integration is done), the user has to give the
  extra compilation flags -Xcc -fblocks to enable block support.

  We really need to land a change somewhere so that either (1) blocks
  support is always on for Linux or (2) importing Dispatch or
  Foundation automatically turns on blocks support.

  I have some time today and tomorrow that I could use to work on this
  if no one is handling it already, but I'm not sure how best to tackle
  the problem.  Suggestions?

  --dave
  ___
  swift-corelibs-dev mailing list
  swift-corelibs-dev@swift.org
  https://lists.swift.org/mailman/listinfo/swift-corelibs-dev




___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


Re: [swift-corelibs-dev] in-app purchase

2016-08-09 Thread Shawn Erickson via swift-corelibs-dev
This isn't likely a good list for this discussion maybe Swift users but
more likely the Apple developer forums would be better. You say your code
is fully of errors? Do you mean compile errors? If so if you post some
small code samples and errors we could possibly help.

-Shawn
On Mon, Aug 8, 2016 at 10:32 PM developer--- via swift-corelibs-dev <
swift-corelibs-dev@swift.org> wrote:

> PLATFORM AND VERSION
> iOS
> i am using a Macbook Pro running El Capitan (i ran the update today) with the 
> latest version of Xcode. i tried
> to test the practice app on my iPad  (i am updating it to iOS 9.3.2 right now)
>
> DESCRIPTION OF PROBLEM
> i am a student, i have taken all of my programming classes but the school's 
> agreement with Apple does not
> allow them to cover in-app purchases. i have followed the instructions from 
> the book "iOS 9 app development
> essentials" to create a practice app to code & test a built-in in app 
> purchase to unlock built in features. my
> purchaseViewController is FULL of errors.  i have no idea how to fix
> the errors. i have built an app that needs to include several in app 
> purchases, but i desperately need help with
> this and my instructor has never created an in app purchase so she doesn't 
> know how to help me. i would
> very much appreciate being able to send my test app to the support team so 
> that a technician could comment
> out the bad code, and add the correct code so that i can see where i went 
> wrong, and hopefully get instruction
> on how to create several in app purchases for the app i wish to get into the 
> app store.
>
>
> this is the response I got from Apple-
>
> Thank you for contacting Apple Developer Technical Support (DTS). Our
> engineers have reviewed your request and have concluded that there is no
> supported way to achieve the desired functionality given the currently
> shipping system configurations.
>
> If you would like for Apple to consider providing an iAP sample in Swift
> in the future, please submit an enhancement request via the Bug Reporter
> tool at .
>
> While a Technical Support Incident (TSI) was initially debited from your
> Apple Developer Program account for this request, we have assigned a
> replacement incident back to your account.
>
> Thank you for taking the time to file this report. We truly appreciate
> your help in discovering and isolating issues.
>
> Im posting this here because I wonder how many other people have
> experienced the same problem and how they’ve overcome it. I really feel
> ripped off. I chose to learn to develop for iOS for particular reasons, and
> now at the end of school, I’m about to graduate without having been taught
> an obviously vital skill that a developer should absolutely posses. I’ve
> looked for help in the developer forums to no avail…I’ve TRIED to make
> sense of what documentation I could find provided by Apple to no avail.  Ya
> see, my class had barely begun to touch Objective-C when Swift was
> officially released out of beta. The class immediately jumped to Swift. I
> have found a few online courses that say they teach what I need to know but
> I just don’t have confidence in these classes. Must I learn Objective-C to
> accomplish this?? Or does anyone here have any feasible solution to offer
> as advice?? If I had known that this precious skill would not be taught to
> me at this school, I would have sought alternatives. A rep at Apple told me
> that she knew of ONE school that was definitely teaching this material…of
> course it is out of my state and I cannot afford to go there, not even for
> 1 class to learn what I seek. I am in Texas.
> Thanks in advance for any help :)
>
>
>
> ___
> swift-corelibs-dev mailing list
> swift-corelibs-dev@swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
>
___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


Re: [swift-corelibs-dev] Query on init methods in Data.swift

2016-08-09 Thread Simon Evans via swift-corelibs-dev
Hi Tony,

Thats good to know, I have actually done a fix to convert them both to 
non-optional, I will create a PR once the jenkins CI is working again and my 
PR#501 is merged.

Simon


> On 8 Aug 2016, at 18:05, Tony Parker  wrote:
> 
> Hi Simon,
> 
> The correct one is the non-optional version. We changed it after some 
> discussion about if it made sense for Data to attempt to return nil here, 
> when there are so many ways for memory allocation to fail without returning 
> an optional.
> 
> We’re working on updating the swift-corelibs-foundation API to match the 
> overlay over the next few weeks.
> 
> - Tony
> 
>> On Aug 2, 2016, at 9:27 AM, Simon Evans via swift-corelibs-dev 
>>  wrote:
>> 
>> Hi
>> 
>> I was looking at Data.swift and noticed that 2 of the init methods
>> were different in corelibs-foundation v swift stdlib
>> 
>> https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/Data.swift
>>  has
>> 
>> public init?(capacity: Int)
>> public init?(count: Int)
>> 
>> https://github.com/apple/swift/blob/master/stdlib/public/SDK/Foundation/Data.swift
>>  has
>> 
>> public init(capacity: Int)
>> public init(count: Int)
>> 
>> 
>> Which are the correct method signatures? I was just doing a PR to fix
>> init?(count:) not zeroing the data and I wanted to make sure I had this
>> correct as well
>> 
>> Thanks
>> Simon
>> ___
>> swift-corelibs-dev mailing list
>> swift-corelibs-dev@swift.org
>> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
> 

___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev