<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>That was what I was looking for. Just one more question: For any project, how is a C to Swift function binding created? I'd like to know how to import C functions to Swift. Once I can do this successfully, I'll be all set. <br>
<br>
<div class="acompli_signature">Sent from <a href="http://aka.ms/Ox5hz3">Outlook</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Sun, Dec 6, 2015 at 10:39 PM -0800, "Todd Fiala" <span dir="ltr">
<<a href="mailto:todd.fiala@gmail.com" target="_blank">todd.fiala@gmail.com</a>></span> wrote:<br>
<br>
</div>
<div>
<div dir="ltr">Hi Gage,
<div><br>
</div>
<div>The REPL does let you import Swift modules. If you wanted to make or find a GTK binding, load it into the REPL, and drive that via the REPL, you certainly could do that. Using the REPL to do this would allow you to explore the binding at runtime, as
many REPL-based languages afford. Is that the kind of thing you're after?</div>
<div><br>
</div>
<div>The last comment makes me think you may be asking more about a graphical REPL, though. Xcode has Playgrounds, but that doesn't exist in Open Source Swift. I don't see what would stop somebody from trying to write something similar against GTK or any
other GUI library.</div>
<div><br>
</div>
<div>Hope that helps!</div>
<div><br>
</div>
<div>-Todd</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Sun, Dec 6, 2015 at 6:12 PM, Gage Morgan <span dir="ltr">
<<a href="mailto:gagemorgan@outlook.com" target="_blank">gagemorgan@outlook.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div style="padding-left:20px; padding-right:20px; padding-bottom:8px"><span class="">
<div>> The Swift-specific parts (i.e. any files not in the <a dir="ltr" href="http://llvm.org" target="_blank">
llvm.org</a> LLDB source base) are > available according to the license as specified at
<a dir="ltr" href="http://swift.org" target="_blank">swift.org</a>. I would direct you to > those licenses to see if they are compatible with your desired usage.</div>
<div><br>
</div>
</span>
<div>Let me rephrase that, I think that was a response to asking what Apple says you can or cannot do with REPL. I meant "Has Apple stated possible uses for REPL other than from the CLI-only interface?" </div>
<div><br>
</div>
<div>I'm looking to develop GUIs with it, but am unsure how. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>--MGage--<br>
<br>
<div>Sent from <a href="http://aka.ms/Ox5hz3" target="_blank">Outlook</a></div>
<br>
</div>
</div>
<div class="x_gmail_quote">_____________________________<br>
From: Todd Fiala via swift-lldb-dev <<a dir="ltr" href="mailto:swift-lldb-dev@swift.org" target="_blank">swift-lldb-dev@swift.org</a>><br>
Sent: Saturday, December 5, 2015 7:33 PM<br>
Subject: [swift-lldb-dev] REPL questions<br>
To: <<a dir="ltr" href="mailto:swift-lldb-dev@swift.org" target="_blank">swift-lldb-dev@swift.org</a>>
<div>
<div class="x_h5"><br>
<br>
<br>
<div dir="ltr">Hi all,
<div><br>
</div>
<div>Thanks for the questions on the REPL. </div>
<div><br>
</div>
<div>With respect to incorporating a REPL into another program, the text-based Swift REPL is available in and implemented via LLDB. As Swift LLDB is implemented on top of LLDB, there are two projects involved with regards to the source. The source code for
the core of LLDB (as available via <a href="http://llvm.org" target="_blank">llvm.org</a>) is available according to the terms of the license as spelled out at
<a href="http://llvm.org" target="_blank">llvm.org</a>. The Swift-specific parts (i.e. any files not in the
<a href="http://llvm.org" target="_blank">llvm.org</a> LLDB source base) are available according to the license as specified at
<a href="http://swift.org" target="_blank">swift.org</a>. I would direct you to those licenses to see if they are compatible with your desired usage.
</div>
<div><br>
</div>
<div>There are at least a few apps that incorporate LLDB into their IDEs, either via the SB API (the LLDB C++-based API), via the GDB Remote protocol, and via the GDB mi protocol (via lldb-mi). It is definitely possible to go the route of setting up an app
that communicates with LLDB to get a REPL experience that way. </div>
<div><br>
</div>
<div>I'll be able to comment more directly on questions this upcoming week. </div>
<div>
<div>-- <br>
</div>
<div>
<div dir="ltr">-Todd </div>
</div>
</div>
</div>
</div>
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2FcgwiRAxmHDdptrhrsAJKMBtNqQpWV-2BwUfjpvH9AIaqKDym4bNZWV8AlVzAY0KVeP7JVRawKxpm5K8SPrcpEgaqT7TbfmYf-2B1cIhgr5q1Q-2F2XDo1neL1LFTFi5rb9xwH78d3vUcRJPICxu8D5xKcnlcIJeEVA-2F7x52CRoDuEXE7EoM1PRGh3aGlFUQ72UZTvrX4TS8-2BtsE-2BIHyN9N6v0w6zKWQJStxPQqDMoeB6nW2g-3D" alt="" width="1" height="1" border="0" style="min-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">
<br>
<br>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_gmail_signature">
<div dir="ltr">-Todd</div>
</div>
</div>
</div>
</body>
</html>