5 ms·
I’m honestly not usually that interested in feature lists for languages I don’t use, but this really does look quite compelling. Ownership semantics and C++ int
by moomin 2y ago
I’m honestly not usually that interested in feature lists for languages I don’t use, but this really does look quite compelling. Ownership semantics and C++ integration? Sign me up.
I’d be interested to know how good this integration is in practice e.g. could it be used to integrate with Godot directly?
- rescripting 2y agoSomething like this? https://github.com/migueldeicaza/SwiftGodot https://github.com/migueldeicaza/SwiftGodot > SwiftGodot can be used to either build an extension that can be added to an existing Godot project, where your code is providing services to the game engine, or it can be used as an API with SwiftGodotKit which embeds Godot as an application that is driven directly from Swift. Miguel de Icaza gave a great talk on Swift + Godot (among other things) https://www.youtube.com/watch?v=tzt36EGKEZo https://www.youtube.com/watch?v=tzt36EGKEZo
- syndeo 2y agoSeconding this! I've ported a GMS2 project over to SwiftGodot, and it's been great to work with. As I ported over the code, the Swift compiler even caught a bug or two that I'd missed back when it was written in GML!
- moomin 2y agoI guess my question is how much a custom bridge is needed with the C++ integration. (I understand the bridge will always be better in some sense, but I’m also interested in what it would be like to just ignore it and target the C++ API directly.
- Someone 2y ago> I’d be interested to know how good this integration is in practice I haven’t used it, but from looking at the long) video at https://youtu.be/ZQc9-seU-5k?si=JMFCWKUZ0vVtst9K https://youtu.be/ZQc9-seU-5k?si=JMFCWKUZ0vVtst9K (discussed in https://news.ycombinator.com/item?id=38444876 https://news.ycombinator.com/item?id=38444876), it looks pretty good.
- jb1991 2y agoI've been mixing Swift and C++ in an app and it works pretty much as advertised.