Swift for Linux tutorials

163 views
Skip to first unread message

Jon Hoffman

unread,
Feb 2, 2016, 6:44:04 PM2/2/16
to Swift Language
I wrote two tutorials to help developers get started with Swift for Linux and thought I would share them with this group.

In this first post we will look at several examples that will demonstrate how to write and build applications with the Swift port for Linux.  We will also create a shell scripts that we can use to create the directory structure and minimum files needed to use Swift’s package manager to build our applications.

Swift developers coming from Apple’s iOS and OS X environments are use to using the Cocoa and Cocoa Touch frameworks however these frameworks are not available in the Linux environment.  When we develop Linux applications and utilities with Swift we need to use the system libraries provided by the Linux environment.  In this post will look at how we can use these system libraries with our Swift code to build useful applications and utilities.  

In this post we will look at the Glibc module that Apple provides for us which includes the majority of the Linux Standard Library.  We will also look at how we could create our own modules to add additional system libraries not included in the Glibc module.  To demonstrate the concepts discussed we will conclude this post by building a simple command line utility that will list the IP addresses of the device that it is run on.


Jon

Bruno Berisso

unread,
Feb 3, 2016, 8:26:16 AM2/3/16
to Jon Hoffman, Swift Language
Hi,

Thanks for sharing this Jon, really good reading to start playing with Swift in the outside word!

Just want to let you know, this group is kind of deprecated. Please consider repost this, and any future thing you want to share, in the Swift users mailing list at swift...@swift.org


--
You received this message because you are subscribed to the Google Groups "Swift Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swift-languag...@googlegroups.com.
To post to this group, send email to swift-l...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swift-language/8ca8ba8f-98e8-41d6-9c87-8c070f11da23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages