[swift-users] Firebird SQL driver for Swift

2017-09-11 Thread Mr Bee via swift-users
Hi, I'm a happy and longtime user of Firebird SQL, a medium-weight open source database. I much prefer Firebird over sqlite. Unfortunately, I couldn't find any Firebird driver for Swift, especially on Linux. Does anyone here know any Swift project out there working on this? Thank you. --

Re: [swift-users] Is it possible to install Swift 4 on El Capitan with Xcode 8?

2017-09-07 Thread Mr Bee via swift-users
2017-09-06 0:20 GMT+07:00 Jordan Rose via swift-users : > > Unfortunately this will only work for pure Swift apps; the support > libraries for Foundation, UIKit, etc are built against the Xcode 9 SDKs and > will not work with Xcode 8. I'm afraid you're stuck with Swift 3

Re: [swift-users] Is it possible to install Swift 4 on El Capitan with Xcode 8?

2017-09-04 Thread Mr Bee via swift-users
2017-09-05 3:47 GMT+07:00 Fritz Anderson via swift-users < swift-users@swift.org>: > > In your position, I’d go to the Downloads part of Swift.org and fetch the > latest build of the Swift 4 toolchain for Mac. (It’s still in flux, but > it’ll probably be promoted to latest/stable this month.) > >

[swift-users] Is it possible to install Swift 4 on El Capitan with Xcode 8?

2017-09-02 Thread Mr Bee via swift-users
Hi, Since I'm still using my old mid-2009 Macbook Pro, which is still working very well by the way, I'm stucked with macOS El Capitan (10.11.6) with Xcode 8 and Swift 3. Hence, I also couldn't install Xcode 9 and Swift 4 because they required at least macOS Sierra (10.12). So, is there any other

Re: [swift-users] Where to download Swift v.3.2 for Linux?

2017-08-24 Thread Mr Bee via swift-users
2017-08-25 4:26 GMT+07:00 Slava Pestov via swift-users < swift-users@swift.org>: > HI Mr Bee, > > “Swift 3.2” refers to running the Swift 4.0 compiler with the > -swift-version 3 flag. It is not a separate download. > I see. Thank you very much for the information. -- Regards, –Mr Bee

[swift-users] Where to download Swift v.3.2 for Linux?

2017-08-24 Thread Mr Bee via swift-users
Hi all, I'm now using Swift v.3.0 on Linux (ubuntu) and about preparing to migrate to the new Swift v.4.0. On https://swift.org/migration-guide-swift4/ it is said that: "Make sure that the project that you intend to migrate builds successfully in Swift 3.2 mode, and all its tests pass. Keep in

[swift-users] how to detect key pressed on linux console app?

2017-04-10 Thread Mr Bee via swift-users
Hi all, I'd like to know how to detect key pressed event on Linux console app using Swift. Not just waiting input like what readLine() is doing, but more like detecting arrow keys, left/right shift key, F1-10 keys, etc simultaneously while the program keep running. You know, something like game

[swift-users] Bls: Searching thru many threads; Linux dev

2017-02-17 Thread Mr Bee via swift-users
I don't know how old your machine is. But I can finely run Swift v3 on my free Linux container on CodeAnywhere which only has single core 1 GHz processor, 256 MB RAM, and 2 GB storage space. No xserver, of course… so all you got is a Linux terminal via SSH or simple web IDE. I use it for Swift

[swift-users] Bls: NSTask's terminate() is not yet implemented on Linux

2017-01-23 Thread Mr Bee via swift-users
ves you a start. Good luck! On Tue, Jan 24, 2017 at 12:16 AM Mr Bee via swift-users <swift-users@swift.org> wrote: Hi, I can't use terminate() function of (NS)Task on Linux because it's not yet implemented. I'm using Swift v.3.0.0 on 64-bit Ubuntu 14.04 LTS. Here's the error message upon calli

[swift-users] NSTask's terminate() is not yet implemented on Linux

2017-01-23 Thread Mr Bee via swift-users
Hi, I can't use terminate() function of (NS)Task on Linux because it's not yet implemented. I'm using Swift v.3.0.0 on 64-bit Ubuntu 14.04 LTS. Here's the error message upon calling the function: fatal error: terminate() is not yet implemented: file Foundation/NSTask.swift,  line 407 

[swift-users] Bls: Using Task on Linux

2017-01-09 Thread Mr Bee via swift-users
Blewitt <alb...@apple.com> menulis: When you run it with absolute paths for the 'swift' and 'python' executables, does it work then? Alex On 9 Jan 2017, at 06:20, Mr Bee via swift-users <swift-users@swift.org> wrote: Hi, I'm writing a simple editor on Linux for Swift language

[swift-users] Using Task on Linux

2017-01-08 Thread Mr Bee via swift-users
Hi, I'm writing a simple editor on Linux for Swift language. I use Task (was NSTask) to run the Swift REPL. Unfortunately, Task failed to execute the Swift REPL for no obvious reasons. The Swift compiler and REPL are installed just fine and able to execute any Swift codes. However, my exact

[swift-users] Bls: Bls: GCD and Process

2017-01-08 Thread Mr Bee via swift-users
a newbie with both Swift and GCD. There are still many things I have to read and understand. Thank you.  –Mr Bee Pada Jumat, 6 Januari 2017 15:35, "Quinn "The Eskimo!" via swift-users" <swift-users@swift.org> menulis: On 6 Jan 2017, at 07:53, Mr Bee via swift-users &l

[swift-users] Bls: GCD and Process

