<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">There is libxpc from NextBSD:<div class=""><br class=""></div><div class=""><a href="https://github.com/NextBSD/libxpc" class="">https://github.com/NextBSD/libxpc</a></div><div class=""><br class=""></div><div class="">You’d still need to implement Mach IPC on top of something though.</div><div class=""><br class=""></div><div class="">— Luke</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 10 May 2016, at 12:35 PM, Brian Gesiak via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thanks for the feedback, everyone!<br class=""><br class="">Porting SourceKit to Linux seems like a reasonable solution to me. Still, there are 354 lines of code in tools/SourceKit that reference "XPC", so a Linux port will take more than a few lines of source code changes.<div class=""><br class=""></div><div class="">I imagine we'll need to insert some sort of shim layer that will use libxpc on OS X, and a hand-rolled solution for Linux. Alternatively, if anyone knows of a good open-source library that implements IPC for Linux (and that has a permissible license), that would be a great help here.<div class=""><br class="">I've also seen the idea proposed that Apple could open-source libxpc, which we could then port to Linux. This would involve less work than installing a shim layer in SourceKit, then in addition implementing a Linux IPC library behind the shim. I don't know who I could talk about making this happen, but in any case, I filed a Radar:</div><div class=""><br class=""></div><div class=""><div class=""><span style="font-size:12.8px" class="">* <a href="rdar://26187442" class="">rdar://26187442</a></span></div><div class=""><span style="font-size:12.8px" class="">* <a href="https://openradar.appspot.com/26187442" class="">https://openradar.appspot.com/26187442</a></span></div><br class="">> <span style="font-size:12.8px" class="">2. Somehwat unrelated, but the compiler itself (`swiftc`) is not yet written in </span><span style="font-size:12.8px" class="">a way that it can be used from SourceKit.</span><span style="font-size:12.8px" class=""><br class=""></span><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">Could you explain this further?</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">- Brian Gesiak</span></div></div></div></div></div></blockquote></div><br class=""></div></body></html>