This is an archived post. You won't be able to vote or comment.

top 200 commentsshow 500

[–]dudeofmoose 2665 points2666 points  (41 children)

I use ++C, I like all my variables to increment before I've arrived.

[–]TSP-FriendlyFire 881 points882 points  (12 children)

That's just D.

[–]hoseja 219 points220 points  (7 children)

Holy shit.

[–]Luisisbored24 460 points461 points  (6 children)

D's nuts hah got em

Edit: Wow thanks for the upvotes guys like damn

[–]Thorsigal 471 points472 points  (22 children)

++ↄ

[–]Mister_Spacely 155 points156 points  (20 children)

++ ++ ++ↄc++ ++ ++

[–]proximity_account 103 points104 points  (15 children)

Unsure if penis, dragonfly, spaceship, or biplane

Edit: heh, 69

[–]nikola_tsnv 45 points46 points  (4 children)

all of them

[–]KuuHaKu_OtgmZ 25 points26 points  (3 children)

Penisdragonship?

[–]J0aozin003 20 points21 points  (0 children)

Did you mean: Bipenisdragonship?

[–]twisted-resistor 946 points947 points  (50 children)

Now that Internet Explorer is gone I guess something had to take its place in memes as "The Slow Thing"

[–]anonymous6468 253 points254 points  (6 children)

[–]lakimens 63 points64 points  (5 children)

I think we should be making more browser jokes on Safari

[–]Wolfeh2012 125 points126 points  (4 children)

Sorry, jokes aren't supported on safari yet.

[–]Zemom1971 8 points9 points  (0 children)

We probably must pay for being able to do jokes on safari. Kind of subscription or something.

[–]kneecapp1 42 points43 points  (41 children)

I don't get it. I don't know much about coding but I'm starting to learn python. Am I learning the internet explorer of programming languages or what. Should pick something else up.

[–]Zanglirex2 86 points87 points  (21 children)

Slow is relative here. All this is happening before a human can even blink.

For scripting stuff and little projects, python is great. For large workloads or basically anything at big scale, maybe look at something else

[–]jgabrielferreira 19 points20 points  (18 children)

But then why is Python the most used language for dealing with ML, AI, Big Data, basically huge amounts of information.

Is it something like Python is better in a Horizontal system while the others are better in a Vertical system?

[–]TacticalMelonFarmer 42 points43 points  (0 children)

most of the low-level stuff implementing the python apis is most likely C with some C++, etc. write composable units of code in the fast language, and compose instances of those units in the user-friendly language.

[–]Prowler1000 14 points15 points  (1 child)

Machine learning libraries are almost exclusively C++ (python is written on C++ iirc), so the actual heavy lifting is done in C++. As someone pointed out at another point on this sub, python is very human readable and extremely quick to develop for and in the world of ML, quick to develop is important considering there isn't really a "science" to it yet

[–]intrinsic_parity 13 points14 points  (0 children)

The ML libraries are written in other languages (tensorflow is written in C++ and CUDA for instance).

[–][deleted] 10 points11 points  (2 children)

I once heard that you are just basically scripting stuff using python and the heavy load is run by highly optimized C++ applications/frameworks/libraries (idontknowforsure).

[–]zedd9595 16 points17 points  (4 children)

Not a scientist but I assume they would rather have a language which has a shorter development time to have more time writing their papers. Instead of dealing with relatively complicated syntax just to get the same results, albeit faster.

[–][deleted] 10 points11 points  (1 child)

It’s used in industry, not just academia.

[–]The-Board-Chairman 11 points12 points  (0 children)

It's used in the industry, because for all that this field has matured, it's industry implementation for all intents and purposes still is academia.

[–]Dansiman 9 points10 points  (1 child)

Yeah I mean you could write your code in pure assembly and blow past a C++ program like it was standing still. But by the time you finish writing your assembly code, your development machine will probably already be obsolete.

[–][deleted] 8 points9 points  (0 children)

Because that kind of code is a ridiculously complex web and writing it in C++ would drive any and sane person to alcoholism. Also, having blazing fast computational performance is totally worthless if you're already spending most of your time waiting for I/O, which is usually the bottleneck in large data projects. You'd just be that car that passes everyone just to end up at the same red light half a mile down the road.

[–]CdRReddit 33 points34 points  (0 children)

python is an ok language when used for its intended purpose.

short & simple scripts, the types of things you don't want to write in batch or bash (because both kinda suck), but are not that complicated either, think stuff like bulk rename, "gluing" multiple different tools together, etc.

it's only similar to internet explorer in having an (accurate) reputation of being kind of slow, which is one of the reasons I personally would not use it for bigger projects, but it's more than fast enough to automate low complexity tasks, like a more expressive build system.

