Re: [swift-corelibs-dev] Git history

2015-12-17 Thread Tony Parker via swift-corelibs-dev
Hi Tom, I’ve actually been thinking about this a lot over the past few days, but haven’t come to any real conclusion yet. The way I’ve traditionally worked on Foundation is that each commit has more content, and each commit is (almost) always associated with a bug. This is basically the

[swift-corelibs-dev] Starter bug: Run Foundation tests against OS X Foundation

2015-12-17 Thread Tony Parker via swift-corelibs-dev
Hi everyone, I filed a bug here that would be a great way for someone to jump into contributing to swift-corelibs-foundation: SR-276 The basic idea is that we could really use a way to run our Swift test suite against the system (OS X) Foundation. This

[swift-corelibs-dev] Upcoming holiday schedule

2015-12-17 Thread Tony Parker via swift-corelibs-dev
Hello fellow contributors, As you are aware, we are fast approaching the year-end holiday season. Here at Apple, many of us are taking some time off starting next week through the new year. As a result, it is likely that some pull requests will take more time than expected to review and merge.

Re: [swift-corelibs-dev] libdispatch epoll port

2015-12-17 Thread Tony Parker via swift-corelibs-dev
Hi Dzianis, > On Dec 17, 2015, at 12:36 PM, Dzianis Fedarenka via swift-corelibs-dev > wrote: > >>> On Dec 10, 2015, at 12:42 AM, Joakim Hassila via swift-corelibs-dev >>> wrote: >>> >>> Hi, >>> On 8 dec. 2015, at 16:56, Pierre Habouzit wrote:

Re: [swift-corelibs-dev] NSDate Comparable & Equatable

2015-12-11 Thread Tony Parker via swift-corelibs-dev
Hi James, Here’s the start of the thread in the archives: https://lists.swift.org/pipermail/swift-corelibs-dev/Week-of-Mon-20151130/77.html - Tony > On Dec 11, 2015, at 11:46 AM, James Lee via swift-corelibs-dev > wrote: > > Hi all, > > I raised PR 119

Re: [swift-corelibs-dev] NSDate, NSDateFormatter

2015-12-11 Thread Tony Parker via swift-corelibs-dev
Hi Joe, Sure, bug reports are appreciated. If you have the ability to check out the whole stack and try ToT, that would be great too. We are moving extremely rapidly right now on implementing missing pieces of Foundation. - Tony > On Dec 11, 2015, at 10:53 AM, Joseph Bell

Re: [swift-corelibs-dev] Inconsistencies between Foundation APIs

2016-01-04 Thread Tony Parker via swift-corelibs-dev
Hi Ian, Any place where the API differs should be marked with a comment like this: /// - Experiment: This is a draft API currently under consideration for official import into Foundation If not, then we found some place that we either need to change or propose a change for. We can track those

Re: [swift-corelibs-dev] CChar vs Int8

2016-01-04 Thread Tony Parker via swift-corelibs-dev
Hi Luke, > On Jan 2, 2016, at 8:28 PM, Luke Howard via swift-corelibs-dev > wrote: > > Many Foundation APIs use Int8 instead of CChar when representing C strings, > e.g.: > var UTF8String: UnsafePointer >

Re: [swift-corelibs-dev] corelibs-xctest + swiftpm

2016-01-04 Thread Tony Parker via swift-corelibs-dev
Hi Keith, Also - the Xcode project is provided for development ease-of-use only. This version of XCTest is only for non-Darwin platforms, and that builds with the simple shell script that is in the root directory (build_script.py). - Tony > On Jan 4, 2016, at 9:19 AM, Daniel Dunbar via

Re: [swift-corelibs-dev] #if __CORELIBS_FOUNDATION__

2016-01-05 Thread Tony Parker via swift-corelibs-dev
Hi Drew, > On Jan 5, 2016, at 12:08 AM, Drew Crawford wrote: > > >> On Jan 4, 2016, at 3:09 PM, Tony Parker > > wrote: >> >> In this particular case, how would you use the #if? Any should be source >>

Re: [swift-corelibs-dev] Xcode 8 beta 1 and swift-corelibs-foundation

2016-06-14 Thread Tony Parker via swift-corelibs-dev
we wouldn't be applying the same kinds > of grand renaming to XCTest -- would just like to confirm that point. > > - Brian Gesiak > >> On Tue, Jun 14, 2016 at 1:24 PM, Tony Parker via swift-corelibs-dev >> <swift-corelibs-dev@swift.org> wrote: >> Hello everyone

Re: [swift-corelibs-dev] NSStream implementation

2016-06-24 Thread Tony Parker via swift-corelibs-dev
Hi Mamatha, This seems like a reasonable starting point. Thanks for taking this on! - Tony > On Jun 23, 2016, at 1:14 AM, Mamatha Busi via swift-corelibs-dev > wrote: > > Hi > > Looking into the NSStream class in Foundation, the NSInputStream and >

Re: [swift-corelibs-dev] KVC dependent classes

2016-03-14 Thread Tony Parker via swift-corelibs-dev
Hi David, It’s likely that we’ll have to come up with some alternative API in these cases. For example, in NSProgress I could imagine a callback for progress updates instead of observing the properties. It’s not ideal but I don’t think we want to undertake a reinvention of KVO when we do not

Re: [swift-corelibs-dev] Cannot call CFStreamCreatePairWithSocket on Linux

2016-03-15 Thread Tony Parker via swift-corelibs-dev
Hi Pushkar, Yes, this is used by “getStreamsToHostWithName”. I think we’ll have to come up with a replacement implementation here, either by starting with the old CFNetwork open source code or writing our own. - Tony > On Mar 15, 2016, at 8:00 AM, Pushkar N Kulkarni via swift-corelibs-dev >

Re: [swift-corelibs-dev] Internal Tests

2016-03-15 Thread Tony Parker via swift-corelibs-dev
Using @testable makes sense to me. Let's try it out. - Tony > On Mar 15, 2016, at 7:54 AM, Robert Stephen Thompson via swift-corelibs-dev > wrote: > > If it doesn’t use it on Linux, it’s because I was mostly running tests in > Xcode heh, and didn’t end up

Re: [swift-corelibs-dev] NSURLSession & libcurl

2016-03-19 Thread Tony Parker via swift-corelibs-dev
Awesome, thanks for taking this on! - Tony > On Mar 17, 2016, at 12:33 PM, Daniel Eggert via swift-corelibs-dev > wrote: > > I’ve made good progress on this. I’ll try to get something that’s merge-able > within the next week. It won’t be 100% complete by any

Re: [swift-corelibs-dev] [SE-0046] Implemented consistent function labels

2016-04-08 Thread Tony Parker via swift-corelibs-dev
These are turbulent times for syntax in Swift. :) Pretty soon now we're also going to have to deal with the swift renaming rules as applied to all functions in corelibs-foundation. - Tony > On Apr 8, 2016, at 3:12 AM, Daniel Eggert via swift-corelibs-dev >

Re: [swift-corelibs-dev] NSTask and NSFileHandle implementation

2016-04-22 Thread Tony Parker via swift-corelibs-dev
Hi Alexander, Small incremental changes is usually a good approach. As for adding tests first, we can do that but we just need to make sure they don’t fail the build. What approach would you have in mind for that? - Tony > On Apr 22, 2016, at 1:37 AM, Alexander Alemayhu via swift-corelibs-dev

Re: [swift-corelibs-dev] Objective-C Foundation vs CoreLibs Foundation

2016-05-23 Thread Tony Parker via swift-corelibs-dev
Hi David, > On May 22, 2016, at 8:15 AM, David Hart via swift-corelibs-dev > wrote: > > Hello, > > The discussion we had previously on this mailing list made it quite clear > that: > > - Objective-C Foundation is the framework that is supposed to be used on all

Re: [swift-corelibs-dev] swift-corelibs-xctest JIRA dashboard

2016-05-23 Thread Tony Parker via swift-corelibs-dev
This is slick! I would love to have one for Foundation too (although my understanding of JIRA is limited at best). - Tony > On May 22, 2016, at 12:47 PM, Brian Gesiak via swift-corelibs-dev > wrote: > > Hello all! > > If you're like me, you might be curious

Re: [swift-corelibs-dev] Use of pthread_main_np() in NSOperation

2016-05-10 Thread Tony Parker via swift-corelibs-dev
Since CF is really an implementation detail of Foundation for corelibs, let’s use the CF implementation for Foundation. - Tony > On May 10, 2016, at 12:10 PM, Chris Bailey via swift-corelibs-dev > wrote: > > NSOperation.swift currently makes a call to

Re: [swift-corelibs-dev] Looking at corelibs-foundation

2016-05-14 Thread Tony Parker via swift-corelibs-dev
Hi David, > On May 14, 2016, at 1:04 AM, David Hart wrote: > > Thanks for all the answers :) These questions are dear to my heart because I > plan on using corelibs-foundation on Darwin as soon as possible to share code > between our iOS apps and web services. Yup, that

Re: [swift-corelibs-dev] Looking at corelibs-foundation

2016-05-13 Thread Tony Parker via swift-corelibs-dev
Hi David, > On May 11, 2016, at 4:02 PM, David Hart via swift-corelibs-dev > wrote: > > Hello people, > > I wanted to start giving a hand on corelibs-foundation but hit two obstacles > I’d like to discuss: > > It feels difficult to know where help is needed

Re: [swift-corelibs-dev] Looking at corelibs-foundation

2016-05-13 Thread Tony Parker via swift-corelibs-dev
not been covered elsewhere and can be picked up? > > James > > Sent from my iPhone > > On 13 May 2016, at 18:01, Tony Parker via swift-corelibs-dev > <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote: > >> Hi David, >>

Re: [swift-corelibs-dev] NSTask and try!

2016-05-13 Thread Tony Parker via swift-corelibs-dev
> On May 13, 2016, at 1:05 PM, James Lee wrote: > > Cheers for the clarification. I started assuming there may be a reason when > changing the guard let on the launch args to use the InvalidArgumentException. > > Could this be a position where we may need os checking to

Re: [swift-corelibs-dev] Looking at corelibs-foundation

2016-05-13 Thread Tony Parker via swift-corelibs-dev
> On May 13, 2016, at 4:13 PM, David Hart wrote: > > Hi Tony, > > I’m a bit confused by your answer. I am aware that some Objective-C > Foundation and swift-corelibs-foundation classes share a common > implementation through CF. My questions were really about the place of

Re: [swift-corelibs-dev] Looking at corelibs-foundation

2016-05-13 Thread Tony Parker via swift-corelibs-dev
Hi David, Much of the implementation is indeed shared (via the CoreFoundation C code, and the stuff it uses like ICU and libdispatch). Some of it is a reimplementation of the same API, but in Swift. If you write code targeting the Foundation API, then you simply ‘import Foundation’. The idea

Re: [swift-corelibs-dev] NSTask and try!

2016-05-13 Thread Tony Parker via swift-corelibs-dev
Hi James, > On May 13, 2016, at 12:25 PM, James Lee via swift-corelibs-dev > wrote: > > Following on from a previous discussion with Tests failing on OSX. I have > been looking into the failures. It seems that one of the earliest failures is > due to an error

Re: [swift-corelibs-dev] Looking at corelibs-foundation

2016-05-13 Thread Tony Parker via swift-corelibs-dev
> On May 13, 2016, at 10:33 AM, Rob Allen <r...@akrabat.com> wrote: > > Hi all, > >> On 13 May 2016, at 18:01, Tony Parker via swift-corelibs-dev >> <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote: >> >> Hi Davi

Re: [swift-corelibs-dev] Crypto as part of the core libraries

2016-04-15 Thread Tony Parker via swift-corelibs-dev
Hi Travis, Someone will need to step up and lead the project. Is that you? =) Personally, I’m hoping that the structure of the Swift Package Manager will really encourage people to create new frameworks, and give them the tools they need to distribute for use by many developers. That will be a

Re: [swift-corelibs-dev] Crypto as part of the core libraries

2016-04-15 Thread Tony Parker via swift-corelibs-dev
Hi Travis, I think the best path for projects to become part of the corelibs “umbrella” is to start them off as community-driven, and once they have gained enough momentum we should consider folding them into the core distribution. This provides a lot of key benefits. Most importantly, the new

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

2016-07-29 Thread Tony Parker via swift-corelibs-dev
gt;> Swift review (probably a more generic version of it, like _BridgeableType >> instead of _ObjectiveCBridgeable would help?), but wanted to understand >> first if this is a priority for the foundation team, and there is something >> that can be done to push for th

Re: [swift-corelibs-dev] [SR-1608]

2016-08-02 Thread Tony Parker via swift-corelibs-dev
Hi David, Thanks for helping! Can you check out some of our current open PRs to make sure your work isn’t overlapping? We’ve had some contributions in this area recently that we still need to finish merging. - Tony > On Jul 29, 2016, at 11:28 PM, David Liu via swift-corelibs-dev >

Re: [swift-corelibs-dev] Swiftier? implementation of Measurement and Unit in Foundation

2016-08-14 Thread Tony Parker via swift-corelibs-dev
Hi Joanna, An important requirement of the design of measurements and units was that it had to work in Objective-C as well, where protocols do not have as many capabilities as they do in Swift. The bridging into Swift can only do so much, and frankly it didn’t seem to be the case that

Re: [swift-corelibs-dev] Query on NSLog

2016-07-05 Thread Tony Parker via swift-corelibs-dev
Hi Sai, Out of curiosity, why NSLog instead of Swift’s print function? - Tony > On Jun 27, 2016, at 4:37 AM, Sai Kanduri via swift-corelibs-dev > wrote: > > Hi All, > > Currently NSLog has only one internal function NSLog() which can be used > only by

Re: [swift-corelibs-dev] Query on NSLog

2016-07-05 Thread Tony Parker via swift-corelibs-dev
ed whether to make it public. > >> On 6 Jul 2016, at 5:42 AM, Tony Parker via swift-corelibs-dev >> <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote: >> >> Hi Sai, >> >> Out of curiosity, why NSLog instead of Swift’s p

Re: [swift-corelibs-dev] [SR-1608]

2016-08-08 Thread Tony Parker via swift-corelibs-dev
Hi David, The compiler has been changing pretty rapidly underneath us, but hopefully has settled down a bit now that we’re getting towards the end. I’d suggest rebasing against master again and trying with the latest compiler snapshots. - Tony > On Aug 3, 2016, at 3:29 AM, David Liu

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

2016-07-29 Thread Tony Parker via swift-corelibs-dev
v > <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote: > The overlay changes were merged to corelibs libdispatch this morning. > > Sent from my iPhone. > > On Jul 28, 2016, at 2:03 PM, Tony Parker via swift-corelibs-dev > <swift-corelib

[swift-corelibs-dev] URLSession test fest!

2017-01-24 Thread Tony Parker via swift-corelibs-dev
Hi everyone, As we’re wrapping up Swift 3.1, I think it’d be a great opportunity to have a quality focus area on one of our most important APIs: URLSession. If you’ve been wondering how to make a meaningful contribution, this is the perfect time. It’d be great to greatly expand both unit test

Re: [swift-corelibs-dev] URLSession test fest!

2017-01-30 Thread Tony Parker via swift-corelibs-dev
gt; Yup, we want building and running on macOS to be totally supported (so it’s easy to help contribute). I’ll take a look and see if I can figure out what the problem is too… - Tony > Cheers, > > Peter > >> On Jan 27, 2017, at 6:31 PM, Tony Parker via swift-corelibs

Re: [swift-corelibs-dev] URLSession test fest!

2017-01-27 Thread Tony Parker via swift-corelibs-dev
Hi Paul, > On Jan 27, 2017, at 12:51 AM, Paul Stringer via swift-corelibs-dev > wrote: > > Hi Tony, > > First post and excited to join the party. Great, welcome! > > I'm sure this may have been solved many times over by the community already. > Maybe we can

Re: [swift-corelibs-dev] Asynchronous Operations

2017-01-23 Thread Tony Parker via swift-corelibs-dev
Hm, that’s probably the least bad option we have at the moment. I don’t want to introduce “new” API, as it is unlikely we will be able to remove it when whatever permanent solution comes up. - Tony > On Jan 21, 2017, at 6:09 AM, Brent Royal-Gordon via swift-corelibs-dev >

Re: [swift-corelibs-dev] Need of inputs for NSExpression

2017-01-18 Thread Tony Parker via swift-corelibs-dev
ev-boun...@swift.org> wrote: - > To: Nethra Ravindran <nethraravindra...@gmail.com > <mailto:nethraravindra...@gmail.com>> > From: Tony Parker via swift-corelibs-dev > Sent by: swift-corelibs-dev-boun...@swift.org > <mailto:swift-corelibs-dev-boun...@swi

Re: [swift-corelibs-dev] [swift-build-dev] Final merge from master to swift-3.1-branch

2017-01-18 Thread Tony Parker via swift-corelibs-dev
Thanks Mishal! For all of the contributors to swift-corelibs: if you have a change which you think is appropriate for inclusion into Swift 3.1, let’s follow this process: 1. Get a PR up for master to merge your change 2. Once accepted, get a PR up to cherry pick the change to the swift-3.1

Re: [swift-corelibs-dev] NSString.isAbsolutePath inconsistency

2017-01-19 Thread Tony Parker via swift-corelibs-dev
Hi Nethra, If this was in master sometime before this past Tuesday, it should be included in the swift-3.1 branch by default (that branch received merges from master). Did you check out the latest version of the swift-3.1 branch to verify that this change was missing? - Tony > On Jan 19,

Re: [swift-corelibs-dev] Documentation and coding style

2017-01-20 Thread Tony Parker via swift-corelibs-dev
Hi Sergej, > On Jan 20, 2017, at 6:24 AM, Sergej Jaskiewicz via swift-corelibs-dev > wrote: > > Hello everyone. > > I have a couple of questions about the core libraries that I think would be > interesting to discuss. > > The first question is about

Re: [swift-corelibs-dev] Implementing HTTPCookieStorage

2017-01-20 Thread Tony Parker via swift-corelibs-dev
t; > -swift-corelibs-dev-boun...@swift.org > <mailto:-swift-corelibs-dev-boun...@swift.org> wrote: ----- > To: Will Stanton <willstant...@yahoo.com <mailto:willstant...@yahoo.com>> > From: Tony Parker via swift-corelibs-dev > Sent by: swift-corelibs-de

Re: [swift-corelibs-dev] A URLSession crash and potential solutions

2016-09-13 Thread Tony Parker via swift-corelibs-dev
Hi Pushkar, > On Sep 13, 2016, at 12:20 PM, Pushkar N Kulkarni > wrote: > > Hi Tony, Philippe, other onlookers, > > Long note. Kindly bear with me. > > I've created SR-2631 to report a > crash in a very basic usage of

Re: [swift-corelibs-dev] [swift-dev] Linux: Build process not finding my ICU

2016-09-14 Thread Tony Parker via swift-corelibs-dev
Hi Eric, > On Sep 13, 2016, at 10:30 PM, Eric Wing via swift-corelibs-dev > wrote: > > On 9/13/16, Will Stanton wrote: >> Hello Eric, >> >> Not sure if this will help, but perhaps you can feed something in build.py? >>

Re: [swift-corelibs-dev] Inconsistent URLSession POST behaviour

2016-09-12 Thread Tony Parker via swift-corelibs-dev
> On Sep 12, 2016, at 12:52 AM, Michael Ferenduros via swift-corelibs-dev > wrote: > > >> On 12 Sep 2016, at 09:25, Pushkar N Kulkarni wrote: >> >> Hi Michael, >> >> I took a quick look at the URLSession code and it looks like the

Re: [swift-corelibs-dev] Adding retain to CFCalendar.c - SR2879

2016-10-07 Thread Tony Parker via swift-corelibs-dev
Hi Alex, Thanks for digging into this. This seems like a correct solution for now. I think there is a larger question though, which is why it’s possible to overrelease kCFEmptyString. I think we skirted the issue early in bringup of SCL-Foundation, but constant strings are supposed to be

Re: [swift-corelibs-dev] NSRegularExpression - NS prefix not dropped on Darwin

2016-09-16 Thread Tony Parker via swift-corelibs-dev
Hi Pushkar, We decided to keep the NS on NSRegularExpression because we know that a strong goal for the Swift language is to have built-in support for regex. We wanted to be cautious about taking the name without knowing more about how that feature would shake out. We should get a JIRA filed

Re: [swift-corelibs-dev] Building with Xcode

2016-08-18 Thread Tony Parker via swift-corelibs-dev
Hi Luke, In Xcode it should be possible to set the build order like this: Foundation XCTest TestFoundation which should resolve the ordering issue, right? I do this with a build scheme. - Tony > On Aug 17, 2016, at 6:13 PM, Luke Howard via swift-corelibs-dev >

Re: [swift-corelibs-dev] Query on NSKeyedArchiver

2016-10-26 Thread Tony Parker via swift-corelibs-dev
I would really appreciate help on if anyone is interested in contributing. - Tony > >> On 26 Oct 2016, at 18:11, Tony Parker via swift-corelibs-dev >> <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote: >> >> Hi Sai, >> >&g

Re: [swift-corelibs-dev] Query on NSKeyedArchiver

2016-10-26 Thread Tony Parker via swift-corelibs-dev
Hi Sai, We do have basic support for keyed archiving and unarchiving in swift-corelibs-foundation on Linux. The limitation is that the NSCoding protocol cannot be applied to Swift struct types, only class types. On Darwin, the class also must be a subclass of NSObject. This last limitation may

Re: [swift-corelibs-dev] Implementing HTTPCookieStorage

2016-11-07 Thread Tony Parker via swift-corelibs-dev
Hi Pushkar, Good question. If this were Darwin I guess I would say ~/Library/Application Support — but I don’t know what the best practices are on other platforms. Does anyone out there have some suggestions? - Tony > On Nov 7, 2016, at 11:09 AM, Pushkar N Kulkarni via swift-corelibs-dev >

Re: [swift-corelibs-dev] Cannot call CFStreamCreatePairWithSocket on Linux

2016-10-10 Thread Tony Parker via swift-corelibs-dev
Hi Bouke, There is currently no plan to open source the more modern versions of CFNetwork. We’ll have to replace its functionality in swift-corelibs-foundation. - Tony > On Oct 8, 2016, at 1:12 AM, Bouke Haarsma via swift-corelibs-dev > wrote: > > I'm running

Re: [swift-corelibs-dev] Implementing HTTPCookieStorage

2016-11-16 Thread Tony Parker via swift-corelibs-dev
en. This directory is defined by > the environment variable $XDG_CACHE_HOME. Overall the spec looks reasonable and seems to be close to what we we would need. A great next step would be to file a JIRA and look for volunteers who want to help implement this in SCL-Foundation. - Tony > > Regar

Re: [swift-corelibs-dev] Implementing Bundle.init(for aClass: AnyClass)

2016-11-18 Thread Tony Parker via swift-corelibs-dev
Hi Mamatha, > On Nov 18, 2016, at 3:03 AM, Mamatha Busi via swift-corelibs-dev > wrote: > > Hi > > > > init(for aClass: AnyClass) is an unimplemented API on Linux. I am exploring > around this to implement the same and have a couple of queries: > > > > ->

