Git Product home page Git Product logo

spi-playgrounds-releases's People

Contributors

daveverwer avatar finestructure avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spi-playgrounds-releases's Issues

[Suggestion] Optionally create a Mac executable instead of a Playground when appropriate.

Hello!
I never was able to make a macOS Swift Playground work reliably. There is always a moment when they only execute if they run automatically, with manual runs only showing a never-ending spinner.
Furthermore, contextual interactions are different than what we get when editing a standard swift file in Xcode. I find iOS playgrounds more stable for some reason, but all of this makes Swift Playgrounds an extremely awkward and brittle environment in my opinion.

This is the kind of failure I just had when trying to text swift-async-algorithm. As a workaround, I created a SwiftPM Mac executable that provides almost the same functionality as a playground, but it was needlessly convoluted to set up with Xcode: You have to create a swift package, then change the types to executable, then add @main, and then declare manually the dependency to the package you want to test, as the package and target levels. All of this is straightforward, and if there are maybe command-line arguments to perform the same thing, it is always more cumbersome than having it created automatically.

All of this is not caused by SPI-Playgrounds, which is a very nice tool. I think it would be fantastic if it provided the option to create a mac executable instead of a playground when it's possible (that is when the package supports the .mac platform).
It is also probable that iOS Playgrounds (the .swiftpm ones) can be created otherwise, but this can be realized easily enough with Xcode.
Thanks!

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.