[swift-users] Bls: Bls: module (de)-initialization

2016-12-21 Thread Mr Bee via swift-users
Sorry for not being clear. My english isn't very good either. What I meant was static module linking (loading and unloading) for Swift modules. Also with initialization and deinitialization for Swift modules. It's alright then. I just want to make sure. I'm a Pascal/Delphi programmer and sometime

Re: [swift-users] Swift 3 Whole Module Optimization Issue

2016-12-21 Thread Joe Groff via swift-users
> On Dec 21, 2016, at 7:08 PM, Jun Zhang via swift-users > wrote: > > Hi, everyone. >I think I found a swift 3 whole module optimization issue. The code below, > when building with release configuration and running on an iOS 10 real > device, will always causes a crash. > > import UIKit

Re: [swift-users] Bls: module (de)-initialization

2016-12-21 Thread Joe Groff via swift-users
> On Dec 21, 2016, at 7:11 PM, Mr Bee wrote: > > > Unloading Swift modules will likely never be supported, since this would > > impose a ton of complexity and performance cost on the runtime for little > > benefit. > > Hmmm… so Swift will only support static linking? I thought Swift is a mode

[swift-users] Bls: module (de)-initialization

2016-12-21 Thread Mr Bee via swift-users
> Unloading Swift modules will likely never be supported, since this would >impose a ton of complexity and performance cost on the runtime for little >benefit. Hmmm… so Swift will only support static linking? I thought Swift is a modern programming language with modern and advance features. Even

[swift-users] Swift 3 Whole Module Optimization Issue

2016-12-21 Thread Jun Zhang via swift-users
Hi, everyone. I think I found a swift 3 whole module optimization issue. The code below, when building with release configuration and running on an iOS 10 real device, will always causes a crash. import UIKit > class ViewController: UIViewController { > override func viewDidLoad() { >

Re: [swift-users] module (de)-initialization

2016-12-21 Thread Joe Groff via swift-users
> On Dec 20, 2016, at 8:54 AM, Jens Alfke via swift-users > wrote: > > Also, AFAIK there is no mechanism in Swift (yet) to load or unload a module > at runtime, so a module load occurs when the program starts up, and an unload > occurs when the program exits. dlopen works fine, though the o

[swift-users] Using the thread sanitizer with swift test

2016-12-21 Thread Martin Angers via swift-users
Hello, This is my first message to the swift mailing lists, so I'd like to start with a big thank you to the Swift core team and collaborators for all the hard work. My question is related to the thread sanitizer tool. Having worked mostly with Go in recent years, I've become spoiled by the tooli

[swift-users] Question on 3 tiers architecture with Swift backend

2016-12-21 Thread Sinardy Xing via swift-users
Hi Swift Users, I want to build and apps like following architecture Tier 1 Mobile and Browser Tier 2 Swift Linux Apps (getting alot of JSON from Tier 3 and pass to Tier 1? ) Tier 3 MySQL database My question is: I have alot of SQL queries API to the database that I would like to be place i