r/ProgrammerHumor • • 7d ago • Bravo 2 Popcorn 1

Meme pythonSlow

Post image
12k Upvotes

421 comments sorted by

View all comments

Show parent comment

-1

u/anzu3278 7d ago

ITT: a language being used implies it's good

16

u/Fmeson 7d ago

If a language is widely used there is probably a reason for that. 

And yes, that applies to Javascript to. 

-9

u/anzu3278 7d ago

Baby's first programming language is widely used by people with baby levels of programming skill. Fork found in kitchen.

6

u/Fmeson 7d ago

Ah,  you're a troll

-4

u/anzu3278 7d ago

No mon I be fully human, by Zul I swear.

6

u/tragiktimes 7d ago

Dumbest thing ive read yet today. Nice.

3

u/Fmeson 7d ago

Then you can understand Python being simple to write is an advantage, not a weakness. 

1

u/Ok_Turnover_1235 7d ago

By that logic we should all still be using VB6 and it's a great language.

-1

u/Fmeson 7d ago

I said being simple is an advantage, not that it is the only thing that matters.

3

u/Ok_Turnover_1235 7d ago edited 7d ago

I pointed out in another thread, simplicity takes a lot of options away from you and actually makes a lot of things harder or worse. Runtime type checking has to happen on every operation, an integer isn't just a value, it's a full object with reference counts, metadata, etc. Static analysis isn't possible, the list goes on. Cache alignment can't be done a per platform basis, and has to be done by padding data structures manually which means it fails or doesn't work properly on a platform with a smaller or larger cache.

It's an advantage if you're optimising for development time and not quality (of any kind, whether that's performance or memory usage or whatever). It's syntax isn't actually any better than C++ or rust in a lot of cases, and doing OOP in it just awful.

1

u/Fmeson 7d ago

It's an advantage if you're optimising for development time

That is often the most important thing. Maybe it's even usually the most important thing.

I remember a senior guy teaching me early on to ask "How much do I gain by optimizing for my resources vs. the computers". There is a huge range of use cases where the programmers resources are far more valuable.

e.g. Writing statistical analysis code for a scientific experiment. Making a data pipeline. Writing a script to do some file manipulation on your computer.

Hell, half the time I need rust or C++, it ends up being really nice to write a library and call it from python.

→ More replies