Remix.run Logo
jackjeff 4 days ago

Isn’t this “high level rust” idea similar to swift?

Everything is ARC. Clones are cheap. But you still have a reasonable sound type system and no garbage collection.

I get it. Tooling on swift is meh the further you are from Apple, so I’m not suggesting it’s better.

But from a language point of view; is it not essentially a high level rust?

Ps. I don’t really know swift. Just asking where/why I’m wrong really.

frizlab 3 days ago | parent | next [-]

The tooling is getting better and better, thankfully. Just recently they published their official VSCode extension on open-vsx for instance. It’s getting usable now!

bluegatty 4 days ago | parent | prev [-]

It's not ARC though. They use fancy threading mechanisms to avoid having to check on every access. Much faster.

fainpul 4 days ago | parent [-]

"Swift uses Automatic Reference Counting (ARC) to track and manage your app’s memory usage."

https://docs.swift.org/swift-book/documentation/the-swift-pr...

bluegatty 3 days ago | parent [-]

I meant 'not like rust-Arc' :)

... which is what I thought people were referring to.

Yes - it's ref counting, but it's not like 'Arc' at all - ARC is way more thread aware and most 'access' doesn't have to do thread checking. Much faster.

So - using Rust 'Arc' would not be at all like using Swift 'ARC' in the end.