[swift-dev] Swift path

2015-12-08 Thread Piero Sabino via swift-dev
I must type the following line in .bashrc /Home/Downloads/swift/usr/bin/swift Inviato da iPhone Piero Sabino ___ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev

[swift-dev] Trying to work out how default parameters work

2015-12-08 Thread Brent Royal-Gordon via swift-dev
My first question is simply this: is this the best place for the sort of question I’m about to ask? Is there an IRC channel or Slack or something where people who are working with Swift’s compiler internals are hanging out? Are people on Twitter (hi, Joe Groff!) going to mind if I pester them wi

[swift-dev] Swift Path

2015-12-08 Thread Piero Sabino via swift-dev
So the path saved in my .bashrc is wrong. What would be the correct one? ___ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev

Re: [swift-dev] Starter project: Initializers for converting UnsafePointers to integers

2015-12-08 Thread Michael Buckley via swift-dev
I'm looking for a good starter project, so normally I would be interested in taking this, but I'm not sure I can think of a good motivation for it. UnsafePointer's advanceBy and distanceTo functions take care of pointer arithmetic more safely than converting to int would, and the debugDescription p

Re: [swift-dev] Starter project: Initializers for converting UnsafePointers to integers

2015-12-08 Thread Stephen Canon via swift-dev
When writing high-performance code, it is fairly common to check the alignment of pointers so that initial elements can be processed until some suitable alignment is reached to use a faster implementation, or to verify that a fast algorithm can be used. > On Dec 8, 2015, at 10:59 AM, Michael Bu

Re: [swift-dev] Starter project: Initializers for converting UnsafePointers to integers

2015-12-08 Thread Michael Buckley via swift-dev
Checking alignment good use case, which I did not consider. Not to turn this into a swift-evolution topic, but couldn't this use case be covered by adding functions to UnsafePointer? I'm thinking something like this. func distanceToBoundary(_ boundary: Int) -> Distance { return Builtin.ptrtoin

[swift-dev] Starter Project

2015-12-08 Thread Sergey Bolshedvorsky via swift-dev
Hi everyone, I’m looking for a starter project on swift. Something what would be useful and what would allow me to dive into the code. I could take one of the JIRA tickets. Do not want to fix typos. :) Sergey ___ swift-dev mailing list swift-dev@swi

Re: [swift-dev] Starter Project

2015-12-08 Thread Meador Inge via swift-dev
On Tue, Dec 8, 2015 at 1:03 PM, Sergey Bolshedvorsky via swift-dev < swift-dev@swift.org> wrote: Hi everyone, > > I’m looking for a starter project on swift. Something what would be useful > and what would allow me to dive into the code. I could take one of the JIRA > tickets. Do not want to fix t

Re: [swift-dev] Trying to work out how default parameters work

2015-12-08 Thread Joe Groff via swift-dev
> On Dec 8, 2015, at 2:43 AM, Brent Royal-Gordon via swift-dev > wrote: > > My first question is simply this: is this the best place for the sort of > question I’m about to ask? Is there an IRC channel or Slack or something > where people who are working with Swift’s compiler internals are ha

[swift-dev] Questions about _Reflectable and CustomReflectable

2015-12-08 Thread Austin Zheng via swift-dev
Hello devs, I have two questions about the _Reflectable and CustomReflectable protocols in the stdlib. (These are both in context of Jira ticket SR-88.) First, I notice that _Reflectable encompasses both CustomReflectable and CustomPlaygroundQuickLookable's functionality. It looks like there ar

Re: [swift-dev] Starter Project

