Giter VIP home page Giter VIP logo

swiftfromscratch's Introduction

Swift From Scratch

A sample project based on building Swift from scratch on Linux. The project is set up to allow you to use Swift 3, Swift Package Manager, the new Swift-based Foundation, and the new Swift Dispatch (GCD) module.

This project is set up to build with Docker so that (1) you don't have to build the Swift binaries over and over again each time you change your application and (2) so that the output can be run in a portable manner. This build is not "immutable" in the sense that it tracks Swift version 3.0 (which is not yet finalized). Periodically clearing the Docker build machine's image cache will allow you to grab fresh Swift sources. This would be a good idea as the codebase evolves and gets closer to release.

Make it yours

You can clone this repository, then rename the directory to your project name, edit the name of the package in Package.swift, and edit the name of the "CMD" binary in Dockerfile.

Building

Build the Docker image:

docker build -t username/appname .

NOTE: This will take a long time the first time you run it. It shouldn't on subsequent runs.

Running

docker run username/appname

Contributing

Create an issue or send me a PR.

swiftfromscratch's People

Contributors

aoberoi avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.