<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span style="background-color: rgba(255, 255, 255, 0);">I also agree with Adrian. I would much prefer to see efforts put towards implementing a pure Swift foundation API than supporting a Cocoa implementation and bridge on every platform Swift will run on.</span></div><div><br>On 03 Dec 2015, at 21:01, Gregory Casamento &lt;<a href="mailto:greg.casamento@gmail.com">greg.casamento@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div>Way ahead of you<br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 3, 2015 at 15:01 Maxthon Chan &lt;<a href="mailto:xcvista@me.com">xcvista@me.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Swift developers:<br>
<br>
Maybe you have never heard of it, but there have been several ongoing efforts, like GNUstep and Cocotron, at maintaining an open source Foundation reimplementation for alternative operating systems like Linux. It seemed to me that the current release of Swift did not put such efforts into consideration and brutally broke compatibility between Swift and Objective-C on Linux. I understand the fact that Apple is unwilling to release source code of Foundation, and this is usually where those alternative implementations comes into play.<br>
<br>
Some of such projects, like GNUstep, are mature enough to allow existing AppKit applications written in Objective-C, like TextEdit and Chess, to be ported from OS X to Linux and Windows without changing too much, if any, code, taking all modern Objective-C features like ARC and object subscripting with stride, with a compatible version of LLVM compiler. Meanwhile, with the current version of Swift, even if the Swift code is written with calls to Objective-C runtime assuming the case on OS X, it is broken under Linux even with libobjc linked in.<br>
<br>
I am here suggesting keeping the Objective-C bridge intact at least when built with a compatible version of libobjc (and GNUstep project have one already.) This will allow users of such alternative Foundation reimplementations to use their favourite Foundation distribution in place of the version provided by the Swift project, retaining the code compatibility already established between OS X and Linux by those Swift reimplementations.<br>
<br>
In such an environment the alternative Foundation implementation will provide their own version of CoreFoundation and Foundation, implemented using C and Objective-C, as well as a libobjc that supports ARC. The Swift environment would be built without its own CoreFoundation and Foundation, but linking against the provided version instead, bridging calls just like OS X version of Swift does. This will also allow the new Swift platform to take full advantage of the AppKit came with the alternative Foundation, allow porting full OS X apps to Linux a lot easier. The above also applies for porting iOS apps, if the alternative Foundation implementation also comes with their own UIKit.<br>
<br>
Max_______________________________________________<br>
Gnustep-dev mailing list<br>
<a href="mailto:Gnustep-dev@gnu.org" target="_blank">Gnustep-dev@gnu.org</a><br>
<a href="https://lists.gnu.org/mailman/listinfo/gnustep-dev" rel="noreferrer" target="_blank">https://lists.gnu.org/mailman/listinfo/gnustep-dev</a><br>
</blockquote></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=nE9rxSXA5G4kxsTVkgv43hXwizS3O2z60WweqomIrdi-2BEaS-2BJ2hxIv0J8cZTjA888MVJbitNPlWmiV4DpafvCPkdNCYZZuiMLSFH-2BEI1UhJyOU25K7ouEjAkL0afNSWyhxmjTBR3tGr5vAVYTLtV2ZDM9Pr4ftquOBQNjJQvaLVqmtypEKjfyK1v9d-2BbHuIu9IpTAHfZbA5g-2BHjYw7kdm3ziQqm9XhFnljxXgN4ojig-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;">
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>