Re: [swift-users] Emacs swift completion support using sourcekit...

2015-12-09 Thread Mish Awadah via swift-users
Is this project keeping up to date with OSS Swift? For Linux, step 1 is to get SourceKit working on Linux. - mish > On Dec 9, 2015, at 4:37 PM, Perry E. Metzger via swift-users > wrote: > > For those working on Linux, this might be a good option, especially > if more hands pitch in: > > htt

Re: [swift-users] Emacs swift completion support using sourcekit...

2015-12-09 Thread Jacob Bandes-Storch via swift-users
Looks very nice. Has anyone started working on a TextMate or Sublime bundle to do this? Jacob On Wed, Dec 9, 2015 at 4:37 PM, Perry E. Metzger via swift-users < swift-users@swift.org> wrote: > For those working on Linux, this might be a good option, especially > if more hands pitch in: > > https

Re: [swift-users] Binding Regular C Functions (Gtk, Cairo, etc.)

2015-12-09 Thread Max Howell via swift-users
Look at the .so file, you put the name without the lib prefix and without the .so suffix. > So if the name of the library is libcairo amd to imstall I had to type "sudo > apt-get install libcairo2-dev, what would I put for "link:?" ___ swift-users mai

Re: [swift-users] Webview with progress indicator issue

2015-12-09 Thread Brent Royal-Gordon via swift-users
> The progress indicator has no animation & the Facebook app uses Adobe so when > I test my app the game won’t load. This is more a Cocoa question than a Swift question, but as far as the progress indicator is concerned, I would check that the appropriate delegate outlet (I think there are thr

[swift-users] Webview with progress indicator issue

2015-12-09 Thread Kevin Nye via swift-users
The progress indicator has no animation & the Facebook app uses Adobe so when I test my app the game won’t load. Here’s my code: import Cocoa import WebKit class ViewController: NSViewController { @IBOutlet weak var webView: WebView! @IBOutlet weak var progressIndicator: NSProgre

Re: [swift-users] Improving a simple C binding

2015-12-09 Thread Max Howell via swift-users
> > Another option would seem to be modelling the daylights out of build > > environments but I think this runs afoul of enumerations. Right now we have > > `os(Linux)` but we'd really need `os(Ubuntu)`, `os(RedHat)` and so forth to > > handle dependencies like these. And if people are working o

Re: [swift-users] CleanroomLogger, a pure Swift logging engine

2015-12-09 Thread Gage Morgan via swift-users
Please port it. The PM is a bit buggy right now. It's difficult enough when the thing spits errors, but even worse when you don't really have a way to trace what you did. I'd attempt to use it. Sent from Outlook Mobile On Wed, Dec 9, 2015 at 12:56 PM -0800, "Max Howell via swift-users" wro

Re: [swift-users] CleanroomLogger, a pure Swift logging engine

2015-12-09 Thread Max Howell via swift-users
Very exciting. Glad to see such projects emerge. I hope that you’ll accept patches to make it cross-platform! And to include swift package manager support. > On Dec 9, 2015, at 12:53 PM, Evan Maloney via swift-users > wrote: > > Over on some of the other Swift mailing lists, people have been

[swift-users] CleanroomLogger, a pure Swift logging engine

2015-12-09 Thread Evan Maloney via swift-users
Over on some of the other Swift mailing lists, people have been asking about Swift logging engines; since this list seems to be the right place to discuss them, I hope you'll indulge me in letting you know about CleanroomLogger, a real logging engine written in pure Swift: https://github.com/em

Re: [swift-users] Improving a simple C binding

2015-12-09 Thread Jason Dusek via swift-users
On Wed, 9 Dec 2015 at 12:38 Max Howell max.how...@apple.com wrote: > Another option would seem to be modelling the daylights out of build > environments but I think this runs afoul of enumerations. Right now we have > `os(Linux)` but we'd really need `os(Ubuntu

Re: [swift-users] Question

2015-12-09 Thread Laurent Michel via swift-users
Ah. Good to know. Thanks David. — Laurent > On Dec 9, 2015, at 3:19 PM, David Owens II wrote: > > No, there currently is no support in the tools to plan for arbitrary ObjC > code to run on various platforms. > > More info here: https://swift.org/about/#platform-support >

Re: [swift-users] Improving a simple C binding

2015-12-09 Thread Max Howell via swift-users
> In the case of `libpq`, even something obvious like `/usr -> /usr/local` > wouldn't work because on Ubuntu it ends up in `/usr/include/postgres`. Yes, I consider this quite a nasty issue that I’d like solve asap. > Since we can't have macros in the module map, I think option (2) -- platform >

[swift-users] Question

2015-12-09 Thread Laurent Michel via swift-users
Good afternoon, I’m developing on MacOSX and I have a large code base in Objective-C. One of the attractive strength of Swift is its ability to seamlessly integrate with Objective-C. In my case, the dependencies on the Foundation library is minimal (NSObject, NSArray,…) but I have a lot of Obje

Re: [swift-users] Improving a simple C binding

2015-12-09 Thread Jason Dusek via swift-users
In the case of `libpq`, even something obvious like `/usr -> /usr/local` wouldn't work because on Ubuntu it ends up in `/usr/include/postgres`. Since we can't have macros in the module map, I think option (2) -- platform module maps -- would be a great combination of hygiene and flexibility (if te

Re: [swift-users] Build doesn't find ioctl.h

2015-12-09 Thread Lane Schwartz via swift-users
Never mind. I didn't have the right remote branch (the one with the fix) checked out. On Wed, Dec 9, 2015 at 12:56 PM, Lane Schwartz wrote: > Thanks. I'd like to test this fix on Scientific Linux 7.1, but I'm having > trouble applying the patch. I replaced stdlib/public/Glibc/CMakeLists.txt > wi

Re: [swift-users] Binding Regular C Functions (Gtk, Cairo, etc.)

2015-12-09 Thread Max Howell via swift-users
> Gage, > > For what it's worth, after running `git init` and `git tag -f 1.0.0` > in `CCairo` to get something importable, I run into this error: > > :; swift build > Cloning Packages/CCairo > :0: error: no such file or directory: > '/Users/solidsnack/Downloads/Sources/example/Packages/CCairo/P

Re: [swift-users] Build doesn't find ioctl.h

2015-12-09 Thread Lane Schwartz via swift-users
Thanks. I'd like to test this fix on Scientific Linux 7.1, but I'm having trouble applying the patch. I replaced stdlib/public/Glibc/CMakeLists.txt with the version from this commit, and likewise removed stdlib/public/Glibc/module.map and added the stdlib/public/Glibc/ module.map.in from this commi

Re: [swift-users] Improving a simple C binding

2015-12-09 Thread Max Howell via swift-users
> Behold, a binding for libpq: > > https://github.com/solidsnack/CLibPQ > > And a little app that uses it: > > https://github.com/solidsnack/PGVersion > > CLibPQ is put together in the simplest way: there's a module.modulemap > at the root and that's it. I would like to make some changes to t

Re: [swift-users] Pure Swift, cross platform way to open, read/write files?

2015-12-09 Thread Max Howell via swift-users
I feel I must point the community at: https://github.com/apple/swift-package-manager/tree/master/Sources/POSIX Which is mostly what I think you are calling the lower layer. >>> A lower layer is also needed -- simple Swifty wrappers for the >>> Unix system calls so that Swift implementations can

Re: [swift-users] Pure Swift, cross platform way to open, read/write files?

2015-12-09 Thread Perry E. Metzger via swift-users
On Wed, 9 Dec 2015 09:36:01 -0800 Jens Alfke wrote: > > A lower layer is also needed -- simple Swifty wrappers for the > > Unix system calls so that Swift implementations can get at them > > without having to use unsafe constructs. open(2), read(2), > > write(2), lseek(2) and close(2) would provid

Re: [swift-users] Pure Swift, cross platform way to open, read/write files?

2015-12-09 Thread Jens Alfke via swift-users
> On Dec 9, 2015, at 6:40 AM, Perry E. Metzger via swift-users > wrote: > > This will also require a bit of design to look "Swifty”. Yes, amen. The thought of a Swift bridge to the standard C library gives me queasy thoughts of PHP, whose core APIs are a horrible pidgin translation of C. An

[swift-users] Greeting

2015-12-09 Thread 陈立红 via swift-users
Hi everyone, My name is Lihong Chen. I come from. China and now working in Japan. I'm new to swift. But I found it very interesting to develop in swift. Thanks advanced. Chen ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/m

Re: [swift-users] iOS apps on Ubuntu

2015-12-09 Thread Kostiantyn Koval via swift-users
Hi, I think it's not. Developing iOS app requires Xcode (for signing and etc). The Xcode is very complex and it's only available on Mac OS Kostiantyn > On 09 Dec 2015, at 14:34, Piero Sabino via swift-users > wrote: > > Is it possible develop apps iOS on Ubuntu 14.04 LTS? > > Inviato da iPh

Re: [swift-users] Binding Regular C Functions (Gtk, Cairo, etc.)

2015-12-09 Thread Gage Morgan via swift-users
Jason,The Link: part of the module.modulemap seems to look for libcairo.so but then outputs the errors shown previously. Instead of CCAiro not found, it becomes "couldn't link library" though the absolute path exists. Cheers,--MGage-- Sent from Outlook Mobile On Tue, Dec 8, 2015 at 8:08 PM -0

Re: [swift-users] Binding Regular C Functions (Gtk, Cairo, etc.)

2015-12-09 Thread Gage Morgan via swift-users
I followed whatever procedure had been posted on the System Modules page on the Package Manager repo at GitHub. So yes, and I tried about 3 times :-) Sent from Outlook Mobile On Tue, Dec 8, 2015 at 9:24 PM -0800, "Harlan Haskins" wrote: Just covering all the bases here: did you commit

[swift-users] Improving a simple C binding

2015-12-09 Thread Jason Dusek via swift-users
Behold, a binding for libpq: https://github.com/solidsnack/CLibPQ And a little app that uses it: https://github.com/solidsnack/PGVersion CLibPQ is put together in the simplest way: there's a module.modulemap at the root and that's it. I would like to make some changes to the module hierarch