News for hackers. Stuff that matters.
Re:Swift Evolution: Actors by anonymouse008 on Tuesday March 16, 2021 @04:53PM (#26482823)
What are you using for GUI libraries? Or are these mostly accessed from the command line?

In my own experimentation, I’ve seen some success with Vapor 4 and PlotHTML

Re:Swift Evolution: Actors by drmidnight on Tuesday March 16, 2021 @05:26PM (#26483227)
I've actually been developing my own UI library backed by SDL. It currently uses a DSL-like system similar to SwiftUI. I just spent some late nights working on a "hot-reloading" system, though it only works on Mac/Linux currently.

In theory any C based UI libs that support those platforms should work as long as they can be called from Swift.

Re:Swift Evolution: Actors by anonymouse008 on Tuesday March 16, 2021 @06:34PM (#26484101)
That’s pretty dang cool! I’d love to contribute, if you’re open to it.

The most difficult thing I’ve done with Swift/C was packaging a Python interpreter inside a Mac app with a few lxml dependencies called with PythonKit. Might not begin to scratch the surface of what you need though...

Re:Swift Evolution: Actors by drmidnight on Tuesday March 16, 2021 @07:34PM (#26484627)
Could always use some help. It's still in it's infancy right now, very much a PoC to see if it was worth attempting. Once it gets to a good enough state I will make the repo public and let you know. Props to

Nice job embedding Python in Swift. I haven't done Python, but Wren and Gravity were pretty challenging to get working right. I was going to use a scripting layer for the UI, but eventually came up with a solution that allows for Swift to be used. I sort of mimic the system Apple uses for Playgrounds/Live Preview in Xcode.

Re:Swift Evolution: Actors by DaiPlusPlus on Tuesday March 16, 2021 @05:28PM (#26483261)
> What are you using for GUI libraries? Or are these mostly accessed from the command line?

I'm not a Swift user, but the approach I've seen is people using it to run a localhost HTTP server for a HTML+JS frontend.