[swift-users] An OpenGL math library in pure Swift

2016-01-04 Thread David Turnbull via swift-users
I've been working on a math library for SwiftGL. It's looking good. Vector2, Vector3, Vector4, Matrix2x2, Matrix3x3, Matrix4x4 are implemented with all arithmetic. You can even swizzle just like GLSL. var myVec = vec4(1, 2, 3, 4) myVec.ab = vec2(99, 98) print(myVec) //=> (1, 2, 98, 99) There's

Re: [swift-users] 答复: build-script was completed, how to install the binary file to /usr folder?

2016-01-04 Thread Ryan Lovelett via swift-users
In my estimation this is the easiest way: build-script --preset=buildbot_linux_1404 installable_package=/tmp/swift.tar.gz install_destdir=/tmp It will cause it to rebuild but you should have a roper tar at the end. On Mon, Jan 4, 2016, at 08:09 PM, Quan Yong Zhai wrote: > Hi, Ryan > Thanks for y

[swift-users] 答复: build-script was completed, how to install the binary file to /usr folder?

2016-01-04 Thread Quan Yong Zhai via swift-users
Hi, Ryan Thanks for your input My OS is Ubuntu linux 14.04, I follow the procedures in github/apple/swift ,cloned all the source file, and build the whole Projects with: cd swift utils/build-script -R -b -p -l --foundation --xctest The build-script was completed, But I don't know how to install t

Re: [swift-users] Failed to resolve REPL breakpoint

2016-01-04 Thread Ryan Lovelett via swift-users
For future reference I figured out what was causing this. The Arch Linux `makepkg` command was calling strip [1] by default. This was obviously stripping out some things that was necessary for build. The fix was obviously to tell the packager to skip calling strip [2]. [1] http://linux.die.net/ma

Re: [swift-users] build-script was completed, how to install the binary file to /usr folder?

2016-01-04 Thread Ryan Lovelett via swift-users
Can you provide a little bit more context? Operating system...command you ran...etc... On Fri, Jan 1, 2016, at 03:15 AM, Quan Yong Zhai via swift-users wrote: > Hi, > The build-script was completed , how do I install the binary file to > /usr folder? > > Thanks in advance > > > > ___

Re: [swift-users] Newbie Question

2016-01-04 Thread Brent Royal-Gordon via swift-users
> I am trying to do something super simple using Swift - we are changing our > infrastructure and the new environment requires me to work with Swift. > Needless to say, I am a complete newbie and a bit lost on where to go first / > start. > > The scenario is this: we take a backup of our db eve

[swift-users] TWISt-shout newletter 2016-01-04

2016-01-04 Thread Kenny Leung via swift-dev via swift-users
Hi All. Let’s kick off 2016 with the first This Week In Swift newsletter. You can find it here: https://github.com/pepperdog/TWISt-shout/blob/master/2016/TWISt-shout-2016-01-04.md Any comments, suggestions, updates, or omissions are greatly appreciated. -Kenny P.S. In the future, this announc

Re: [swift-users] In pursuit to a more idiomatic Swift

2016-01-04 Thread Erica Sadun via swift-users
Funny you should ask: Migrating `if`s to `guard`s in Swift https://medium.com/swift-programming/why-swift-guard-should-be-avoided-484cfc2603c5

Re: [swift-users] Need to provide compiler switch

2016-01-04 Thread Volodymyr Boichentsov via swift-users
I got work around with including some header to module map. example here COpenGL.swift and here CX11.swift in documentation found config_macros on clang/llvm w

Re: [swift-users] In pursuit to a more idiomatic Swift

2016-01-04 Thread Adriano Ferreira via swift-users
Hi everyone! Jus wondering what is more idiomatic in Swift? guard !array.isEmpty else { return false } or if array.isEmpty { return false } What about when it comes to indentation style? if array.isEmpty { return false } Or is there an exception of simple one-liners? Is it still

Re: [swift-users] Swift Package Manager: Linker Flags

2016-01-04 Thread Daniel Dunbar via swift-users
You can't do this via the package manager, but you can include "link" declarations in the module map itself which specify additional linker arguments to plumb through when that module is used. See: http://clang.llvm.org/docs/Modules.html#link-declaration Here is a concrete example, which is ho

Re: [swift-users] How to define interdependent modules in a package?

2016-01-04 Thread Daniel Dunbar via swift-users
> On Dec 27, 2015, at 10:15 PM, Tarun Joshi wrote: > >> We don't yet have anyone actively working on this feature, though... > > If its not pretty complex and you think a beginner like me can > implement it, I'd be happy to help. Some pointers would be helpful :) It's pretty complex. :) We ne

Re: [swift-users] Need to provide compiler switch

2016-01-04 Thread Daniel Dunbar via swift-users
This isn't something we support yet. Can you elaborate on the exact situation? Are you trying to use a system module and need to set some compiler define? - Daniel > On Dec 30, 2015, at 4:13 AM, Ralph Ganszky via swift-users > wrote: > > Hi, > > I try to get some Swift code running, whic

[swift-users] Newbie Question

2016-01-04 Thread Sherri McGurnaghan via swift-users
Hi there Happy New Year to everyone! I am trying to do something super simple using Swift - we are changing our infrastructure and the new environment requires me to work with Swift. Needless to say, I am a complete newbie and a bit lost on where to go first / start. The scenario is this: we t

[swift-users] Swift Package Manager: Linker Flags

2016-01-04 Thread Ilija Tovilo via swift-users
Happy new year everyone!  I’m writing a wrapper around the LLVM-C API for Swift and thought it’d be fun to use the Swift Package Manager. So I created a repository for the module.modulemap that includes the relevant .h files (as instructed in Documentation/SystemModules.md in the GitHub reposi