• fluxx@mander.xyz
    link
    fedilink
    English
    arrow-up
    15
    ·
    20 hours ago

    Having tried both Swift and Rust - you can hardly compare them. For me Rust is in a different league. Swift is a modernization and a step forward compared to ObjC, but Rust is a different paradigm altogether. Swift has IMO done a great job for Apple as a platform, but has not achieved universality and had not transcended the platform. Rust has achieved universality, but has not captured any platform in particular yet. Both have not and may never replace C/C++, though my biased opinion is rust may have a chance (at least with C++)

    • [object Object]@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      ·
      19 hours ago

      I pick on Rust because of the “write everything in Rust” crowd and just personally I don’t like how the language feels.

      I don’t think rust has found fit in the GUI sphere, though it’s getting some adoption from tools like zed, and hopefully some native gui tools get better with it. Swift has some fit there, but it’s not a fair comparison because it’s forced. Swift has nice ergonomics though with callbacks and lib dispatch plus combine that work well for GUIs.

      Swift also suffered from poor versioning tools, and platform code differences which have hurt it even if they’ve been patched over.

      • fluxx@mander.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        8 hours ago

        I agree on everything you’ve said. Rust hype is a bit annoying and can be off putting. AI bros seem to have amplified the effect and I strongly dislike it. GUI is probably the worst area of Rust, but given the universality of Rust, I think it’s expected. I found egui easy to use, though, but far from swift ui, still.