Re: [swift-corelibs-dev] Implementing HTTPCookieStorage

2016-11-14 Thread Tony Parker via swift-corelibs-dev
> On Nov 14, 2016, at 10:47 AM, Will Stanton wrote: > > Hello Tony and Philippe, > > I don’t think it would be odd for cookie/setting files to be in a folder > named after Foundation (namely ~/.foundation): > - The files are owned by Swift/Linux Foundation in the sense

Re: [swift-corelibs-dev] Query on NSKeyedArchiver

2016-10-28 Thread Tony Parker via swift-corelibs-dev
ub.com/apple/swift-corelibs-foundation/pull/574> > > That allows value types to be archived too if they support _ObjectBridgeable > (they’ll come back as reference types though). > >> On 27 Oct 2016, at 4:22 AM, Tony Parker via swift-corelibs-dev >> <swift-corelibs-d

Re: [swift-corelibs-dev] Question about NSDecimalCopy

2017-01-12 Thread Tony Parker via swift-corelibs-dev
Hi Morten, > On Jan 9, 2017, at 2:16 AM, Morten Bek Ditlevsen via swift-corelibs-dev > wrote: > > Hi list, > I was looking at the NSDecimal.swift to learn a bit about the implementation > of the Decimal type. > I get that a lot of the API in this type exists for

Re: [swift-corelibs-dev] Autoupdating type properties

2016-11-30 Thread Tony Parker via swift-corelibs-dev
Hi Pushkar, > On Nov 30, 2016, at 6:39 AM, Pushkar N Kulkarni wrote: > > Thanks Tony, for the detailed explanation! > > I think I need a bit more clarification though :) > > >>> Now, nothing in the value type contract says that you cannot have > >>> computed

Re: [swift-corelibs-dev] Autoupdating type properties

2016-11-29 Thread Tony Parker via swift-corelibs-dev
Hi Pushkar, > On Nov 29, 2016, at 4:12 AM, Pushkar N Kulkarni via swift-corelibs-dev > wrote: > > Hi there, > > I am curious about how an autoupdating type property like `NSTimeZone.local` > could be implemented, given that it is a value (the type is TimeZone).

Re: [swift-corelibs-dev] index indexes and ranges of String

2017-01-04 Thread Tony Parker via swift-corelibs-dev
Hi Carlos, Thanks for proposing this. Would you mind sending it out to swift-dev or swift-evolution as well? The authors of the Swift standard library are more likely to see your message there. - Tony > On Dec 31, 2016, at 11:53 AM, Carlos García via swift-corelibs-dev >

Re: [swift-corelibs-dev] URLSession test fest!

2017-03-09 Thread Tony Parker via swift-corelibs-dev
t; > > > -swift-corelibs-dev-boun...@swift.org > <mailto:-swift-corelibs-dev-boun...@swift.org> wrote: - > To: swift-corelibs-dev <swift-corelibs-dev@swift.org > <mailto:swift-corelibs-dev@swift.org>> > From: Tony Parker via swift-corelibs-dev &

Re: [swift-corelibs-dev] URLSession test fest!

2017-03-10 Thread Tony Parker via swift-corelibs-dev
ould > be tested), I found it very hard to know if either end was correct. > > So, just two cents from a lurker here, but this sounds like a great idea to > me. Cheers, > > Peter > > On Mar 9, 2017, at 4:38 PM, Tony Parker via swift-corelibs-dev > <swift-

Re: [swift-corelibs-dev] NSOrderedMutableSet subscript setter

2017-03-14 Thread Tony Parker via swift-corelibs-dev
Hi Richard, I suspect the importer must be adding this due to the presence of API like objectAtIndex: on the NSOrderedSet API. If we’re missing it in swift-corelibs-foundation but it exists on Darwin, we should add it. - Tony > On Mar 14, 2017, at 7:02 AM, Richard Wei via swift-corelibs-dev

[swift-corelibs-dev] Swift 4 branch plans

2017-08-10 Thread Tony Parker via swift-corelibs-dev
Hi all, We’re wrapping up Swift 4, and it’s past time for us to branch swift-corelibs-foundation for Swift 4 to match the rest of the projects. Here is my proposal: Monday: stop auto-merging from master to Swift 4. master becomes Swift 4 update work. After Monday: We are working on merging

Re: [swift-corelibs-dev] PR for better namespace support in XMLNode et al

2017-07-11 Thread Tony Parker via swift-corelibs-dev
Hi Robert, I will take a quick look. - Tony > On Jul 11, 2017, at 10:01 AM, Robert Thompson via swift-corelibs-dev > wrote: > > Hey, I have a PR up that improves the XML namespace support in XMLNode and > friends:

Re: [swift-corelibs-dev] TimeZone database