2015-12-08 Thread Meador Inge via swift-dev
(CC'd back the list) On Tue, Dec 8, 2015 at 1:19 PM, Sergey Bolshedvorsky < ser...@bolshedvorsky.com> wrote: I could take this ticket: https://bugs.swift.org/browse/SR-125 > Go for it! I see where you already assigned it to yourself in JIRA. Have fun :-) Cheers, Meador __

Re: [swift-dev] Questions about _Reflectable and CustomReflectable

2015-12-08 Thread Joe Groff via swift-dev
> On Dec 8, 2015, at 11:44 AM, Austin Zheng via swift-dev > wrote: > > Hello devs, > > I have two questions about the _Reflectable and CustomReflectable protocols > in the stdlib. (These are both in context of Jira ticket SR-88.) > > First, I notice that _Reflectable encompasses both CustomR

[swift-dev] Starter project: 'swift-format' tool: Move the swift indentation mechanism from SourceKit to libIDE and utilize it for a command-line tool

2015-12-08 Thread Argyrios Kyrtzidis via swift-dev
Hi all, If someone is looking for a starter project in our tooling support area, here’s one you can dig your teeth into: SourceKit contains indentation logic that is not exposed in the libIDE library; this is not desirable, primarily because SourceKit is not cross-platform. Here are some steps

Re: [swift-dev] Build error on OS X.

2015-12-08 Thread Jordan Rose via swift-dev
If you get the chance, please do file a bug at bugs.swift.org about this. Spaces in paths should not cause problems in 2015! Jordan > On Dec 7, 2015, at 17:01, Alexandros Salazar via swift-dev > wrote: > > Ah. Silly me. Thank you. > > On Mon, Dec 7, 2015 at 7:07 PM,

Re: [swift-dev] Starter project: Initializers for converting UnsafePointers to integers

2015-12-08 Thread Jordan Rose via swift-dev
The one I can think of is "sometimes a C API only lets you pass data as an Int (intptr_t) or as an UnsafeMutablePointer (void *), and you have the other kind of data". That said, it does seem to be sort of a niche use case. Jordan > On Dec 8, 2015, at 7:59, Michael Buckley via swift-dev > wro

Re: [swift-dev] Optionals in swift-clang

2015-12-08 Thread Jordan Rose via swift-dev
Hi, Seth. I think you're getting Clang / swift-clang mixed up with swiftc / swift. Clang is not the Swift compiler; the Swift compiler lives in the "swift" repo. Swift depends on Clang for its interoperation with C and Objective-C. A lot of the compiler encodes information about Optional, but mo

Re: [swift-dev] Starter project: Initializers for converting UnsafePointers to integers

2015-12-08 Thread Michael Buckley via swift-dev
Yeah, that makes sense. If your C API requires an intptr_t, you can't solve that problem by adding more functions to UnsafePointer. I'll go ahead and start a discussion over on swift-evolution. Thanks! On Tue, Dec 8, 2015 at 3:07 PM, Jordan Rose wrote: > The one I can think of is "sometimes a C

[swift-dev] Inconsistent trapping for Bit

2015-12-08 Thread Patrick Pijnappel via swift-dev
Swift.Bit traps for Bit.One.successor(), but not for Bit.One.advancedBy(1). The documentation suggest they should be equivalent. ___ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev

[swift-dev] Proof-of-concept port of Swift for Android

2015-12-08 Thread Zhuowei Z via swift-dev
Hello, I'm currently working on adding support to the Swift compiler to allow it to target Android. Currently I've managed to get the stdlib to compile after hacking around/disabling a bunch of stuff (the custom linker script, the dl_iterate_phdr stuff, and the posix_spawn support), and managed

Re: [swift-dev] [SR-40] Port Swift to Arm progress / question

2015-12-08 Thread Dmitri Gribenko via swift-dev
Hi William, On Tue, Dec 8, 2015 at 8:00 PM, William Dillon via swift-dev < swift-dev@swift.org> wrote: > Hi all, > > I’ve been working on trying to get Swift to compile on ARMv7 (armv7l > specifically, not sure if other variants will work as well). I’ve gotten > pretty far, but I ran a cross an

Re: [swift-dev] Proof-of-concept port of Swift for Android

2015-12-08 Thread Chris Lattner via swift-dev
On Dec 8, 2015, at 8:50 PM, Zhuowei Z via swift-dev wrote: > I'm currently working on adding support to the Swift compiler to allow it to > target Android. Cool. Responding to one specific issue: > - What's the role of the special linker script, and what's the purpose of the > conformance tab

Re: [swift-dev] Starter project: Convert release notes into something useful

2015-12-08 Thread Chris Lattner via swift-dev
> On Dec 7, 2015, at 4:21 PM, joe via swift-dev wrote: > > Nm my question about the duplicated content, I just noticed after starting to > look into this that some of the notes in the Xcode release notes are the same > as in the CHANGELOG. I'll get started on adding the missing content. Sound