News for hackers. Stuff that matters.
Re:Objective-Rust by saagarjha on Friday August 28, 2020 @06:12PM (#24310766)
Swift and Objective-C share a memory model, though, which Rust does not. I suspect that any Rust code that interoperates with Objective-C will never be "cleaner" than the corresponding Swift code.
Re:Objective-Rust by Klonoar on Friday August 28, 2020 @07:53PM (#24311791)
I mean, it depends on the Swift code you write - basic example which could be done fairly closely: https://github.com/ryanmcgrath/cacao/blob/trunk/examples/aut...

Having written my fair share of both languages, I don't think they're as far apart as people think... yet, anyway.

I doubt my response will age well.

Re:Objective-Rust by fiddlerwoaroof on Friday August 28, 2020 @08:28PM (#24312065)
I’ve had some pretty good luck integrating Common Lisp and the Objective-C runtime: the difference of memory models isn’t a huge problem, as long as there’s a nice way to map between them.
Re:Objective-Rust by adamnemecek on Friday August 28, 2020 @06:38PM (#24311093)
Swift selectively shares the objc memory model.