2017-07-10 Thread Tony Parker via swift-corelibs-dev
eems to be the right >> location (?), but CF is picking up TZDIR from tzfile.h which says: >> >> #define TZDIR "/var/db/timezone/zoneinfo" >> >> Any thoughts? I feel like I'm missing something obvious and have gone >> too far down the rabbit hole. >> >> -- >> Ian Partr

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Tony Parker via swift-corelibs-dev
Yes, we’re discussing this one internally too and trying to figure out what the right answer is. Maybe the best solution for now is to find a good mechanism to check the underlying version of the OS and split it out into a function as you suggest. - Tony > On Jul 6, 2017, at 7:37 AM, Ian

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Tony Parker via swift-corelibs-dev
ng inside a Travis > 14.04 VM. > > The issue was specific to the Ubuntu 16.04 docker image; when I tested in > Ubuntu 16.04 OS as a guest VM, the issue went away. > > Thanks, > > Youming Lin > IBM Cloud, Swift@IBM, Kitura developer > Austin, TX > GitHub: @youming-l

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Tony Parker via swift-corelibs-dev
t; <https://github.com/apple/swift-corelibs-foundation/blob/2611dcd0d9b91fecace537838294bd85f0220503/CoreFoundation/NumberDate.subproj/CFTimeZone.c#L36-L39> > > Is it possible that the MacOS header is being included and defining TZDIR > before the CFTimeZone.c file is compiled? >

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Tony Parker via swift-corelibs-dev
t; https://github.com/apple/swift-corelibs-foundation/blob/2611dcd0d9b91fecace537838294bd85f0220503/CoreFoundation/NumberDate.subproj/CFTimeZone.c#L36-L39 > > <https://github.com/apple/swift-corelibs-foundation/blob/2611dcd0d9b91fecace537838294bd85f0220503/CoreFoundation/NumberDate.subp

Re: [swift-corelibs-dev] Unavailability macros for APIs that aren't going to be implemented on Linux?

2017-07-28 Thread Tony Parker via swift-corelibs-dev
This sounds like a good plan to me. We’ll have to discuss the specifics of what is marked unavailable this way, probably best via code review. I think we had more hope for some of the more-dynamic methods (e.g. NSSortDescriptor, NSExpression), but it does seem clear at this point that the

Re: [swift-corelibs-dev] NSString.range(of:options:range:locale) incompatibility

2017-08-09 Thread Tony Parker via swift-corelibs-dev
Hi Ian, I don’t think Max has put up that PR against the swift-corelibs-foundation implementation, but we should. - Tony > On Aug 9, 2017, at 9:04 AM, Ian Partridge via swift-corelibs-dev > wrote: > > I've noticed this current difference in behaviour. > >

Re: [swift-corelibs-dev] Bring NSString functions to String

2017-05-11 Thread Tony Parker via swift-corelibs-dev
> On May 10, 2017, at 4:19 AM, Andrey Fidrya via swift-corelibs-dev > wrote: > > Hi All, > > Btw, when migrating from NSString's methods to URL I've noticed > that they work a bit differently: URL's methods convert strings > from NFC to NFD (decomposed) unicode

Re: [swift-corelibs-dev] Bring NSString functions to String

2017-05-12 Thread Tony Parker via swift-corelibs-dev
> On May 11, 2017, at 5:17 PM, Andrey Fidrya wrote: > >> >> On 12 May 2017, at 00:05, Tony Parker > > wrote: >> >>> On May 10, 2017, at 4:19 AM, Andrey Fidrya via swift-corelibs-dev >>>

Re: [swift-corelibs-dev] Foundation: NSString init detect encoding

2017-06-21 Thread Tony Parker via swift-corelibs-dev
Someone on the team here just reminded me that we do have a very basic form of encoding detection here as well: just looking for the BOM at the beginning of the data. - Tony > On Jun 21, 2017, at 9:55 AM, Tony Parker via swift-corelibs-dev > <swift-corelibs-dev@swift.org> wro

Re: [swift-corelibs-dev] Build failure and differences between test and build

2017-06-21 Thread Tony Parker via swift-corelibs-dev
> On Jun 21, 2017, at 6:30 AM, Alex Blewitt via swift-corelibs-dev > wrote: > > We had a test failure on swift-corelibs-foundation recently on master, which > was related to this pull request being merged by me: > >

Re: [swift-corelibs-dev] Foundation: NSString init detect encoding

2017-06-21 Thread Tony Parker via swift-corelibs-dev
Hi Andy, > On Jun 21, 2017, at 7:39 AM, Andy Best via swift-corelibs-dev > wrote: > > Hey, > > I've been looking at the init(contentsOfFile, usedEncoding) initializer for > NSString in corelibs-foundation. > > Am I right in thinking that this method should use

