I’ve forked Ray Wenderlich’s swift-algorithm-club to include a Python script, build-n-run.py that goes through all the projects, creates a linux directory there, copies the playground’s Contents.swift file to the linux directory as main.swift, along with any other non-test Swift files, then executes the swiftc compiler to build an executable then attempts to run it. Because playgrounds are effectively interactive …
Category Archives: Programming
Swift 5.0 for Fedora
The first version of Swift 5.0-Dev for Fedora has been built and “works”. The package is swift-lang-5.0-0.11.20181116git201dcba.fc30.x86_64.rpm and swift-lang-runtime-5.0-0.11.20181116git201dcba.fc30.x86_64.rpm. I’ve tested these on a Rawhide Docker image (Podman, actually, on a SilverBlue laptop), and they compile Swift programs, but the REPL fails with: error: Could not construct an expression context for the REPL So clearly there’s …