Re: [swift-users] Trouble with function properties

2016-06-15 Thread Doug Hill via swift-users
Thank you Saagar for looking over this code for me. I guess I got really caught up in the weird diagnostic message and assumed things weren’t working. Now I see that ‘afunc’ works as I expected: 60> g.afunc(numberRecords:1,userRecord:(13,9)) 13 9 $R3: (Int, (Int, Int)) = { 0 = 13 1 = { 0

Re: [swift-users] Swift Binary Size vs. Obj-C

2016-06-15 Thread Seth Friedman via swift-users
I'm seeing 7.375 MB for Swift 3 dylibs with a Release build, and I don't have WebKit, XPC, OnoneSupport, IOKit, CoreData, and AppKit in my binary when I create just a bare bones app. Thanks, Seth On Wed, Jun 15, 2016 at 5:59 PM Marco S Hyman wrote: > On Jun 15, 2016, at 5:37

Re: [swift-users] Trouble with function properties

2016-06-15 Thread Saagar Jha via swift-users
`Gen` defines `afunc`, but you’re trying to access `aFunc`. On Wed, Jun 15, 2016 at 6:22 PM Doug Hill via swift-users < swift-users@swift.org> wrote: > I’m just starting to learn Swift and attempting to do some > functional-style programming. Specifically I’m learning how to create > generic

[swift-users] Trouble with function properties

2016-06-15 Thread Doug Hill via swift-users
I’m just starting to learn Swift and attempting to do some functional-style programming. Specifically I’m learning how to create generic algorithms that can be reused for many different types. What I’m attempting to do is create a new object, passing functions to the initializer. The class

Re: [swift-users] Swift Binary Size vs. Obj-C

2016-06-15 Thread Marco S Hyman via swift-users
On Jun 15, 2016, at 5:37 PM, Seth Friedman via swift-users wrote: > > Does anyone know if the runtime libs definitively increased in size in Swift > 3? I could have sworn I heard 4.5 MB for Swift 2. The total of the Frameworks dir in a Swift 2.2 app I have is 5.8M. The

Re: [swift-users] Swift Binary Size vs. Obj-C

2016-06-15 Thread Seth Friedman via swift-users
Does anyone know if the runtime libs definitively increased in size in Swift 3? I could have sworn I heard 4.5 MB for Swift 2. Also, does anyone know if there are plans to introduce a `-Os` equivalent for Swift? (Yes, I'm using that in Obj-C, to answer your question). Thanks! Seth On Wed, Jun

Re: [swift-users] Swift Binary Size vs. Obj-C

2016-06-15 Thread Austin Zheng via swift-users
Sorry, I totally missed the part where you mentioned the runtime libs. I assume you're compiling your Objective-C code using the `-Os` optimization level? Unfortunately, it doesn't seem like swiftc has any flags for trading off speed and binary size. Part of the size discrepancy is almost

Re: [swift-users] Swift Binary Size vs. Obj-C

2016-06-15 Thread Seth Friedman via swift-users
Thanks for the quick reply. You guys are right on part of it; the runtime libraries are causing the majority of the increase. I thought the Swift runtime libraries were supposed to only take up 4.5 MB though? Did they increase with Swift 3? If I add up all of the libraries, they take up a total of

Re: [swift-users] Swift Binary Size vs. Obj-C

2016-06-15 Thread Saagar Jha via swift-users
Yep, I just took a simple app and opened up the ipa. 90% of it is the “Frameworks” directory containing the Swift frameworks libSwiftCore.dylib, libSwiftDarwin.dylib, etc. On Wed, Jun 15, 2016 at 3:43 PM Seth Friedman via swift-users < swift-users@swift.org> wrote: > Hi all, > > I've seen a ton

Re: [swift-users] Swift Binary Size vs. Obj-C

2016-06-15 Thread Austin Zheng via swift-users
Swift binaries are so massive currently because there's no ABI stability, therefore the runtime and support libraries must be packaged with every application. This should change in the future. Best, Austin On Wed, Jun 15, 2016 at 3:43 PM, Seth Friedman via swift-users < swift-users@swift.org>

[swift-users] Swift Binary Size vs. Obj-C

2016-06-15 Thread Seth Friedman via swift-users
Hi all, I've seen a ton of blog posts written about all of the cool and exciting things about Swift, but I haven't see anything really about the downsides (besides the occasional post about pain points with interoperability). What's of biggest concern to me when considering migrating my company's

Re: [swift-users] Feedback for Dependency Injection Framework?

2016-06-15 Thread Ian Terrell via swift-users
Hi Mike, Thanks for the library. It looks like you've done a lot of great hacking on it: Dependency injection is a topic near and dear to me. :) I'm very curious about this pattern and its libraries and have been investigating them more deeply lately. I haven't yet seen the value in this

[swift-users] Swift Meetup

2016-06-15 Thread Emo Abadjiev via swift-users
Hello, We are organising Swift meetup in Sofia and interested to find out more about: - can we use the Swift logo? Where we can get a vector image, if yes. - is there a good place to register as a new community Thanks, Emo Abadjiev