News for hackers. Stuff that matters.
Re:Swift Static Linux SDK by dagmx on Tuesday June 11, 2024 @05:22PM (#40651658)
As another huge rust fan myself, Swift 6 has really won me over.

I find myself reaching for Swift as the default for a lot of things rather than Rust, especially with the advent of C++ Interoperability and the new Swift embedded stack and ownership model.

The only thing I really need is a UI story on other platforms, but it’s an area Rust is lacking great solutions too. I suspect the C++ interop might eventually make Swift have great Qt bindings to compete with PySide as an accessible way to make multi platform UIs.

Re:Swift Static Linux SDK by jclay on Tuesday June 11, 2024 @08:20PM (#40653169)
There’s a very minimal example using C++ interop in Qt’s test suite:

https://github.com/qt/qtdeclarative/tree/dev/tests/manual/he...

I’ve kicked around with the C++ interop a few times. Projects like Qt that use raw pointers extensively seem hard to expose. Ended up having to wrap Qt classes to model as a value type which was straight forward but it’s not nearly as seamless as the Objective-C++ experience

Re:Swift Static Linux SDK by dagmx on Tuesday June 11, 2024 @09:32PM (#40653579)
Ah, very cool. Thanks for the link and write up