Re: [swift-corelibs-dev] Swift Encoders on Linux

2017-05-23 Thread Tony Parker via swift-corelibs-dev
Hi Ankit, Our intention is to share as much of the implementation as possible. There are some details that need to be worked out around bridging of types like NSNumber (since bridging doesn't exist on Linux we may need to avoid using 'as' in a few places), but in general it could be as easy as

Re: [swift-corelibs-dev] Debugging failures seen only in CI

2017-05-23 Thread Tony Parker via swift-corelibs-dev
I'm ok with that if it helps us get to the bottom of this once and for all. I wonder if it would be possible to enable the logging conditionally, so it only appears in CI? Maybe via a runtime call ("turn logging on now"). - Tony > On May 23, 2017, at 2:25 AM, Pushkar N Kulkarni

Re: [swift-corelibs-dev] [swift-dev] Swift Encoders on Linux

2017-05-23 Thread Tony Parker via swift-corelibs-dev
Hi David, I think the struct Measurement should probably be very similar, but the class NSMeasurement is probably pretty different. Regardless, if there is something you think needs to be ported over (I would believe that there are a few changes made there that we haven’t copied yet), please

Re: [swift-corelibs-dev] Unable to build swift-corelibs-foundation in XCode 8.3.2

2017-06-02 Thread Tony Parker via swift-corelibs-dev
Hi everyone, I’m hoping to merge these early next week. - Tony > On Jun 2, 2017, at 4:51 AM, Simon Evans via swift-corelibs-dev > wrote: > > Yes I was also seeing this issue, the Xcode project needs the swift-version 3 > set and some files were moved around

Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON encode/decode

2017-08-30 Thread Tony Parker via swift-corelibs-dev
I haven’t tried this myself yet, but you could imagine creating a type which represents an ABV and decodes using a single value container. Then, your custom behavior goes into the Codable implementation of this ABV type. Struct Beer then looks like: struct Beer: Codable { let name: String

Re: [swift-corelibs-dev] Adding type conversion capabilities to JSON encode/decode

2017-08-30 Thread Tony Parker via swift-corelibs-dev
> On Aug 30, 2017, at 3:12 PM, Sneed, Brandon wrote: > > Thanks Tony, > > Ah. That should work, and covers benefit #2 I mentioned very nicely. Only > downside is that as a developer on an app I may not expect that type to > change on the server side so I wouldn’t do it

Re: [swift-corelibs-dev] Better integration with UNIX tools

2017-11-28 Thread Tony Parker via swift-corelibs-dev
Why does it imply a run loop rather than one of many multithreading possibilities (dispatch queue, starting one more thread, etc)? And even if it did use run loops, why is that a problem? In general we have been discouraging the use of synchronous and blocking API for many years now. It’s

Re: [swift-corelibs-dev] Better integration with UNIX tools

2017-11-30 Thread Tony Parker via swift-corelibs-dev
Why did we give up so easily? I did not say that scripting support is somehow a non-goal. In fact, it is exactly the opposite. I do not believe that somehow API that is useful for scripts is mutually exclusive with API that is useful for apps. - Tony > On Nov 30, 2017, at 9:26 AM, Jacob

Re: [swift-corelibs-dev] Encountering "Constant strings cannot be deallocated" in Linux foundation

2017-11-29 Thread Tony Parker via swift-corelibs-dev
I see a couple of places that are suspicious there: Description: https://github.com/apple/swift-corelibs-foundation/blob/master/CoreFoundation/URL.subproj/CFURLComponents.c#L66

Re: [swift-corelibs-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.10 (swift 4.1) #477

2017-12-19 Thread Tony Parker via swift-corelibs-dev
Last change in this area was 5 days ago: 820e3a88 : (5 days ago) Naoki Ishikawa : use optional binding Foundation/URLSession/http/HTTPURLProtocol.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) but that does not look promising as a source of a regression. When did this start

Re: [swift-corelibs-dev] [Proposal] RangeReplaceableCollection should inherits from MutableCollection

2017-12-02 Thread Tony Parker via swift-corelibs-dev
Hi Jiannan, I think you’ll get a better answer to your question on the ‘swift-dev’ list, actually. Hope this helps, - Tony > On Dec 2, 2017, at 9:08 AM, Cao, Jiannan via swift-corelibs-dev > wrote: > > Hi everyone, > > I'd like to discuss the relation between

[swift-corelibs-dev] Swift 4.1 process

2017-10-19 Thread Tony Parker via swift-corelibs-dev
Hi everyone, As you’ve probably already seen, the Swift team has announced the Swift 4.1 release process: https://swift.org/blog/swift-4-1-release-process/ We’ve arranged to have swift-corelibs-foundation “auto-merge” from master for a longer period of time than the other projects. This is