Re: [swift-dev] The Swift Programming Language Translations

2015-12-16 Thread Rogelio Gudino via swift-dev
Don’t mind at all! However, I did decide to go with a different strategy. What I’ll try to do now is extract the content (mostly HTML) out of the English ePub, do translation work directly on it, and finally re-package the content into an ePub (generate-epub.sh). The benefits of this approach: 1

[swift-dev] recommended Chinese version of the Swift featured projects list

2015-12-16 Thread 范永国 via swift-dev
Hi guys, We have a Chinese version of the Swift featured open source projects list, they all come from GitHub open source community, this list is located on GitHub:ipader/SwiftGuide (6900+ stars, 1865 forks and 1016 watch) and links to https://github.com/ipader/SwiftGuide/blob/master/Featured.

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Jordan Rose via swift-dev
> On Dec 16, 2015, at 0:12 , Dave Abrahams via swift-dev > wrote: > >> Yeah but we want to move in the direction of making that more reliable, not >> less. > > I am not sure I agree with you. I would defer to John McCall on this one, > but my understanding is that it's an explicit non-goal

Re: [swift-dev] The Swift Programming Language Translations

2015-12-16 Thread Vinicius Vendramini via swift-dev
Sounds like a great approach. In any case, I guess the important part is actually writing the translation - the resulting format is only relevant once there is actual text to use with it. I’m creating a repo for a Portuguese (Brazil) translation: https://github.com/vinivendra/the-swift-programm

Re: [swift-dev] The Swift Programming Language Translations

2015-12-16 Thread Rogelio Gudino via swift-dev
I just started to look into this myself since I’m interested in doing the Spanish translation. The first approach I’ll be trying is doing everything in Markdown and compile it to ePub using Pandoc. Based on this article http://nshipster.com/colophon/ , Pandoc may be a bit painful to use, but I’m o

[swift-dev] The Swift Programming Language Translations

2015-12-16 Thread Vinicius Vendramini via swift-dev
I just saw a tweet from Chris Lattner talking about translating the Swift Programming Language ebook. This is a project I’d be very interested in; however, I don’t really know where to start. Is there some kind of git repository, containing the original book, that I can clone? If not, does some

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

2015-12-16 Thread Dmitri Gribenko via swift-dev
On Wed, Dec 16, 2015 at 11:55 AM, William Dillon wrote: > Hi all, > > I think that I’ve found the culprit with linking errors on ARMv7-linux. I > was looking at the changes between the SwiftAndroid port, and I noticed an > extra flag they added in the AddSwift cmake module: -Wl,-Bsymbolic. I a

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Joe Groff via swift-dev
> On Dec 16, 2015, at 11:59 AM, Kevin Ballard wrote: > > On Wed, Dec 16, 2015, at 11:49 AM, Joe Groff wrote: >> >>> On Dec 16, 2015, at 11:47 AM, Kevin Ballard >> > wrote: >>> >>> On Wed, Dec 16, 2015, at 11:42 AM, Joe Groff wrote: > On Dec 16, 2015, at 11:24

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Kevin Ballard via swift-dev
On Wed, Dec 16, 2015, at 11:49 AM, Joe Groff wrote: > >> On Dec 16, 2015, at 11:47 AM, Kevin Ballard wrote: >> >> On Wed, Dec 16, 2015, at 11:42 AM, Joe Groff wrote: >>> On Dec 16, 2015, at 11:24 AM, Kevin Ballard via swift-dev >>> d...@swift.org> wrote: On Wed, Dec 16, 2015, at 12:

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

