News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by rich_sasha on Friday September 06, 2024 @07:20AM (#41465072)
My interest in Rust stems from a very good Python interop. There's a very small handful of compiled languages with that property: Rust, C++, Nim (which is itself quite niche)... That's basically it as far as I know. Swift doesn't seem to tick that box.

I would happily have something 50-100% slower than C++/Rust with good interop, alas there seems to be very little / nothing. Cython for various reasons isn't ideal.

Re:Swift is a more convenient Rust by pzo on Friday September 06, 2024 @08:28AM (#41465535)
There used to be Swift for Tensorflow but google killed it and then Chris Lattner created Mojo. AFAIR the punchline was that Swift was either too complicated for data scientists or they just preferred to use python that already knew.
Re:Swift is a more convenient Rust by naman34 on Tuesday September 10, 2024 @07:16PM (#41506613)
Seift has great C, C++ and Rust interop.

And despite Swift for Tensorflow being killed, there’s still decent python interop.

Now, setting up a project for that is probably quite hard because the documentation is non-existent.