• teolan@lemmy.world
    link
    fedilink
    arrow-up
    10
    arrow-down
    2
    ·
    4 days ago

    You’re aware that Rust gives you access to the full C ABI?

    What language are you going to use instead that has a better ABI story? Swift? Or maybe a dynamic language like Python?

    • DacoTaco@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      3 days ago

      I know that exists, but whats the point of that? You loose all advantages of rust when you use the library then because it cant predict application state with the library code. There is a reason all those rust libraries are compiled locally when you compile a rust application. Its a major lacking point for rust, and as long as it lacks that its dead in the water for big projects.
      Again, i like strong type stuff and i like the ideas of rust but it is not grown up enough for me

    • JoYo@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Do you mean everything that uses LLVM automatically gets an ABI standard?

      That’s so nice of clang, really they should be proub.

    • CanadaPlus@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      4 days ago

      Are you suggesting OP write a C application and then compile it as Rust? I’m not a pro, but that sounds kind of janky.