Well, I've done it. I've replaced python with rust as my goto language for small utility scripting.

Well, I've done it. I've replaced python with rust as my goto language for small utility scripting. It went from being my main language to the only language I use, which I guess I'm ok with.

Ape Out Shirt $21.68

Yakub: World's Greatest Dad Shirt $21.68

Ape Out Shirt $21.68

  1. 2 months ago
    Anonymous

    show some scripts, is it any good?

    • 1 month ago
      Anonymous

      not op but ive been using rust for a few weeks now, right now im working on a simple diffing tool and compared to my main language C# rust is pretty cool. the code in the pic is obviously not the full source its just a small snippet because this project is not open source

      • 1 month ago
        Anonymous

        Christ, Rust is such an ugly language. How the frick do you manage to be uglier than cepples?

        • 1 month ago
          Anonymous

          that is quite possibly the nastiest looking syntax i've ever seen

          which parts do you not like?

          • 1 month ago
            Anonymous

            It took some of the worst parts of C++'s syntax and somehow make it worse by adding even more glyphs. Also, double colons are ugly and apostrophes for lifetimes are ugly. They went for terseness and expressiveness but forgot that too much of both can make your language unreadable.

          • 1 month ago
            Anonymous

            >but forgot that too much of both can make your language unreadable.
            And you forgot every language you don't know will be unreadable like the midwit you are.

            >The language looks ugly because you don't know it.
            I've tried to enjoy it but can't get over how ugly the syntax looks. Same with C++, it's fricking ugly. If you find them enjoyable that's fine, but personally I think it's just stockholm syndrome.

            >Also you should really learn a language before you criticize it
            You should not assume that someone hasn't learned your favorite language just because they're criticizing it. Do you think that Rust is somehow above criticism and has no design flaws?

            >I've tried to enjoy it but can't get over how ugly the syntax looks.
            It's ugly because its unfamiliar. I will admit I used to hate lifetimes because of the way they look, and I still am not too into how they look, but they are such an incredible feature once you understand them that it makes returning to C based languages an actual pain.

            >You should not assume that someone hasn't learned your favorite language just because they're criticizing it.
            I'm assuming this based on your moronic post. Furthermore I am right. Cope, seethe, etc.

            >Same with C++, it's fricking ugly.
            Yes, C++ is ugly because its inconsistent in many places.

            Since you apparently don't use either enjoy your toy language, I suppose. Unless you use a scripting language that is completely outside the realm of things these two languages are built for.

            You're like a mom with her moronic child.

            Your baby isn't ugly! Maybe you're right! I just don't understand! I didn't go to SPED school! I'm just uninformed!

            The problem is, I know you do not know the language because whatever criticisms you have for it I had as well before I learned it (for the second time, actually. I dropped it the first time, because I didn't really get it at first). I hated every part of this language for all the reasons IQfy parrots in every thread about the topic:
            >Ugly syntax (You simply don't know the language)
            >Borrowing and lifetimes being limiting (It's not, it's an amazing tool which makes certain optimizations piss easy at worst, and automatic at best)
            >Unsafe (I literally do not care about safety, and I haven't written unsafe in many many months. Furthermore structures in C are literally a kind of safety you can also turn off with a keyword (void*))
            >etc.
            Now I'm just over here writing fearless concurrency while you are seething and malding and trying to debug solved issues because "only a moron would make mistakes". Kek. Get a grip motherfricker. Or ack! mad, I don't care.

          • 1 month ago
            Anonymous

            >look it works, so, it's not ugly. i know exactly what println!() does, and that's extremely impressive, and something you're too stupid to ever know. i even know why there's an exclamation mark in it. DO YOU? idiot. i bet you don't even understand why i use camelcase for reserved words and lowercase for reserved words. nor do you understand the difference between a singular colon, a bracket open/close, and an arrow. these are entirely different things with extremely different uses, and they cannot be combined in any way. i am so much more advanced than you, i need to define a vector of a vector of strings as an empty vector before i do anything. i bet you try to use a vector without defining it, don't you. dimwit.

          • 1 month ago
            Anonymous

            You sound like some sort of programming atheist. Do you wear a fedora regularly? Are you currently employed?

          • 1 month ago
            Anonymous

            >Has no real arguments to defend her favorite language
            >Throwing personal insults around to prove how great it is
            >"Anything that is not Rust or C++ is a toy language"
            >"No no true me, you're just not used to it. You just don't understand it".
            Yeah that's it you convinced me real good with those insults, anon. You sound like someone who just found her new favorite language and now feels like she has to defend it. Good job, the Rust Foundation has granted you 10 thousand rust points.

            >I'm just over here writing fearless concurrency
            >Fearless concurrency
            >She believes in the propaganda
            I'm just going to assume that you have zero clue how concurrency and parallelism actually works in a large codebase. There is no "fearless concurrency" all it does is make you fearlessly implement slow and inefficient multithreaded code.

          • 1 month ago
            Anonymous

            >Post bait
            >Get called out
            >Get mad
            Lol.

            >There is no "fearless concurrency"
            You can stop posting any time, everyone already knows you don't actually know what the frick you're talking about.
            >all it does is make you fearlessly implement slow and inefficient multithreaded code.
            You gotta be some special kind of moron make something like rust slow, I'll give you that.

            My current job is all cepples and I think its ugly as frick. Syntax aesthetics have nothing to do with knowing a language or not. Sounds like you have Stockholm syndrome.

            Yeah, C++ is pretty ugly because it's inconsistent. It can be unreadable even if you know it. Just look at some of the template signatures for some of the STD functionality. Rust isn't like this, if you know rust you can very easily read rust.

            >the real kick in the nuts with Python is that most libraries are just complete fricking garbage
            Here's a free protip: The libraries look garbage because you don't know them. They're garbage because you're unfamiliar with them AND the language.

            You know how I know? Because I used to think the libraries were garbage too. You should really learn those before you criticize them, you would look like less of an idiot.

            https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html

          • 1 month ago
            Anonymous

            >She thinks Rust is some perfectly magical language that requires no further manual optimization from the developer.
            Yeah, it is actually you who doesn't know what they're talking about. You sound like you just learned Rust, give it a few more months and you'll realize that it can't magically optimize shitty code.

            >https://pandas.pydata.org/...
            Are you seriously calling pandas a garbage library just because you don't understand why this one function has a lot of default arguments? Do you even understand how default arguments work in Python?

        • 1 month ago
          Anonymous

          >Using a systems programming language for small utility scripting
          >A syntactically ugly, poorly designed, overall shitty language and more bloated than C++.
          Maybe you should see a therapist, anon. Why would you purposefully torture yourself like that?

          >Christ, Rust is such an ugly language.
          >First result is Rust when searching for "syntactically ugly".
          LMAO

          • 1 month ago
            Anonymous

            Christ, Rust is such an ugly language. How the frick do you manage to be uglier than cepples?

            that is quite possibly the nastiest looking syntax i've ever seen

            Here's a free protip: The language looks ugly because you don't know it.

            You know how I know? Because I used to think the language was ugly too.

            Yes, I used to think C++ was better too, but then I actually learned and started using the language, and now I can't really go back to C++ anymore. The borrow checker and reference syntax makes some optimizations really effortless to do.

            Also you should really learn a language before you criticize it, you would look like less of an idiot.

          • 1 month ago
            Anonymous

            >The language looks ugly because you don't know it.
            I've tried to enjoy it but can't get over how ugly the syntax looks. Same with C++, it's fricking ugly. If you find them enjoyable that's fine, but personally I think it's just stockholm syndrome.

            >Also you should really learn a language before you criticize it
            You should not assume that someone hasn't learned your favorite language just because they're criticizing it. Do you think that Rust is somehow above criticism and has no design flaws?

          • 1 month ago
            Anonymous

            You're like a mom with her moronic child.

            Your baby isn't ugly! Maybe you're right! I just don't understand! I didn't go to SPED school! I'm just uninformed!

          • 1 month ago
            Anonymous

            thank you for making me aware that rust can replace python for small utilility scripting.
            Rust is always compared to C/C++ and I end up wrongly believing that Rust can only be used where C/C++ is currently being used.

            I've been grinding leetcode in rust to the point I'm pretty comfortable with it. Once you reach a certain level, it's a very pleasant language to work with.

            >Writing a python script takes longer than writing a rust script because I don't have to constantly be reading the docs to figure out what returns what.
            I've been using python for a long time and I still search the web for the most trivial things. This part of python is very, very bad.

          • 1 month ago
            Anonymous

            >I've been using python for a long time and I still search the web for the most trivial things. This part of python is very, very bad.
            Granted this issue for me is also related to the fact I use many similar languages in my day to day job (python, java, javascript, PHP, etc.), but python has this really moronic habit of just changing shit for the sake of change.
            >Nooo, you can't have x ? y : z, it has to be Y if X else Z!
            Absolute trash.

            But the real kick in the nuts with Python is that most libraries are just complete fricking garbage. They're very poorly documented, they're often nonsensical in the way they work, they're just fricking terrible, and the APIs provided by the STD aren't even that much better to be honest. With rust you at least know the motherfricker who wrote the code had to at least think 2 seconds about what the frick they were doing.

            >look it works, so, it's not ugly. i know exactly what println!() does, and that's extremely impressive, and something you're too stupid to ever know. i even know why there's an exclamation mark in it. DO YOU? idiot. i bet you don't even understand why i use camelcase for reserved words and lowercase for reserved words. nor do you understand the difference between a singular colon, a bracket open/close, and an arrow. these are entirely different things with extremely different uses, and they cannot be combined in any way. i am so much more advanced than you, i need to define a vector of a vector of strings as an empty vector before i do anything. i bet you try to use a vector without defining it, don't you. dimwit.

            I'm not going to read your melty, cnile.

          • 1 month ago
            Anonymous

            wow you admitted defeat in 1 second. rust *is* pretty fast i guess

          • 1 month ago
            Anonymous

            >the real kick in the nuts with Python is that most libraries are just complete fricking garbage
            Here's a free protip: The libraries look garbage because you don't know them. They're garbage because you're unfamiliar with them AND the language.

            You know how I know? Because I used to think the libraries were garbage too. You should really learn those before you criticize them, you would look like less of an idiot.

          • 1 month ago
            Anonymous

            My current job is all cepples and I think its ugly as frick. Syntax aesthetics have nothing to do with knowing a language or not. Sounds like you have Stockholm syndrome.

          • 1 month ago
            Anonymous

            Unemployed

      • 1 month ago
        Anonymous

        that is quite possibly the nastiest looking syntax i've ever seen

  2. 1 month ago
    Anonymous

    that sounds dumb

    • 1 month ago
      Anonymous

      It is

    • 1 month ago
      Anonymous

      Why? It's just cargo new / cargo run, and I get a much more expressive language without the performance concerns (which does matter sometimes if you're doing a lot of looping and parsing big files). Writing a python script takes longer than writing a rust script because I don't have to constantly be reading the docs to figure out what returns what.

      Is this a case of "never interrupt a fool making a mistake?"

      What's the mistake exactly? Why do you feel so threatened? I was already going to replace python with go anyway. It's an irredeemably shit language, and I've been using it since python 2 (including professionally).

      • 1 month ago
        Anonymous

        >Feel threatened
        The more people that saddle themselves with the burden of Rust in scenarios it's pointless for, the less of a threat to me. I work in an industry where lots of people are going to waste of ton of time trying to make it work, and I already made a near-perfect language choice. So have your fun.

        • 1 month ago
          Anonymous

          Funny you should say that, because my job is likely solving issues related to the ramifications of morons like you choosing their "near-perfect languages." But I would love to know, oh wise one, how rust is in any way a threat to whatever shitty ecosystem you're maintaining, outside of
          >B-but I don't know it, waaaahhh
          Lmao.

          And yes, I do know you don't know the language.

          • 1 month ago
            Anonymous

            Now I see that your "feel threatened" bit was all projection.

  3. 1 month ago
    Anonymous

    Is this a case of "never interrupt a fool making a mistake?"

  4. 1 month ago
    Anonymous

    It doesn't matter what language you use for small utility scripting. The only downsides like deployment (for compiled language) is trivial to solve once in 15 minutes if these are personal scripts

  5. 1 month ago
    Anonymous

    Good work, sis. Did the same back in 2017 and haven't looked back. 5-1000x improvements in runtime for some scripts because python is so slow if you never end up using the parts that dispatch to C

Your email address will not be published. Required fields are marked *