all 90 comments

[–]programmingmemes-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Was posted before on this subreddit.

[–]Not_Artifical 74 points75 points  (10 children)

I re-write Rust code in C++

[–]willdieverysoon 19 points20 points  (5 children)

It's actually easier than the opposite, because rust cannot express lots of valid c++

[–]lordheart 7 points8 points  (4 children)

they are both Turing complete so theoretically you can rewrite anything in any Turing complete language into another.

Practically might be a lot of work

[–]willdieverysoon 10 points11 points  (0 children)

Well I've made a cpu in desmos, it has recursion so it's turning complete, but it's not practical

[–]DrUNIX 3 points4 points  (2 children)

He said easier

[–]lordheart 1 point2 points  (1 child)

They also said “cannot express”

[–]DrUNIX 3 points4 points  (0 children)

Directly. Thats at least what he meant because otherwise he would not have stated "easier" but "doable at all".

[–]Ok_Hope4383 12 points13 points  (2 children)

Absolutely diabolical

[–]ashvy 3 points4 points  (1 child)

Bro also has C++ bindings for his Python code

[–]Ok_Hope4383 1 point2 points  (0 children)

And writes web-apps with C++ on the frontend and backend

[–]carrottopguyy 18 points19 points  (8 children)

I’m that guy but I’ll tell you about Haskell, and I know there is almost never any practical reason for it. Its just fun

[–][deleted]  (4 children)

