I’ve been programming for decades, though usually for myself, not as a profession. My current go-to language is Python, but I’m thinking of learning either Swift (I’m currently on the Apple ecosystem), or Rust. Which one do you think will be the best in terms of machine learning support in a couple of years and how easy is it to build MacOS/ iOS apps on Rust?

  • mrkite@programming.dev
    link
    fedilink
    English
    arrow-up
    29
    ·
    10 months ago

    Rust is the only language I know of that is actively being used at the kernel level all the way through to the web app level. Compare that with Swift which is not only mostly tied to a single ecosystem, but even the “cross platform” stuff like libdispatch is littered with code like:

    if #available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)

    • abhibeckert@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      10 months ago

      Note libdispatch runs on older versions of Apple Platforms than those version numbers. The backwards compatible code paths aren’t just for other operating systems - that’s how it works on older Apple platforms too.