2015-12-16 Thread William Dillon via swift-dev
Hi all, I think that I’ve found the culprit with linking errors on ARMv7-linux. I was looking at the changes between the SwiftAndroid port, and I noticed an extra flag they added in the AddSwift cmake module: -Wl,-Bsymbolic. I added that to my copy of the module, and re-built swift. I’m now

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Joe Groff via swift-dev
> On Dec 16, 2015, at 11:47 AM, Kevin Ballard wrote: > > On Wed, Dec 16, 2015, at 11:42 AM, Joe Groff wrote: >> >>> On Dec 16, 2015, at 11:24 AM, Kevin Ballard via swift-dev >>> wrote: >>> >>> On Wed, Dec 16, 2015, at 12:12 AM, Dave Abrahams wrote: > Come to think of it, what's the

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Kevin Ballard via swift-dev
On Wed, Dec 16, 2015, at 11:42 AM, Joe Groff wrote: > > > On Dec 16, 2015, at 11:24 AM, Kevin Ballard via swift-dev > > wrote: > > > > On Wed, Dec 16, 2015, at 12:12 AM, Dave Abrahams wrote: > >> > >>> Come to think of it, what's the actual use-case for withUnsafePointer()? > >> > >> I'm not

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Joe Groff via swift-dev
> On Dec 16, 2015, at 10:34 AM, John McCall via swift-dev > wrote: > >> On Dec 16, 2015, at 12:12 AM, Dave Abrahams via swift-dev >> wrote: >>> On Dec 15, 2015, at 11:51 PM, Kevin Ballard wrote: >>> On Tue, Dec 15, 2015, at 11:25 PM, Dave Abrahams wrote: > On Dec 15, 2015, at 6:46

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Joe Groff via swift-dev
> On Dec 15, 2015, at 6:39 PM, Dave Abrahams via swift-dev > wrote: > > >> On Dec 15, 2015, at 6:33 PM, Kevin Ballard via swift-dev >> wrote: >> >> On Tue, Dec 15, 2015, at 03:03 PM, Joe Groff via swift-dev wrote: >>> >>> Yeah, it seems to me like a reasonable refinement for 'withUnsafePoi

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Joe Groff via swift-dev
> On Dec 15, 2015, at 6:33 PM, Kevin Ballard via swift-dev > wrote: > > On Tue, Dec 15, 2015, at 03:03 PM, Joe Groff via swift-dev wrote: >> >> Yeah, it seems to me like a reasonable refinement for 'withUnsafePointer' to >> take an immutable parameter. Since this is a stdlib API change, you s

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Joe Groff via swift-dev
> On Dec 16, 2015, at 11:24 AM, Kevin Ballard via swift-dev > wrote: > > On Wed, Dec 16, 2015, at 12:12 AM, Dave Abrahams wrote: >> >>> Come to think of it, what's the actual use-case for withUnsafePointer()? >> >> I'm not sure we still have one that isn't covered by &x; that's my point. >>

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-16 Thread Jordan Rose via swift-dev
> On Dec 16, 2015, at 11:21 , Davide Italiano wrote: > > On Wed, Dec 16, 2015 at 11:17 AM, Jordan Rose wrote: >> What's the compile command for the files that are failing? If the target >> triple there doesn't include a version number, it might be defaulting to >> something like "1.0". >> >>

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Kevin Ballard via swift-dev
On Wed, Dec 16, 2015, at 12:12 AM, Dave Abrahams wrote: > > > Come to think of it, what's the actual use-case for withUnsafePointer()? > > I'm not sure we still have one that isn't covered by &x; that's my point. > > > If a value is mutable, you can already use &x or > > withUnsafeMutablePointe

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-16 Thread Davide Italiano via swift-dev
On Wed, Dec 16, 2015 at 11:17 AM, Jordan Rose wrote: > What's the compile command for the files that are failing? If the target > triple there doesn't include a version number, it might be defaulting to > something like "1.0". > > Jordan > I see many of these, here's an example: http://people.f

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-16 Thread Jordan Rose via swift-dev
What's the compile command for the files that are failing? If the target triple there doesn't include a version number, it might be defaulting to something like "1.0". Jordan > On Dec 15, 2015, at 10:55 , Davide Italiano via swift-dev > wrote: > > Hi, > I'm in the process of porting Foundati

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread John McCall via swift-dev
> On Dec 16, 2015, at 12:12 AM, Dave Abrahams via swift-dev > wrote: >> On Dec 15, 2015, at 11:51 PM, Kevin Ballard wrote: >> On Tue, Dec 15, 2015, at 11:25 PM, Dave Abrahams wrote: >>> On Dec 15, 2015, at 6:46 PM, Kevin Ballard wrote: On Tue, Dec 15, 2015, at 06:39 PM, Dave Ab

Re: [swift-dev] [Starter Project] Teach SILParser how to parse switch_enum of undef.

