Re: [swift-dev] swift_retainCount in CoreFoundation

2015-12-22 Thread Joe Groff via swift-dev
> On Dec 22, 2015, at 1:08 PM, Joe Groff via swift-dev > wrote: > > It looks like the corelibs implementation of CoreFoundation references > swift_retainCount in order to implement CFGetRetainCount. Is getting the > retain count necessary to CF functionality, or can these functions be removed

[swift-dev] Implementing hasPrefix and hasSuffix

2015-12-22 Thread Alex Blewitt via swift-dev
I raised https://bugs.swift.org/browse/SR-337 to implement hasPrefix and hasSuffix in Swift (instead of depending on the Objective-C implementation and only being available for OSX at present. I have an implementation which I’d like to create a pull reques

[swift-dev] swift_retainCount in CoreFoundation

2015-12-22 Thread Joe Groff via swift-dev
It looks like the corelibs implementation of CoreFoundation references swift_retainCount in order to implement CFGetRetainCount. Is getting the retain count necessary to CF functionality, or can these functions be removed? -Joe ___ swift-dev mailing li

Re: [swift-dev] [Starter Project] Teach SILParser how to parse switch_enum of undef.

2015-12-22 Thread Michael Gottesman via swift-dev
I feel that the SILParser crasher one is too open ended for a specific bug report. But I would suggest looking into those as well. Here are some more concrete things: https://bugs.swift.org/browse/SR-339 https://bugs.swift.org/browse/SR-340 https://bugs.swift.org/browse/SR-341 https://bugs.swift

Re: [swift-dev] [Starter Project] Teach SILParser how to parse switch_enum of undef.

2015-12-22 Thread Michael Gottesman via swift-dev
You know what, let me file some bugs. I just thought of some more. > On Dec 22, 2015, at 1:45 PM, Michael Gottesman via swift-dev > wrote: > > Here are some off the top of my head. Many are related to code quality. Tell > me what you think: > > 1. We have recently gotten some SILParser crashe

Re: [swift-dev] [Starter Project] Teach SILParser how to parse switch_enum of undef.

2015-12-22 Thread Michael Gottesman via swift-dev
Here are some off the top of my head. Many are related to code quality. Tell me what you think: 1. We have recently gotten some SILParser crashers. These need to be fixed. I looked at 1-2 of them and the ones I looked at are where we should be giving out a diagnostic but are instead just assert

Re: [swift-dev] [Starter Project] Teach SILParser how to parse switch_enum of undef.

2015-12-22 Thread Davide Italiano via swift-dev
On Sun, Dec 13, 2015 at 4:29 PM, Michael Gottesman via swift-dev < swift-dev@swift.org> wrote: > This is a small starter project for those who are interested in working > with SIL. > > The SIL Parser currently is unable to parse switch_enum of undef. I wrote > a patch that does the work some time

Re: [swift-dev] Request: Swift for Linux ARM 32 Support

2015-12-22 Thread Joseph Bell via swift-dev
Dallas, see SR-40 https://bugs.swift.org/browse/SR-40 and http://dev.iachieved.it/iachievedit/debian-packages-for-swift-on-arm/, folks are definitely working on it. On Tue, Dec 22, 2015 at 11:32 AM, Dallas Brown via swift-dev < swift-dev@swift.org> wrote: > I know there has been talk about gettin

[swift-dev] Request: Swift for Linux ARM 32 Support

2015-12-22 Thread Dallas Brown via swift-dev
I know there has been talk about getting Swift working on ARM, and I have even tried myself to get it to cross-compile and local compile. I However haven't seen an "official" request for ARM support to be added, so I am "officially" requesting it now. Personally l am interested in Linux ARM 32

Re: [swift-dev] Combining Skin Tone Emoji Into Single Extended Grapheme Clusters

2015-12-22 Thread Dmitri Gribenko via swift-dev
On Tue, Dec 22, 2015 at 12:10 AM, Michael Buckley via swift-dev < swift-dev@swift.org> wrote: > It actually appears that Swift already links against ICU. I'll see if I > can hook Swift up to ICU's grapheme separation code. > Hi Michael, Thank you for the investigation. Yes, calling into ICU for

[swift-dev] Scala updated equivalent

2015-12-22 Thread Alexandre Lopoukhine via swift-dev
Hello everyone! What do you all think about adding the equivalent of Scala’s update method to collections that have the insert() func? This would likely take the form of: public func inserted(newElement: Self.Generator.Element, atIndex i: Self.Index) -> Self { var modified = self modifi

Re: [swift-dev] Combining Skin Tone Emoji Into Single Extended Grapheme Clusters

2015-12-22 Thread Michael Buckley via swift-dev
It actually appears that Swift already links against ICU. I'll see if I can hook Swift up to ICU's grapheme separation code. On Sun, Dec 20, 2015 at 10:41 PM, Michael Buckley wrote: > After reading through the ICU sources, if I understand them correctly, ICU > uses the Aho–Corasick algorithm to