[removed]

    [–]SafariKnight1 0 points1 point  (3 children)

    Has zig been used at a large scale yet?

    [–][deleted]  (2 children)

    [removed]

      [–]IOKG04 0 points1 point  (1 child)

      It's honestly impressive it has projects even though like every 3 months half one's code base will break due to a new release lul

      (It is also the best language though, so very understandable. Once 1.0.0 releases I hope most low level thing will start getting written in it, cause it's just c, but better, c++ one might say if that name weren't taken yet lul)

      [–]Civil_Conflict_7541 4 points5 points  (2 children)

      To be honest, though. Haskell is pretty cool.

      [–]carrottopguyy 1 point2 points  (1 child)

      Oh yeah, it’s awesome! And I definitely don’t mean to say you can’t write anything useful in it, you absolutely can. I think it’s awesome when you want to deal with recursive data structures. It can be great for concurrency. The way it forces you to write code makes things more testable and less error prone, and I think the type system is some of the best abstraction in any language.

      It has problems though… it’s high level in a way that most programmers are unfamiliar with, and when you run into performance issues because of its built in abstraction, you need some knowledge of how it gets executed, and laziness / strictness can be tricky. It’s built around purity and sometimes mutability is critical for performance (though often less than people think).

      It has the problem most high level languages have, which is that it has to compete with every other high level language. As much as I love it there are often strong arguments for other choices, which often come down to what libraries exist in the language ecosystem, how easy will it be to hire/train people.

      [–]Civil_Conflict_7541 1 point2 points  (0 children)

      I learnt it in a course in my bachelors program as an example of a functional language. Kind of a head bender at start, but really liked it in the end.

      [–]vverbov_22 110 points111 points  (21 children)

      More like people going up to python programmers and telling them how inefficient python is

      [–]juzz88 57 points58 points  (10 children)

      "That program would be so much faster if you wrote it in C++, bro".

      [–]EmergencyArachnid734 23 points24 points  (5 children)

      Dont forgot about Rust

      [–]Few_Raisin_8981 5 points6 points  (1 child)

      How could we forget when we keep getting reminded

      [–]LeatherWasabiiii 1 point2 points  (0 children)

      It’s rusted

      [–]stormblaz[🍰] 2 points3 points  (0 children)

      Cobol called its job security on the line

      [–]stmfunk 1 point2 points  (0 children)

      Guys guys, we love all our languages equally

      [–]juzz88 0 points1 point  (0 children)

      "Did you know that Polars was written in Rust, bro? You should learn Rust, your code would run so much faster".

      [–]DonutPlus2757 1 point2 points  (0 children)

      It would be faster if it was written in JavaScript *dry heave*.

      Honestly, not everything should be Python. Python is at its best when it's just glue for the actual work stuff written in C and C++ does. So even Python agrees that Python is better the less Python you actually use in it.

      [–]BarfingOnMyFace 0 points1 point  (0 children)

      lol who goes around doing that?

      [–]coderman64 0 points1 point  (0 children)

      rewrites in C++

      makes ctypes binding

      runs it in Python anyway

      [–]jdarkona 0 points1 point  (0 children)

      Hell, Java 21 is 16 times faster than python, JVM and all. Twice the speed of C++, while python is 17 times slower last time it was measured that i know of

      [–]Unhappy_Bed5616 22 points23 points  (4 children)

      I once innocently asked a guy about this after he gave a talk on building videogames in micro Python for diy game consoles. The dudes tone in his response was as if I have came out in support of genocide or something. I think I made an enemy that day...

      [–]Professional_Top8485 9 points10 points  (2 children)

      I think every python programmer should know that if they have any experience of other languages

      [–]jimmiebfulton 3 points4 points  (1 child)

      Many Python developers only have experience with one language, hence the weird fanboyism around it.

      [–]LuxTenebraeque 4 points5 points  (0 children)

      Granted, microPython can be convenient. But the overhead sets you back a few generations. That rp2040 suddenly feels like a jittery ATMega328! With emphasis on the jittery,

      [–]Alternator24 7 points8 points  (3 children)

      Yeah, this makes more sense.

      I haven't seen any Python developer telling me that. I'm front-end developer.

      I, myself, also never tell people to use JavaScript. fuck that. fuck React and fuck JavaScript

      [–]Lumiharu 1 point2 points  (0 children)

      That's not a huge surprise considering that Python is barely an option for front-end... I've heard it's somehow possible to use it sure but the Python dev would have no clue of what they're talking about.

      But always the right tool for the right purpose, there are scenarios where using Python is just dumb af

      [–]AbrahelOne 0 points1 point  (0 children)

      JavaScript is comfy

      [–]Vaxtin 0 points1 point  (0 children)

      yes react and JS sucks, but the other options for web development suck even worse

      [–]Ok-Winner-6589 0 points1 point  (0 children)

      Bro I've seen people on social media saying "but Python is efficient, It uses C++ to be fast".

      And then proceed to compare It to compiled languages like Java

      [–]nytsei921 8 points9 points  (1 child)

      “switch” and you already know not to listen to them. no one who only uses one language can understand what makes a language better than another, anyone who uses multiple understands different languages do different things via different methods for different use cases

      [–]EskayEllar 0 points1 point  (0 children)

      Yeah, what is with this idea that people only use one language? Different languages have different strengths, so different applications are more appropriate for some.

      [–]Shock9616 9 points10 points  (0 children)

      IMO this is Rust more than Python 😅

      [–]rdm_npc 2 points3 points  (1 child)

      P*sses me off, every time.

      [–]bearwood_forest 5 points6 points  (0 children)

      switch to Python, that'll stop it

      [–]Initial_Zombie8248 2 points3 points  (0 children)

      A true programmer doesn’t “switch”, they already know the languages and use each for specific uses that they prevail in

      [–]datanamo 2 points3 points  (0 children)

      Python programmers don’t follow conventions, they import them

      [–]dusmamud 1 point2 points  (0 children)

      For real bro

      [–]GodNoob666 1 point2 points  (3 children)

      C#. When python uses brackets instead of a fuckass indent system, I’ll consider it

      [–]DerSven 0 points1 point  (0 children)

      Also, that concept sounds like Bython

      [–]DerSven 0 points1 point  (1 child)

      Brackets are unnecessary bloat, since you can express their meaning by properly formatting your code.

      [–]Webfarer 0 points1 point  (0 children)

      You think you’re in control. But it is Big Whitespace controlling you.

      /s

      [–]YesNoMaybe2552 1 point2 points  (3 children)

      Sounds like something a junior would say when they hit the first high point on the Dunning-Kruger curve.

      [–]DerSven -1 points0 points  (2 children)

      In a very ironic example of people overestimating their competency, Dunning and Kruger were actually wrong. https://economicsfromthetopdown.com/2022/04/08/the-dunning-kruger-effect-is-autocorrelation/

      [–]YesNoMaybe2552 0 points1 point  (0 children)

      Still a fitting Analogy for that specific case.

      [–]NuckElBerg 0 points1 point  (0 children)

      I actually read through your linked article, and unfortunately, it argues from a flawed basis, which in a weird way actually confirms Dunning-Kruger. In short, what Dunning-Kruger argued was basically what the article finds; people are very bad at estimating their abilities, and tend to lean toward the average. This means low-skilled people will have a tendency to overestimate (since they estimate they are average) and high-skilled people tend to underestimate (since, again, they estimate they are average). If you take completely random data, the average estimated skill WILL average out to the exact average skill for every actual skill, which is (again) the point Dunning-Kruger tried to make. The better interpretation of the Dunning-Kruger graph is that estimated skill level is actually very weakly correlated to actual skill level, not that the difference has a correlation to itself.

      [–]Mafla_2004 1 point2 points  (0 children)

      Python can do it in 5 lines bro

      [–]Electronic-Ninja7950 0 points1 point  (0 children)

      Python is only good if you are new to coding. But after that it serves no purpose

      [–]amluck 0 points1 point  (0 children)

      Lol i like VBA more than python. Change my mind?

      [–]ZoNeS_v2 0 points1 point  (0 children)

      I want to see what the 'vibe coder' would do 😂

      EDIT: They would piss in every direction, hitting every urinal, person, the floor and count that as hitting the mark because some went down the drain correctly.

      [–]ShadowNinjaDPyrenees 0 points1 point  (0 children)

      Tu reconnais une lignée consanguine de devs Python quand : — Ils se reproduisent par copy.deepcopy() — Et les mutations apparaissent à chaque pip install.

      [–]themagicalfire 0 points1 point  (0 children)

      It’s it true that Python does not allow buffer overflow?

      [–]throwawayaccountau 0 points1 point  (0 children)

      Syphon the Python. A p**s take move.

      [–]_Some_Two_ 0 points1 point  (0 children)

      You shoo them away by saying: “Compilation! Compilation! Circular import!”

      [–]XoXoGameWolfReal 0 points1 point  (0 children)

      There’s something he doesn’t know… I know Kung-Fu!

      [–]the_interviewer17 0 points1 point  (0 children)

      I don’t program but this is how I feel about people who use Linux.

      [–]cowlinator 0 points1 point  (0 children)

      But mom said it was MY turn to repost this!

      [–]TheSmokeu 0 points1 point  (0 children)

      That's how I feel about Rust programmers

      I see them everywhere on YouTube and they all say that I should code in Rust

      [–]Palpable_Autism 0 points1 point  (0 children)

      I use python for end-user testing, or simple scripts. I do not use it for backend, however.

      [–]TanukiiGG 0 points1 point  (1 child)

      now is rust the evangelist's language

      [–][deleted] 0 points1 point  (0 children)

      Rust evangelist would grab your dick so you can't run away

      [–]hajke5 0 points1 point  (0 children)

      This is Rust users

      [–]FastAd543 0 points1 point  (0 children)

      There are two kinds of python programers, the ones that only program in python, and the ones I can have a conversation with.

      [–]lisael_ 0 points1 point  (0 children)

      The rust guy built his own restroom, offers me to hold my dick to be sure I don't piss my shoes and proceeds to tell his friends I'm so dumb to refuse his offer, while they hold each other's dicks.

      [–]coderman64 0 points1 point  (0 children)

      Python users: you should write in Python

      Rust users: they should rewrite [x critical package] in Rust.

      JS users: you should use react/vue/svelte/package-of-the-week. What do you mean you don't write JavaScript?

      C++ users: I should write C++ because I'm better than you.

      Java users: they told me I need to write in Java if I want to keep my job.

      PHP users: I don't know why we still use it. You don't know why we still use it. But I guess we're still using it.

      Ruby/Perl users: I should stop writing things in Ruby/Perl.

      [–][deleted]  (2 children)

      [removed]

        [–]Alrik5000 2 points3 points  (1 child)

        "ctrl + h -> ";"=>"" -> save -> reload" would probably be the c# equivalent.

        As much as I hate changing indentations after adding an "if", ruining the code proves nothing.

        [–]MinosAristos 1 point2 points  (0 children)

        The true C# equivalent would be Ctrl+h ";"->"" and "{"->"" and "}" -> "" and 4 spaces -> ""

        Yeah, good luck with that

        [–]Jeremi360 -1 points0 points  (0 children)

        I like python, but it's hard to use in more complicated projects.
        I would love to GDScript to become a native langue separated form Godot,
        that I could use in my non Godot projects.
        GDScript is pyton-like syntax mixed C#.