2015-12-16 Thread Michael Gottesman via swift-dev
SGTM. If you want as you finish these, I have a list of them = ). I just filed another one: https://bugs.swift.org/browse/SR-247 Michael > On Dec 16, 2015, at 5:30 AM, Emanuel Zephir wrote: > > Unless anyone objects, I'd like to claim this. I've assigned

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Dave Abrahams via swift-dev
> On Dec 16, 2015, at 6:59 AM, Ryan Lovelett via swift-dev > wrote: > > On Wed, Dec 16, 2015, at 03:12 AM, Dave Abrahams via swift-dev wrote: >> >>> On Dec 15, 2015, at 11:51 PM, Kevin Ballard wrote: >>> >>> On Tue, Dec 15, 2015, at 11:25 PM, Dave Abrahams wrote: > On Dec 15, 2015,

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Ryan Lovelett via swift-dev
On Wed, Dec 16, 2015, at 03:12 AM, Dave Abrahams via swift-dev wrote: > > > On Dec 15, 2015, at 11:51 PM, Kevin Ballard wrote: > > > > On Tue, Dec 15, 2015, at 11:25 PM, Dave Abrahams wrote: > >> > >>> On Dec 15, 2015, at 6:46 PM, Kevin Ballard wrote: > >>> > >>> On Tue, Dec 15, 2015, at 06:3

[swift-dev] Swift on Ubuntu x86_32

2015-12-16 Thread Piero Sabino via swift-dev
___ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev

Re: [swift-dev] [Starter Project] Teach SILParser how to parse switch_enum of undef.

2015-12-16 Thread Emanuel Zephir via swift-dev
Unless anyone objects, I'd like to claim this. I've assigned issue SR-210 to myself. --Emanuel On Sun, Dec 13, 2015 at 1:29 PM, Michael Gottesman via swift-dev < swift-dev@swift.org> wrote: > This is a small starter project for those who are interested in working > with SIL. > > The SIL Parser c

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

2015-12-16 Thread Seth Friedman via swift-dev
Thanks Jordan! Another question if anyone has some time: I'm really interested in contributing to the project, but given that I don't have a ton of experience with compilers, I'm having a really hard time following the flow of the program. I understand that the high level flow is lexing, parsing,

Re: [swift-dev] This little program currently compiles fine, but should it?

2015-12-16 Thread Jens Persson via swift-dev
Filed: https://bugs.swift.org/browse/SR-245 On Tue, Dec 15, 2015 at 11:54 PM, Dave Abrahams wrote: > > On Dec 14, 2015, at 11:04 AM, Jens Persson via swift-dev < > swift-dev@swift.org> wrote: > > Yes, and I don't know if there is any particular reason why the == > operator for Int doesn't have @

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Kevin Ballard via swift-dev
On Tue, Dec 15, 2015, at 11:25 PM, Dave Abrahams wrote: > > > On Dec 15, 2015, at 6:46 PM, Kevin Ballard wrote: > > > > On Tue, Dec 15, 2015, at 06:39 PM, Dave Abrahams wrote: > >> > >>> On Dec 15, 2015, at 6:33 PM, Kevin Ballard via swift-dev > >>> wrote: > >>> > >>> On Tue, Dec 15, 2015, a

Re: [swift-dev] `withUnsafePointer` mutates `self`

2015-12-16 Thread Dave Abrahams via swift-dev
> On Dec 15, 2015, at 11:51 PM, Kevin Ballard wrote: > > On Tue, Dec 15, 2015, at 11:25 PM, Dave Abrahams wrote: >> >>> On Dec 15, 2015, at 6:46 PM, Kevin Ballard wrote: >>> >>> On Tue, Dec 15, 2015, at 06:39 PM, Dave Abrahams wrote: > On Dec 15, 2015, at 6:33 PM, Kevin Ballard via

Re: [swift-dev] Building Foundation on FreeBSD

2015-12-16 Thread Dmitri Gribenko via swift-dev
+Jordan for module issues. On Tue, Dec 15, 2015 at 10:55 AM, Davide Italiano via swift-dev wrote: > Hi, > I'm in the process of porting Foundation to FreeBSD (see > https://github.com/apple/swift-corelibs-foundation/pull/141). > After fixing a bunch of build/portability errors I'm now stuck tryin