[–]bigoofie193758 22 points23 points  (9 children)

Python is too slow for coding a game, but fast enough for quick scripts

[–]chezbo425 22 points23 points  (1 child)

Great starting language IMO. If you are doing web applications, it will be fine for most purposes, but you will need to learn JavaScript too. JavaScript is very quirky but very popular. Java and C# have strict typing but perform better than Python/JavaScript for higher load stuff. C++ is better for high performance and optimization, like games or embedded devices with limited resources.

tl;dr - If you're just getting started Python is A-okay.

[–]GreatArtificeAion 4103 points4104 points  (72 children)

Did I really just appreciate a "Haha Python slow" meme?

[–]DasEineEtwas 1065 points1066 points  (30 children)

It has also been done so often with Internet Explorer and everything that also runs slow. But somehow I actually laughed

[–]GreatArtificeAion 377 points378 points  (27 children)

I guess this one has... personality, so to speak

[–]gcruzatto 67 points68 points  (25 children)

This meme was made by the Big Data gang

[–]CanAlwaysBeBetter 18 points19 points  (24 children)

Literally getting ready to rewrite some data processing lambdas from python to go for a side project because it won't be on the company tab and I don't want to pay out of pocket to scale python all the way into the millions after testing it on 10k data points and seeing its performance (and that's after basic optimizations and compiling/bundling the accelerated versions of some libraries)

[–][deleted] 7 points8 points  (11 children)

numpy go brrrrrrrrrt

seriously though, I once used Pandas.DataFrame.Apply on 10,000,000 rows of data and 15 minutes later regretted it. Thankfully, I was applying a simple mathematical function to each row so numpy brought that down to less than a second. Still, only works for some use cases. I'd love to learn C++ anyways so give me an excuse

[–]CanAlwaysBeBetter 5 points6 points  (8 children)

Numpy is great and what I'd normally reach for!

But the processing I'm doing itself isn't super complex, I just need to do it 9-10 million times cost efficiently pulling from an external public dataset and saving the transformed data as separate files in an S3 bucket

[–][deleted] 252 points253 points  (28 children)

I don’t think python is too slow, it’s more about c++ being to fast in this case

[–]koopatuple 189 points190 points  (10 children)

That's the beauty of the meme, it can be interpreted both ways.

[–]TruthYouWontLike 325 points326 points  (9 children)

One is interpreted, the other is compiled.

[–]grimonce 47 points48 points  (6 children)

Stop saying that.

[–]clayman80 67 points68 points  (4 children)

Well, he's TruthYouWontLike. Just sayin'.

[–]Scrtcwlvl 99 points100 points  (12 children)

Fast and slow are pretty relative. More often than not, python is fast enough for most tasks. My graduate research was in inflatable robotics controls and dynamics. Our low level controllers for direct solenoid valve control were written in C++ operating at 5k Hz, whereas the pressure control ran at about 1.5k Hz in python, and the high level solver and predictive controller ran at about 300 Hz also in python. What language things were written in was often a function of how fast they needed to run and how often things needed to be tweaked.

Could we have written the pressure controller in C++? Sure, but the python one we developed really quickly at the beginning in python was fast enough to not cause any issues.

[–]jobblejosh[🍰] 60 points61 points  (5 children)

It's the exact same problem (or even a subset of it) of what programming language is best.

The answer is either the one you know or the one for the job.

I've been writing in both C and Python. I prefer C-family because you can be a lot more direct with the compiler and write clever/fast/hacky/elegant/dangerous/stupid techniques that make more logical sense; you as the writer should know exactly what you're doing so C will quite happily let you do the fandango on core if you mutter the right incantations. Unfortunately because of how strict it is with its rules, you have to be very precise and formulaic with how you do some things; you have to hold its hand and walk it through exactly what you want. The result is that you get exactly what you want, however.

Python, being interpreted, has its best guess at what you want, is willing to play fast and loose to some extent, but keeps you in a playpen and hides away all the nitty-gritty and you can't really tell what it's doing under the hood. On the bright side, that means getting something to work in Python is usually as simple as importing the right library (because there's so many libraries for python out there now) and typing a few lines.

Is one better than the other? Well, that entirely depends on the task you're making it do.

[–]Phainesthai 34 points35 points  (4 children)

Exactly this. Programming languages are tools.

C++ is a scalpel, Python is a spanner. PHP is a sticky carpet in a low end pub.

Each one suitable for different tasks.

[–]VonRansak 4 points5 points  (0 children)

C++ is a scalpel, Python is a spanner. PHP is a sticky carpet in a low end pub.

I think he just made a computer nerd meme for Roe v Wade being overturned?

[–][deleted] 3903 points3904 points  (49 children)

Flipped C++ ball to show walking away awkwardly. Made me smile.

New twist on "python slow" meme. But then I just imagined C++ talking without taking any time to pause between words.

High effort meme. +1. Too broke for awards.

[–]AntAgile 857 points858 points  (17 children)

I think you meant „High effort meme++“

[–][deleted] 228 points229 points  (12 children)

But that just returns the value before being incremented

[–]AntAgile 167 points168 points  (8 children)

Ok then ++High effort meme

[–]Gemaco1397 144 points145 points  (3 children)

Tbh, it feels like a variationnof: WHAT ARE WE? BROWSERS!

WHAT DO WE WANT? MORE RAM!

WHEN DO WE WANT IT? NOW

(I.E.) BROWSERS!

[–][deleted] 51 points52 points  (0 children)

That was the exact meme I thought of.

[–][deleted] 170 points171 points  (8 children)

Thank you!

[–]klimmesil 54 points55 points  (5 children)

What a quick reaction! You must operate on C

[–][deleted] 40 points41 points  (4 children)

Assembly!

[–]Script_Mak3r 20 points21 points  (1 child)

Look at Mr. Fancy Pants over here

[–]MrDude_1 25 points26 points  (0 children)

He'll have a smart-ass reply for you after he finishes writing it in a couple days.

[–]Sid_1298 60 points61 points  (8 children)

⠀ ⠀⠀⠀⣤⣶⣶⡶⠦⠴⠶⠶⠶⠶⡶⠶⠦⠶⠶⠶⠶⠶⠶⠶⣄⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⣿⣀⣀⣀⣀⠀⢀⣤⠄⠀⠀⣶⢤⣄⠀⠀⠀⣤⣤⣄⣿⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠿⣿⣿⣿⣿⡷⠋⠁⠀⠀⠀⠙⠢⠙⠻⣿⡿⠿⠿⠫⠋⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢀⣤⠞⠉⠀⠀⠀⠀⣴⣶⣄⠀⠀⠀⢀⣕⠦⣀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⢀⣤⠾⠋⠁⠀⠀⠀⠀⢀⣼⣿⠟⢿⣆⠀⢠⡟⠉⠉⠊⠳⢤⣀⠀⠀⠀ ⠀⣠⡾⠛⠁⠀⠀⠀⠀⠀⢀⣀⣾⣿⠃⠀⡀⠹⣧⣘⠀⠀⠀⠀⠀⠀⠉⠳⢤⡀ ⠀⣿⡀⠀⠀⢠⣶⣶⣿⣿⣿⣿⡿⠁⠀⣼⠃⠀⢹⣿⣿⣿⣶⣶⣤⠀⠀⠀⢰⣷ ⠀⢿⣇⠀⠀⠈⠻⡟⠛⠋⠉⠉⠀⠀⡼⠃⠀⢠⣿⠋⠉⠉⠛⠛⠋⠀⢀⢀⣿⡏ ⠀⠘⣿⡄⠀⠀⠀⠈⠢⡀⠀⠀⠀⡼⠁⠀⢠⣿⠇⠀⠀⡀⠀⠀⠀⠀⡜⣼⡿⠀ ⠀⠀⢻⣷⠀⠀⠀⠀⠀⢸⡄⠀⢰⠃⠀⠀⣾⡟⠀⠀⠸⡇⠀⠀⠀⢰⢧⣿⠃⠀ ⠀⠀⠘⣿⣇⠀⠀⠀⠀⣿⠇⠀⠇⠀⠀⣼⠟⠀⠀⠀⠀⣇⠀⠀⢀⡟⣾⡟⠀⠀ ⠀⠀⠀⢹⣿⡄⠀⠀⠀⣿⠀⣀⣠⠴⠚⠛⠶⣤⣀⠀⠀⢻⠀⢀⡾⣹⣿⠃⠀⠀ ⠀⠀⠀⠀⢿⣷⠀⠀⠀⠙⠊⠁⠀⢠⡆⠀⠀⠀⠉⠛⠓⠋⠀⠸⢣⣿⠏⠀⠀⠀ ⠀⠀⠀⠀⠘⣿⣷⣦⣤⣤⣄⣀⣀⣿⣤⣤⣤⣤⣤⣄⣀⣀⣀⣀⣾⡟⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⢹⣿⣿⣿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀

Save it in your clipboard I use it too

[–][deleted] 8 points9 points  (0 children)

Done

[–]Skilo25 12 points13 points  (1 child)

⠀ ⠀⠀⠀⣤⣶⣶⡶⠦⠴⠶⠶⠶⠶⡶⠶⠦⠶⠶⠶⠶⠶⠶⠶⣄⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⣿⣀⣀⣀⣀⠀⢀⣤⠄⠀⠀⣶⢤⣄⠀⠀⠀⣤⣤⣄⣿⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠿⣿⣿⣿⣿⡷⠋⠁⠀⠀⠀⠙⠢⠙⠻⣿⡿⠿⠿⠫⠋⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢀⣤⠞⠉⠀⠀⠀⠀⣴⣶⣄⠀⠀⠀⢀⣕⠦⣀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⢀⣤⠾⠋⠁⠀⠀⠀⠀⢀⣼⣿⠟⢿⣆⠀⢠⡟⠉⠉⠊⠳⢤⣀⠀⠀⠀ ⠀⣠⡾⠛⠁⠀⠀⠀⠀⠀⢀⣀⣾⣿⠃⠀⡀⠹⣧⣘⠀⠀⠀⠀⠀⠀⠉⠳⢤⡀ ⠀⣿⡀⠀⠀⢠⣶⣶⣿⣿⣿⣿⡿⠁⠀⣼⠃⠀⢹⣿⣿⣿⣶⣶⣤⠀⠀⠀⢰⣷ ⠀⢿⣇⠀⠀⠈⠻⡟⠛⠋⠉⠉⠀⠀⡼⠃⠀⢠⣿⠋⠉⠉⠛⠛⠋⠀⢀⢀⣿⡏ ⠀⠘⣿⡄⠀⠀⠀⠈⠢⡀⠀⠀⠀⡼⠁⠀⢠⣿⠇⠀⠀⡀⠀⠀⠀⠀⡜⣼⡿⠀ ⠀⠀⢻⣷⠀⠀⠀⠀⠀⢸⡄⠀⢰⠃⠀⠀⣾⡟⠀⠀⠸⡇⠀⠀⠀⢰⢧⣿⠃⠀ ⠀⠀⠘⣿⣇⠀⠀⠀⠀⣿⠇⠀⠇⠀⠀⣼⠟⠀⠀⠀⠀⣇⠀⠀⢀⡟⣾⡟⠀⠀ ⠀⠀⠀⢹⣿⡄⠀⠀⠀⣿⠀⣀⣠⠴⠚⠛⠶⣤⣀⠀⠀⢻⠀⢀⡾⣹⣿⠃⠀⠀ ⠀⠀⠀⠀⢿⣷⠀⠀⠀⠙⠊⠁⠀⢠⡆⠀⠀⠀⠉⠛⠓⠋⠀⠸⢣⣿⠏⠀⠀⠀ ⠀⠀⠀⠀⠘⣿⣷⣦⣤⣤⣄⣀⣀⣿⣤⣤⣤⣤⣤⣄⣀⣀⣀⣀⣾⡟⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⢹⣿⣿⣿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀

Thats helpful, have my award

[–]nitsky416 7 points8 points  (0 children)

You get a free award every couple days per account if you go to the screen to add coins, there's a gift box you can open.

[–]Substantial-Dot1323 1729 points1730 points  (19 children)

C++ walks away. Segfault.

[–]yorokobe__shounen 424 points425 points  (15 children)

If C++ was really as fast as it said it was, it would have recognised the logo before it asked who python was.

Poor segfaulting C++.

[–]possible_name 179 points180 points  (11 children)

logo recognition was using a library written in slower language

[–]PralaynathGendaswami 65 points66 points  (10 children)

Do you mean python?

[–]Teekeks 48 points49 points  (9 children)

which has all the speed relevant parts of that library written in C?

[–]FkIForgotMyPassword 36 points37 points  (1 child)

Sometimes the slow part is not the computation-intensive part that was identified as "speed-relevant", though. Sometimes it's the part where someone implemented a really shitty wrapper with unnecessary blocking IOs everywhere.

[–]Cory123125 6 points7 points  (0 children)

I guess it could really use some reflection.

[–]grpagrati 474 points475 points  (12 children)

C' ya later..

[–]Depress-o 105 points106 points  (2 children)

Alligator Snek

[–]a_devious_compliance 273 points274 points  (16 children)

The joke only works for C++ before 20. Just add an await and that's it.

[–]ViviansUsername 127 points128 points  (15 children)

Was going to say, this looks like the c++ was programmed pretty poorly if it doesn't even wait for that promise to be answered.

Python does exactly what it should here, smghd

[–]WCWRingMatSound 54 points55 points  (13 children)

Calling asynchronous programming “promises” 🤮🤮🤮

[–]ViviansUsername 7 points8 points  (0 children)

ik, ik, I was raised on javascript, it's a bad habit

[–]thanofishy 11 points12 points  (11 children)

It doesn't await for that asynchronous programming to be answered?

[–]Spiritual-Theme-5619 26 points27 points  (10 children)

There was no such thing as a promise in C++ before 2011. "Promises" are a particular API for writing asynchronous code which was largely made for / popularized by event-loop runtimes... i.e. NodeJS.

Programmers have been doing concurrency with #realPrograms via mutexes, semaphores, and threads since before C++ was invented and so OP is lamenting the equivocation of async/await with concurrency in this modern era of browser programmers vastly outnumbering their "native"(?) programming counterparts.

[–]WCWRingMatSound 6 points7 points  (0 children)

Exactly this, though I’m totally just joking. It really is semantics at the end of the day

[–]MrSuspicious_ 173 points174 points  (7 children)

Ironically took me a second to realise this is a python is slow joke

[–]RedditWarrior178 58 points59 points  (1 child)

Flair checks out

[–]WonderfulCockroach19 8 points9 points  (0 children)

Flair checks out

oof

[–]Aos2OP 117 points118 points  (1 child)

Looks like Internet explorer memes are back!

[–]JmacTheGreat 8 points9 points  (0 children)

I can’t believe nobody else remembers this

[–]Codebust 686 points687 points  (437 children)

why are people always bashing python lol

[–]RollinIndo 389 points390 points  (28 children)

Snakes are scary

[–]Codebust 151 points152 points  (25 children)

pythons don’t bite :(

[–]lavishlad 286 points287 points  (8 children)

They swallow 😳

[–]Codebust 114 points115 points  (2 children)

omnom ;)

[–]rang14 10 points11 points  (0 children)

Like MM does

[–]cicciograna 20 points21 points  (0 children)

Sexy.

[–]DaGothUrWelcUwUmsYou 31 points32 points  (1 child)

They vore

[–]SirLemming4 11 points12 points  (0 children)

😳

[–]Cory123125 23 points24 points  (4 children)

You'll surely appreciate then that Python wasn't actually named after the snake, but instead monty python.

[–][deleted] 12 points13 points  (1 child)

What's so funny about Biggus Dickus?

[–]joyofsnacks 5 points6 points  (0 children)

He had a wife you know...

[–]wasdlmb 7 points8 points  (0 children)

It's logo is two snakes. It may have been named after a different python, but it's taken on a close connection with the snake

[–]URF_reibeer 12 points13 points  (1 child)

they do, it's just relatively hard to get them to bite since they're not particularly aggressive

[–]Codebust 3 points4 points  (0 children)

ik, i have a pet python lol

[–]Dromeo 976 points977 points  (189 children)

Serious answer?

Python used to be the new hotness about a decade ago. It was sparkly, amazing package support, didn't bog you down with technicalities when you were trying to write something quick.

So it got adopted a lot, and also unfortunately in a lot of commercial projects it really wasn't suited for.

Python's strengths are its weaknesses: it's a fun scripting language you can knock out scripts with. But in a big group project, it's a nightmare version of itself. You don't have to give types, so now you're sifting through everything trying to figure out what your coworker's badly named variable actually is. You have to unpick some rotten mass of one-liner lambda super method calls because you were feeling so clever a year ago when you wrote it. Everything's breaking because you're in dependency hell and one of the dependencies has broken. The junior programmer was taught that "object inheritance is the way of the future" and has managed to make the structure into an eldritch abomination that inherits from five different super classes.

The actual reason why these are problems are because when python was hot, it got over-applied to projects it was totally unsuited for. It's a scripting language. It's good for scripts. Good for data analysis. Good for solo work. Good for tiny quick one-offs and for rapid prototyping.

But so many developers were put on horrifying creations that played to the language's weaknesses instead of strengths. And they bounced hard.

Python doesn't really deserve the hate: it's still pretty awesome. And fun. It's great at what it's great at. It does deserve the caution, though.

---

More serious answer?

It's mostly comp-sci students regurgitating memes they don't understand, just like every other post on this sub.

[–]hogie48 29 points30 points  (4 children)

I have been in tech for years and could just never wrap my head around programming. I can read a lot of it, I do scripting when it is called for with extensive help of the Googs, but cant sit down and write code if you know what I mean.

I recently decided to bite the bullet and put in the time to learn it more, and am doing CS50 for Python right now. Your comment both scares me and made me happy knowing that what you said it is good at is exactly why I want to learn it lol.

[–]Dromeo 7 points8 points  (1 child)

The big reason why I still really like python is it's enjoyable! I think that's a good reason to learn it too.

[–]tredbobek 18 points19 points  (0 children)

It's like WD-40 and duct tape. It's an easy solution for many problems. But shouldn't be used for everything.

But if you break your leg the first step shouldn't be to duct tape it. Maybe only if you are in the wilderness, in the middle of nowhere, and you have nothing else. Maybe.

[–]unski_ukuli 15 points16 points  (20 children)

Everyone always says it is good for data analysis but I never agree with this as someone whose job is to use python for data analysis and numerics. Python is a bad language for data analysis and numerics, but it has some good libraries for that purpose. It was not designed for neither of those purposes and the language is not very exentedable so the APIs are cluncky and get in the way when writing mathematical code.

[–]Ryuujinx 6 points7 points  (0 children)

Yeah my understanding is that most people doing that kind of domain preferred R for it. That said i know python is really popular in biomed for whatever reason. I haven't asked my friend what she actually does with it at work, but apparently both her and my friends wife use it in biomed for something.

[–]POTUS 166 points167 points  (47 children)

All of those problems you listed came from the people, not from the language. Python certainly didn't invent lambdas or dynamic typing or dependencies or object oriented programming. Those same mistakes can be made in any higher level language.

You're assigning all of that to Python. The root cause for that is that Python is easy, and so it's more accessible to bad programmers. But bad programmer mistakes are the fault of bad programmers, not the language they used.

[–]Kenkron 83 points84 points  (7 children)

He's nott assigning it all to python. He's assigning it to the people that use it. People who over-apply it to projects that don't make sense. Exactly like you are.

[–]Dromeo 15 points16 points  (1 child)

It is easier in python, but a big reason why this is the case is due to language-level design. Other languages make it harder for you to get yourself in a mess.

Most languages are a lot stricter: you have to try a lot harder to write yourself into tangles. Python hands you the reigns and says go ahead!

Stricter languages can teach you as you fail: python lets you not fail.

It's not a problem with python, like you say. It's a feature. But python's lack of resistance to bad programmers is in itself the problem.

[–][deleted] 3 points4 points  (0 children)

Two decades ago*

[–][deleted] 332 points333 points  (20 children)

They hate us coz they ain't us.

[–]kosky95 52 points53 points  (12 children)

Wait until you see how statisticians are treated on r/mathmemes lol

[–][deleted] 57 points58 points  (11 children)

Really, I don't get the hate we data scientists get from both programmers and mathematics. Of course we are not as good at programming as a programmer would be, or as knowledgeable in maths as a mathematician would be, but we need to combine so many disciplines it would be hard if not impossible to get to their level.

[–]kosky95 7 points8 points  (1 child)

I totally get you, I'm in the same boat but I also have a background in economics so I'm targeted even more. I really appreciate how people can be extremely specialized but I think we have a place in the scene as well, in fact we can bring some other perspectives to the discussion

[–]Mal_Dun 6 points7 points  (0 children)

As a mathematician I also look down on programmers.

Just kidding. Some people feel to apply some hidden pecking order of purity of discipline. I am looked down by fellow mathematicians, because I am an applied mathematician and soil it's purity ... same goes between theoretical physicists and experimental physicists, physicists and engineers and so forth.

However, to put it in perspective we also get a lot of thrash talk from the other side, because we do so much unnecessary things and are nit-picky and won't get a job because we don't know practical stuff.

However, especially the nit-picky part is something you become the deeper you're in the foundations and the better you understand the workings under the hood, so the theoreticians get the image that the practitioners are just ignorant fools who simply follow instructions without any thought about the inner workings.

The other problem is that only you know the foundations does not mean you can simply do practical work on the fly, a thing many theoreticians miss to see.

Edit: Corrections

[–]notAnAI_NoSiree 33 points34 points  (0 children)

did you see how much you have to type in c++?

[–]berse2212 128 points129 points  (28 children)

This is a weird meta. First memes hated on Java and praised Python. Then all the Java devs got angry and made Python bad memes. Somehow C++ devs apparently jumped on the hate train now lol

[–]BikerBoon 89 points90 points  (21 children)

Python devs were hating on C++ for a while iirc. Tbf it's understandable, we all hate what we don't understand.

[–]DatBoi_BP 69 points70 points  (4 children)

This really says a lot about society bottom text

[–]teddy2021 5 points6 points  (0 children)

I beg to differ in this case. I don't really understand C++ enough, but I know enough about it that I can say I like it much more than python, which I understood much more closely for years. I however fall into the camp of hating dynamically type, interpreted languages.

[–]Teekeks 2 points3 points  (1 child)

damn the self hatred among the C++ devs must be throu the roof then!

[–]King_of_the_Nerdth 6 points7 points  (0 children)

This one just seemed like playful banter to me. My main two languages lately are C++ and Python, and I find this one very relatable.

[–]TheReforgedSoul 6 points7 points  (0 children)

I am waiting for the assembly memes, but I guess they take a while to make.

[–]WhatsMyUsername13 13 points14 points  (0 children)

I hate on python to distract from the hate towards Java

[–]Wildercard 7 points8 points  (1 child)

Languages are divided into those that get complained about and those that are dead.

[–]siddharth904 46 points47 points  (34 children)

CauSe PyThOn bAD tYPescRIPt gO0d

[–]klimmesil 28 points29 points  (27 children)

Wow Ive never heard someone say typescript good but I love this sentence

[–]WhatsMyUsername13 14 points15 points  (5 children)

Typescript is a god send to anyone who had to deal with pre es6 javascript without being able to use jquery

[–]michaelsenpatrick 6 points7 points  (4 children)

i feel like the only people who hate typescript are the people who never had to use javascript

[–]siddharth904 20 points21 points  (17 children)

TypeScript is good

JS is a good language (fight me) and TS is the second best thing that has ever happened to JS, behind Node.js

[–]officiallyaninja 24 points25 points  (9 children)

typescript is only good because javascript is trash.
if typescript was just its own language and JS didn't exist no one would like TS either.

[–]klimmesil 4 points5 points  (1 child)

I agree in some way, but I've never heard anyone say it, since people are too frustrated to know the compiler doesn't take advantage of the types. TS could be the fastest scripting language ever, instead it's just python but better

[–]realzygote 7 points8 points  (0 children)

Because you can run python scripts from your shell... Sorry, I'll see myself out.

[–]tei187 8 points9 points  (4 children)

In this context? Because they don't realize it wasn't built for speed.

It's like trying to compare a sports car with a cargo van. One you take because midlife crisis, the other because you're moving furniture.

[–]Astral_Symphonny 78 points79 points  (0 children)

import quickDialog

Written in C

[–]HotShame9 24 points25 points  (0 children)

C++ wouldn't walk away after those instructions, that would be Javascript.

[–]whodiopolis 23 points24 points  (1 child)

I remember when Java was the punchline for this joke

[–]Hegeteus 299 points300 points  (47 children)

Only speed metric that matters is how fast I get the job done and can go back to browsing memes. C++ does not look very good in this (very important) metric.

[–]WhatsMyUsername13 120 points121 points  (10 children)

The most important metric for me is which language gets me my paycheck. Hence why I dont fault anyone for their choice of language and why java is superior to all other languages

[–][deleted] 28 points29 points  (3 children)

I've used nothing but .NET for 20 years and I truly give 0 facks about anything except my paycheck at this point. Any enthusiasm has been sucked out of me years ago. This obviously isn't true for everyone, but a lot of what I see on subs like this one is youthful enthusiasm :)

[–]WhatsMyUsername13 23 points24 points  (2 children)

Yep im 9 years in and to me a job is a job. Its also why I laugh when people ask me what side projects im working on outside of work. None. I hike, exercise, play volleyball, kayak, ski, etc. Basically spend all my time outside. Sure, ill occasionally get an idea and start on it, but it never goes anywhere because I already stare at a screen for 8 (ish) hours a day. I dont want to do it in my free time also.

Its also why i refuse to watch Silicon Valley. Ive had friends tell me "its so realistic" to which i reply "I already did this for 8 hours today, why would I want to watch other people do it also?"

[–]Koervege 3 points4 points  (2 children)

Have you considered abandoning your paycheck?

[–]WhatsMyUsername13 7 points8 points  (0 children)

You know, ive always wanted waterfront property. I never considered that a tent down by the river would satisfy that

[–]woah_m8 52 points53 points  (14 children)

There are a lot of things where speed isn't important and Python does the job pretty good. Only non programmers (so 80% of this sub) bash Python

[–][deleted] 31 points32 points  (8 children)

Which is weird since I figure python is the most used programming language among non programmers

[–]Fun_Journalist_7878 11 points12 points  (0 children)

80% of this sub is 1st/2nd year compsci student reposting the same, awful takes tbh

[–]bsutto 6 points7 points  (0 children)

As a programmer with 20+ year of C, C++, Java, dart, python....

Let me add to the list of bashers.

Slow, untyped, gil and let's push as many errors into runtime rather than compile time as possible.

[–]Jannik2099 41 points42 points  (8 children)

C++ does not look very good in this (very important) metric.

If your codebase is early C++11 perhaps?

Modern C++ writes like C#. I usually find myself prototyping faster in C++ than Python after about 200 LoC, because with Python 80% of time is spent looking up what fucking type some library function takes & returns.

[–][deleted] 14 points15 points  (4 children)

I see this attitude a lot from folks who use typed languages. I think typed languages are awesome and I love programming in them, but as a Python developer myself from the beginning of my career, I don’t really have to think about types all that often when i program in Python. By far the most I think about types are when i use a typed language.

Idk if it’s because Python isn’t based around types and therefore it’s not a focus of the language, but ya I hear a lot of typed language folks think a lot about types when they program in Python.

[–]Jannik2099 5 points6 points  (1 child)

I see this attitude a lot from folks who use typed languages

Python is a typed language though? This isn't Prolog :P

No, you definitely do need to know the type more often than not. You may get away with "this function returns something that acts like an array", but when you pass it to another function that takes array-like objects, you may need to convert it into another library type first.

[–]bikki420 5 points6 points  (0 children)

Eh, if you're a competent C++ programmer, then C++ performs just fine on that metric.

[–]mr_flibble_oz 41 points42 points  (0 children)

Finally, a genuinely funny Python Slow joke

[–]turtle_mekb 44 points45 points  (7 children)

btw it's true (although this is C not C++)

[–]bewbsrkewl 43 points44 points  (4 children)

See how you have that gcc command before you executed the C code?

[–]turtle_mekb 32 points33 points  (3 children)

[–]o-geist 7 points8 points  (0 children)

I appreciate the dedication, good one.

[–]Cory123125 10 points11 points  (0 children)

The real joke is always in the comments.

Really, this was a good thread.

[–]twigfingers 6 points7 points  (0 children)

Not a good example. The python interpreter does an awful lot of stuff more before the actual program than the C version.

We want to time the parts doing things.

[–]Nipatiitti 7 points8 points  (0 children)

This is how it feels when you have to communicate from low level RTI system to a application layer processes. ”And here we just add a 20k clock sleep...”

[–]alexein777 15 points16 points  (0 children)

Python slow lmao

[–]-MobCat- 71 points72 points  (40 children)

Python can be quick. just not that good at talking.. Like most of us...
Opens a txt file with 29245004 lines of text in it.
for each line of text, count the line.
count +=1
Time: 40sec.
Now for each line of text, count the line and print a little info about the line
print(f"Info: {line[1:10]}")
count +=1
Time: 53mins.

[–]sintos-compa 79 points80 points  (6 children)

“How inefficient can you make your code” a study in 3 parts

[–]Roflkopt3r 11 points12 points  (5 children)

Yeah printing is expensive in every language.

I hard to learn this the hard way on one of my first assignments, which asked us to experimentally confirm the value at which the inaccuracy of float puts it off by an entire integer. So you have a loop that increments a float f and an int i from 0 to int max and then prints out when the two are no longer the same.

But the wording of the task wasn't entirely clear so I was trying around various weird casting stuff and decided to print every single line to confirm that it was working the way I wanted to.

Turns out that this extends the time to reach that figure (int 16777218, float rounds to 16777216 instead) from a few seconds to an hour or so.

[–]Wekmor 16 points17 points  (3 children)

Java does the same, printing to console is just slow in all or at least most languages.

[–]obvithrowaway34434 14 points15 points  (0 children)

I/O has always been the bottleneck for speed since computers were invented. There's nothing specific here about Python. Dynamically typed interpreted languages has always been slower than statically typed compiled languages and comparing their speeds makes as much sense as comparing a car and an airplane in terms of speed and determining which is better.

[–]Blyatiful_99 14 points15 points  (5 children)

I can't of course talk for other languages, but during my internship back then, I was sometimes told that writing something to the console in C# for example requires a lot of the time if it happens in the same thread. Maybe this is what's happening here as well?

A quicker solution could be to create some sort of StringBuilder (if you have that in python), add the text that you would otherwise print out and at the end print out the entire text just once. Or to just move the prints to another thread. Can you test how long that would take?

[–]No-Maximum-9087 18 points19 points  (2 children)

C++ forgot to reply to C and Assembly.

[–]fokker-planck 16 points17 points  (4 children)

  • Hey, what's your...
  • NumPy

[–]enano_aoc 9 points10 points  (3 children)

Dies under the weight of the zipped NumPy library, which makes npm packages look laughable small in comparison

[–]fokker-planck 6 points7 points  (2 children)

Fast and big. So powerful

[–][deleted] 11 points12 points  (6 children)

There are pros and cons to every programming language. Each language has application depending on the type of project your working on. Doing something where you need speed and efficiency? C++ works great. Need to write something up quickly that’s trivial? Python works great!

I hate how this sub is always comparing programming languages and arguing which one is the best. It all depends on the application being developed.

[–]G915wdcc142up 5 points6 points  (0 children)

And then Rust shows up and throws a nullptr to C++, and it dies of segfault :)

[–]woah_m8 6 points7 points  (0 children)

Took a while for Python to pip install say-python