2017-01-05 Thread Mr Bee via swift-users
things. -Shawn On Thu, Jan 5, 2017 at 11:39 PM Mr Bee via swift-users <swift-users@swift.org> wrote: Hi all, I'm currently still learning Swift 3. Now I'm playing around with GCD (grand central dispatch). I'd like to start an external process using Process from an asynced thread, and cr

[swift-users] GCD and Process

2017-01-05 Thread Mr Bee via swift-users
Hi all, I'm currently still learning Swift 3. Now I'm playing around with GCD (grand central dispatch). I'd like to start an external process using Process from an asynced thread, and create another thread to stop that external process after some times. Here's what I do… import Foundationimport

[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

[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.

[swift-users] module (de)-initialization

2016-12-19 Thread Mr Bee via swift-users
Hi all, As I learn Swift, I got 2 questions here: 1. Is there any module initialization and deinitialization concept in Swift (v.3)? For example, upon loading a module, I want that module to do something before being utilized (initialization) or after being utilized (deinitialization). If there

[swift-users] Bls: Re: why NSTask is Process on Apple platforms but it's Task on Linux?

2016-11-27 Thread Mr Bee via swift-users
<phaus...@apple.com> menulis: Looks like that renaming didn’t get updated correctly on swift-corelibs-foundation. I filed - https://bugs.swift.org/browse/SR-3279 On Nov 26, 2016, at 9:42 PM, Mr Bee via swift-users <swift-users@swift.org> wrote: Hi all, It took me a few hours to

[swift-users] why NSTask is Process on Apple platforms but it's Task on Linux?

2016-11-26 Thread Mr Bee via swift-users
Hi all, It took me a few hours to find out why Process is unknown on Linux while it's available on macOS/iOS. Turned out, it's still called Task. Why is that? Is there anything like this on Swift Standard Library and Foundation for Linux? Thank you. Regards,  –Mr Bee

[swift-users] Bls: How to merge two dictionaries?

2016-11-11 Thread Mr Bee via swift-users
es": 9] extension Dictionary {    func merged(with another: [Key: Value]) -> [Key: Value] {        var result = self        for entry in another {            result[entry.key] = entry.value        }        return result    }} let result = d1.merged(with: d2) On Nov 11, 2016, at 12:05 AM, Mr Bee

[swift-users] Bls: How to merge two dictionaries?

2016-11-11 Thread Mr Bee via swift-users
y in another {            result[entry.key] = entry.value        }        return result    }} let result = d1.merged(with: d2) On Nov 11, 2016, at 12:05 AM, Mr Bee via swift-users <swift-users@swift.org> wrote: Hi, I'm using Swift v3 on an El Capitan machine. I want to merge a dictiona

[swift-users] How to merge two dictionaries?

2016-11-11 Thread Mr Bee via swift-users
Hi, I'm using Swift v3 on an El Capitan machine. I want to merge a dictionary into another compatible dictionary. However, I couldn't find addEntries function in the dictionary instance, like it was on NSMutableDictionary (https://developer.apple.com/reference/foundation/nsmutabledictionary). 

[swift-users] where to get the spiral for playgrounds example?

2016-09-29 Thread Mr Bee via swift-users
Hi, I just realized that the official Swift page here:  https://developer.apple.com/swift/ has a spiral drawing example for the Playgrounds (look at the first big picture on top of the page). It seems like an interesting example to play with, especially for my kids.  However, when I looked at

[swift-users] Bls: reading keyboard input from xcode playgroud

2016-09-20 Thread Mr Bee via swift-users
an see, the program asked me to input my name before it showed the notification. In playground, the situation is alike.  However, if the code is running as a command line tool, created by Xcode -> Create a new project -> macOS, command line tool, everything works fine. Zhaoxin On Sun, Se

[swift-users] Bls: what's ^ operator for

2016-09-18 Thread Mr Bee via swift-users
Forget it. Just found the answer myself on Swift ebook. It's a bitwise xor operator. And there's no power operator in Swift. Sorry. I've looked for this for hours. Why did I find the answer after I asked here? Life. :) –Mr Bee Pada Minggu, 18 September 2016 19:41, Mr Bee

[swift-users] reading keyboard input from xcode playgroud

2016-09-18 Thread Mr Bee via swift-users
Hi all, Another question. I used to use this snippet to read keyboard input from XCode's Playground. And it used to work very well. Today, I just updated my XCode to v.8 and Swift v.3. After a little bit modification here and there due to Swift 3 incompatibility, I got this code compiled

[swift-users] Bls: Bls: Re: Swift to Javascript

2016-06-22 Thread Mr Bee via swift-users
16, at 9:44 PM, Mr Bee via swift-users <swift-users@swift.org> wrote: Hi all,  I wish I will be able write web app using Swift instead of JavaScript. It would be wonderfull if we could develop desktop app, mobile app, server-side app, and  web app, all using Swift. It will be complete. Is

[swift-users] Bls: Re: Swift to Javascript

2016-06-22 Thread Mr Bee via swift-users
nguage! Here's a good starting point:  https://kripken.github.io/emscripten-site/index.html Best,Austin On Jun 21, 2016, at 9:44 PM, Mr Bee via swift-users <swift-users@swift.org> wrote: Hi all,  I wish I will be able write web app using Swift instead of JavaScript. It would be wonderfull

[swift-users] Swift to Javascript

2016-06-21 Thread Mr Bee via swift-users
Hi all,  I wish I will be able write web app using Swift instead of JavaScript. It would be wonderfull if we could develop desktop app, mobile app, server-side app, and  web app, all using Swift. It will be complete. Is it possible that someday in the future we would be able to compile Swift