Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. Rust

Rust

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
99 Posts 64 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G [email protected]

    just because they are accepting of people based on gender identity doesn't mean toxicity cannot exist.

    terfs are a great example of that.

    E This user is from outside of this forum
    E This user is from outside of this forum
    [email protected]
    wrote last edited by
    #44

    Sure, but I'm saying in general. I don't know why you're so convinced of your position from the one experience you had.

    G 1 Reply Last reply
    4
    • P [email protected]

      not a big fan of rust personally. I think it would be much smarter to bring borrow checking to C through annotations. That way we would not have to rewrite the whole world

      O This user is from outside of this forum
      O This user is from outside of this forum
      [email protected]
      wrote last edited by
      #45

      While I agree that would solve much of the motivation behind rewriting in rust, I don't think it would bring many of the rust-enthusiasts over to C. For me at least, the killer feature of rust is having a modern tooling and language with proper library management, functional stuff in the language and one language standard everyone agrees upon.

      kushan@lemmy.worldK P 2 Replies Last reply
      9
      • O [email protected]

        While I agree that would solve much of the motivation behind rewriting in rust, I don't think it would bring many of the rust-enthusiasts over to C. For me at least, the killer feature of rust is having a modern tooling and language with proper library management, functional stuff in the language and one language standard everyone agrees upon.

        kushan@lemmy.worldK This user is from outside of this forum
        kushan@lemmy.worldK This user is from outside of this forum
        [email protected]
        wrote last edited by
        #46

        I don't think it's about bringing rust enthusiasts to C, it's about the fastest way to bring more safety to the entire ecosystem.

        I'm not convinced it's possible with just annotations, mind.

        P 1 Reply Last reply
        8
        • pro@programming.devP [email protected]
          This post did not contain any content.
          O This user is from outside of this forum
          O This user is from outside of this forum
          [email protected]
          wrote last edited by
          #47

          Considering that FFI is very much a thing, I'm finding it difficulty to understand the point it's trying to make.

          1 Reply Last reply
          8
          • kushan@lemmy.worldK [email protected]

            I don't think it's about bringing rust enthusiasts to C, it's about the fastest way to bring more safety to the entire ecosystem.

            I'm not convinced it's possible with just annotations, mind.

            P This user is from outside of this forum
            P This user is from outside of this forum
            [email protected]
            wrote last edited by
            #48

            It is possible, it would bring in quite a few restrictions though. The bigger problem I see is that it wouldn't be entirely clear as an end user whether a program is memory safe or not. However, this isn't the case with rust neither. Maybe some kind of certification would help

            1 Reply Last reply
            1
            • O [email protected]

              While I agree that would solve much of the motivation behind rewriting in rust, I don't think it would bring many of the rust-enthusiasts over to C. For me at least, the killer feature of rust is having a modern tooling and language with proper library management, functional stuff in the language and one language standard everyone agrees upon.

              P This user is from outside of this forum
              P This user is from outside of this forum
              [email protected]
              wrote last edited by
              #49

              Yeah, I don't think there's anything wrong with coding in rust for people who like it. But I do think it's quite a bit of useless work that could be spent more wisely on new products instead of rewriting things that we already have

              1 Reply Last reply
              1
              • R [email protected]

                It certainly is a pillar of my mental stability.

                F This user is from outside of this forum
                F This user is from outside of this forum
                [email protected]
                wrote last edited by
                #50

                Ah, me a pillar of my insanity.

                1 Reply Last reply
                8
                • P [email protected]

                  not a big fan of rust personally. I think it would be much smarter to bring borrow checking to C through annotations. That way we would not have to rewrite the whole world

                  A This user is from outside of this forum
                  A This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #51

                  C++ already has much more of the required language constructs, which is why there is already an attempt to add borrow checking to C++ called circle. Until that standardizes, I wouldn't expect it in C.

                  1 Reply Last reply
                  2
                  • K [email protected]

                    And Eiffel is in a different plane of existence entirely

                    buboscandiacus@mander.xyzB This user is from outside of this forum
                    buboscandiacus@mander.xyzB This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #52

                    1 Reply Last reply
                    3
                    • S [email protected]

                      Rust is actually awesome in many ways. No always the right solution, but nice to have in your toolbox.

                      C This user is from outside of this forum
                      C This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #53

                      Where would you say Rust isn't the right solution?

                      We always hear how great Rust is, but I'd be curious to know where it isn't.

                      N R B T 4 Replies Last reply
                      14
                      • P [email protected]

                        not a big fan of rust personally. I think it would be much smarter to bring borrow checking to C through annotations. That way we would not have to rewrite the whole world

                        J This user is from outside of this forum
                        J This user is from outside of this forum
                        [email protected]
                        wrote last edited by [email protected]
                        #54

                        I don't think you would get much traction on C developers' existing projects. C gives you the option to do everything your way. If the developer's paradigm doesn't agree with the borrow checker, it could become a rewrite anyway.

                        Most projects don't use the newer c standards. The language just doesn't change much, and C devs like that. This might get a better response from the modern C++ crowd, but then you are missing a large chunk of the world.

                        1 Reply Last reply
                        4
                        • P [email protected]

                          not a big fan of rust personally. I think it would be much smarter to bring borrow checking to C through annotations. That way we would not have to rewrite the whole world

                          S This user is from outside of this forum
                          S This user is from outside of this forum
                          [email protected]
                          wrote last edited by [email protected]
                          #55

                          I struggle to learn rust because the semantics and syntax are just so awful. I would love to be enthusiastic about rust, since every seems to love it, but I can't get over that hurdle. Backporting the features into C, or even just making a transpiler from C to rust that uses annotations would be great for me. But the rust community really does not seem interested in making stepping stones from other languages to rust.

                          P B 2 Replies Last reply
                          8
                          • S [email protected]

                            I struggle to learn rust because the semantics and syntax are just so awful. I would love to be enthusiastic about rust, since every seems to love it, but I can't get over that hurdle. Backporting the features into C, or even just making a transpiler from C to rust that uses annotations would be great for me. But the rust community really does not seem interested in making stepping stones from other languages to rust.

                            P This user is from outside of this forum
                            P This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #56

                            I learned a bit of rust and I think it's just about getting used to it. It's fairly subjective, and people say the same about C++. I also prefer the C syntax because I find it's simplicity extremely elegant and prefer it to have fewer features. And I like it for it's consistency, on linux the FHS is based up on C, and it just somewhat feels ugly to break that consistency.

                            But I also acknowledge the advantages of rust.

                            1 Reply Last reply
                            5
                            • C [email protected]

                              Where would you say Rust isn't the right solution?

                              We always hear how great Rust is, but I'd be curious to know where it isn't.

                              N This user is from outside of this forum
                              N This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #57

                              Never used Rust but I'd like to point out the YouTube channel Low Level which covers security vulnerabilities (CVEs). He ends each video with "would Rust have fixed this?" and it's pretty interesting.

                              A very recent one is this: https://youtu.be/BTjj1ILCwRs?t=10m (timestamped to the relevant section)

                              According to him, when writing embedded software in Rust (and UEFI is embedded), you have to use Rust in unsafe mode which basically disables all the memory safety features. So in that kind of environment Rust isn't really better than C, at least when it comes to memory safety.

                              That's not to say Rust isn't still a good option. It probably is.

                              Again, I never used Rust so I'm just parroting stuff I've heard, take all of this with a grain of salt.

                              C C 2 Replies Last reply
                              9
                              • 9 [email protected]

                                Hey now, about 1% of the Linux kernel is Rust now!

                                I This user is from outside of this forum
                                I This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #58

                                NT kernel also includes Rust.

                                9 1 Reply Last reply
                                2
                                • I [email protected]

                                  NT kernel also includes Rust.

                                  9 This user is from outside of this forum
                                  9 This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #59

                                  Oh really? I had no idea Microsoft was doing rust at all

                                  1 Reply Last reply
                                  0
                                  • C [email protected]

                                    Where would you say Rust isn't the right solution?

                                    We always hear how great Rust is, but I'd be curious to know where it isn't.

                                    R This user is from outside of this forum
                                    R This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #60

                                    Rust provides safety and protection.

                                    Rust isn't as rapid as other options, has less library support, and porting existing code is relatively difficult.

                                    IMO because of the workarounds you need to do to handle the memory safety, you end up with a lot more hard to solve bugs than you do with conventional languages. It should be noted however that the bugs don't end up being security vulnerabilities like they do in conventional systems.

                                    If you have something that needs to be structurally sound and/or you have enough talented people willing to work on it, it's a great option. If it needs to be fast and cheap and you don't have a gaggle of rust developers on hand and it's already written in another language, it might not be the best solution.

                                    anonbd@techhub.socialA C mcasq_qsacj_234@lemmy.zipM 3 Replies Last reply
                                    15
                                    • S [email protected]

                                      I struggle to learn rust because the semantics and syntax are just so awful. I would love to be enthusiastic about rust, since every seems to love it, but I can't get over that hurdle. Backporting the features into C, or even just making a transpiler from C to rust that uses annotations would be great for me. But the rust community really does not seem interested in making stepping stones from other languages to rust.

                                      B This user is from outside of this forum
                                      B This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #61

                                      I've personally become pretty fond of the syntax and incorporation of FP features. In all fairness though, I haven't written much C or C++ for the last two decades.

                                      Rust incorporates some of my favorite features from FP with handy green thread ergonomics. I'm not a fan of Go, so this gives me a great option for microservices when I can avoid Node.js.

                                      1 Reply Last reply
                                      2
                                      • R [email protected]

                                        Rust provides safety and protection.

                                        Rust isn't as rapid as other options, has less library support, and porting existing code is relatively difficult.

                                        IMO because of the workarounds you need to do to handle the memory safety, you end up with a lot more hard to solve bugs than you do with conventional languages. It should be noted however that the bugs don't end up being security vulnerabilities like they do in conventional systems.

                                        If you have something that needs to be structurally sound and/or you have enough talented people willing to work on it, it's a great option. If it needs to be fast and cheap and you don't have a gaggle of rust developers on hand and it's already written in another language, it might not be the best solution.

                                        anonbd@techhub.socialA This user is from outside of this forum
                                        anonbd@techhub.socialA This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #62

                                        @rumba @Croquette They're is a lot of people scrambling to rewrite existing c projects in rust for what?
                                        for example ffmpegs rust rewrite is slower than the c version we need more maintainers rather than creating new rust alternatives that have no purpose

                                        R C 2 Replies Last reply
                                        1
                                        • E [email protected]

                                          I get the meme (though why was this single unstable point - imagemagick in the original xkcd - removed? To make the left side seem more stable clmpared to the original idea?), it might be trueish atm.
                                          But with rust I feel that a lot of projects that are rewritten in rust are quicker arriving at a "finished" (or almost finished) state where they are more or less just tools being used without much discussion anymore. I guess a lot of commonly used tools already use Rust in some way, but i rarely is an issue which makes this discussion-worthy or generates enough conflict in order to raise awareness outside.

                                          I have a hunch that open-source rust-devopment is less of a hassle as a lot of discussion about code or the quality therof is simply avoided by a stricter compiler. If the code committed compiles with rustc there's less possibility of it breaking other things in the codebase or containing hidden dangers that need to be discussed. Overall less friction, less overhead and distruction from the actual coding.

                                          _ This user is from outside of this forum
                                          _ This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #63

                                          Old programs everyone agrees do exactly what they should are a perfect target for "black box" porting to a new language, where the only criteria for success are "it should function exactly like before, just more efficiently, while being more maintainable"

                                          1 Reply Last reply
                                          11
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups