Re:Apt Rust requirement raises questions
by tsimionescu on Tuesday November 25, 2025 @10:41AM
(#46046844)
Swift is as relevant to this discussion as Common Lisp.
Re:Apt Rust requirement raises questions
by frizlab on Tuesday November 25, 2025 @10:44AM
(#46046875)
On the contrary, Swift is very relevant on this subject. It has high feature parity with rust, with a much readable syntax.
Re:Apt Rust requirement raises questions
by ModernMech on Tuesday November 25, 2025 @10:51AM
(#46046972)
But Swift is not "Kotlin for Rust" though, I can't see the connection at all. "Kotlin for Rust" would be a language that keeps you in the Rust ecosystem.
Re:Apt Rust requirement raises questions
by fainpul on Tuesday November 25, 2025 @11:17AM
(#46047299)
The commenter I replied to seems to like Kotlin. Swift is extremely close to Kotlin in syntax and features, but is not for the JVM. Swift also has a lot of similarities with Rust, if you ignore the fact that it has a garbage collector.
Re:Apt Rust requirement raises questions
by adastra22 on Tuesday November 25, 2025 @12:51PM
(#46048490)
A Kotlin for Rust would be a drop-in replacement where you could have a crate or even just a module written in this hypothetical language and it just works. No bridging or FFI. That’s not Swift.
Re:Apt Rust requirement raises questions
by fainpul on Wednesday November 26, 2025 @03:15AM
(#46055282)
You all need to stop with the hair-splitting – it's tiresome.
My intention was to offer something that might be of interest to the person I replied to – not to write the official definition of "Kotlin for Rust" which everybody has to agree to. If you think my answer is nonsense, just skip it and read the next one. No need to reply. Nobody profits from this discourse.
Re:Apt Rust requirement raises questions
by frizlab on Tuesday November 25, 2025 @10:53AM
(#46046995)
Ah yeah ok, makes sense in that way
Re:Apt Rust requirement raises questions
by tsimionescu on Tuesday November 25, 2025 @01:33PM
(#46049033)
It doesn't have the single feature that anyone cares about in Rust - compiler-enforced ownership semantics. And it's not in any way a system-level language (you couldn't use it without its stdlib for example, like in the Linux kernel).
The other features it shares with Rust are also shared by many other languages.
Re:Apt Rust requirement raises questions
by frizlab on Tuesday November 25, 2025 @07:06PM
(#46052464)
Compiler-enforced ownership semantics is now a part of Swift with non-copyable types. In all honesty I do not know enough of rust to know how on-par the features are, but there is something.
Not sure about using Swift in a kernel as I’m not low-level enough to know that either, but you can indeed use Swift on embedded systems[1].
While it's not a systems language, have you tried Swift?