← Home ← Back to /g/

Thread 105801636

47 posts 8 images /g/
Anonymous No.105801636 [Report] >>105801709 >>105801815 >>105801865 >>105802373 >>105802378 >>105802891 >>105804226 >>105804365 >>105804902 >>105804966 >>105805243
Python is only for teaching and fast prototypes

Not for the actual implementation

Change my mind
Anonymous No.105801700 [Report] >>105801792 >>105801865
It's a scripting language - you use it to 1) automate tasks that don't require a lot of computing power or 2) quickly and easily splice together libraries written in another language
Anonymous No.105801709 [Report] >>105801792 >>105801889 >>105804016
>>105801636 (OP)
The AI revolution is being carried by Python.
Anonymous No.105801715 [Report] >>105804345
reasonable
using languages with dynamic typing for any kind of load-bearing or commercial software is unjustifiable, the guarantees that strong, statically typed languages provide are so obvious and useful for building robust software
"gradual typing" is a meme
that is to say nothing of Python's horrible performance, retarded syntax, or deployment issues
Anonymous No.105801792 [Report]
OP is right, and only idiots disagree. What he didnt mention is python horrible dependency hell making it unsuitable for using more than once. Tools like conda being standard makes this self-evident.

>>105801700
So you pretty much agree with OP.
>>105801709
Not at all, it's holding local AI back. Now, actual AI isn't done in python, but python is used as the bloated and fragile script glue (see pic rel, tensorflow for example). Local AI innovation would have gona much faster if python didn't become the standard, because there's often so many problems getting python dependencies installed and running.
Anonymous No.105801815 [Report]
>>105801636 (OP)
Mogged by js.
Anonymous No.105801865 [Report]
>>105801636 (OP)
>>105801700
Anonymous No.105801889 [Report]
>>105801709
every python based backend sucks ass and are more often than not completely incompatible with each other because of python's package autism.
Anonymous No.105801919 [Report] >>105802359 >>105804353
the sad reality is python doesnt excel at anything. slow start up time so it gets beat by bash as a scripting language. slow runtime so it gets beat by anything for application development. i think the only thing it has going for it is foreign function interface, but so many languages do it so it doesn't really stand out
Anonymous No.105801953 [Report]
just get the toaster from point a to point b
Anonymous No.105802359 [Report]
>>105801919
>doesnt excel at anything
amount of available libraries
best dev speed
best readability

>slow start up time
actually one of the best

>it gets beat by bash as a scripting language
this has to be a bait
Anonymous No.105802373 [Report]
>>105801636 (OP)
Why do you let python and brown people live rent free in your head?
Anonymous No.105802378 [Report]
>>105801636 (OP)
It's not slow for real world usage if you know how to code
Anonymous No.105802891 [Report]
>>105801636 (OP)
Posted it again award.
Changed the filename award.
Anonymous No.105804016 [Report]
>>105801709
Unfortunately.
Anonymous No.105804226 [Report]
>>105801636 (OP)
Python is extremely useful for automation when shell scripts won't cut it but you don't want anything more elaborate than a single-file script.
Anonymous No.105804345 [Report] >>105804811
>>105801715
ok but back in reality, that's not what happens.
i'm not saying it's right, i'm saying it's what happens
Anonymous No.105804353 [Report]
>>105801919
you're being intentionally obtuse
Anonymous No.105804365 [Report]
>>105801636 (OP)
>write prototype quickly
>it's fast enough
>ship it to production
pretty much
Anonymous No.105804811 [Report] >>105804985
>>105804345
yeah because using Python means hiring is easier, the people I have worked with that only know Python or only want to use Python are morons, and there's a tonne of them out there
becoming a "Python dev" means you are doomed to work with idiots
Python is fine for proof-of-concepts, prototypes, helper scripts, etc. but inevitably a brain dead PM sees it and says "ok lets ship it"
Anonymous No.105804902 [Report]
>>105801636 (OP)
Don't need to, you're 100% correct. It's even better if you don't use it at all
Anonymous No.105804966 [Report]
>>105801636 (OP)
Agree.

It's a horrible lang and ecosystem. I split every time I need to use this piece of dogshit.
Anonymous No.105804985 [Report] >>105805011
>>105804811
i have several pieces of "throw away" and "prototype" python in production. computer time is a few cents an hour. a dev to translate it into a proper language is thouands of dollars a week.
the math is simple:
(dev time)*(dev rate) + (execution time)*(times executed)*($/cpu-hr)
for a lot of things, the first term dominates. so prototypes become production.
Anonymous No.105805011 [Report] >>105805015 >>105805042
>>105804985
Can't you at least use a non-masochistic language like Lua?
Anonymous No.105805015 [Report] >>105805020
>>105805011
>non-masochistic
>Lua
Anonymous No.105805020 [Report] >>105805058
>>105805015
Anything is non-masochistic compared to Python
Anonymous No.105805042 [Report] >>105805052
>>105805011
lol
lmao even
Anonymous No.105805052 [Report] >>105805077
>>105805042
The first thing I do when I find something I want to use that uses Python is finding a Lua alternative. If I'm going to use a prototyping language it's going to be one that doesn't make me regret having eyes
Anonymous No.105805058 [Report] >>105805062 >>105805150
>>105805020
Lua has literally every single flaw that Python has and then some, nocoder.
Anonymous No.105805062 [Report]
>>105805058
It doesn't make me want to gouge my eyes out so it's got that going for it. And preferring a language over yours doesn't mean I'm not a programmer
Anonymous No.105805077 [Report] >>105805088
>>105805052
what are you talking about? they're basically the same. youre splitting cunt hairs over keywords and colons?
Anonymous No.105805088 [Report] >>105805100
>>105805077
I don't know how to articulate it, I just know that Lua doesn't feel like a form a torture perfected by the CIA at Guantanamo.
Anonymous No.105805100 [Report] >>105805106
>>105805088
did you learn lua before python?
Anonymous No.105805106 [Report] >>105805118 >>105805150
>>105805100
I tried Python, hated it immediately, and learned Lua instead
Anonymous No.105805118 [Report] >>105805124
>>105805106
some people juggle geese
Anonymous No.105805124 [Report]
>>105805118
How'd you know what I do for a side hustle?
Anonymous No.105805150 [Report] >>105805185
In a decent world we'd be using something like Scala, D, Crystal, or even some variant of Clojure in a non-niche runtime (meme lang, but shadow-cljs mostly works). At this point i'll take either Deno/Bun or Go.
>>105805058
It's faster (not by much) and has a slightly better package management with luarocks. Doesn't choke that easily with multithreaded shit.
>>105805106
It's the annoyance of the ecosystem that does it for me. You can't just clone and tard handle it into a venv for anything serious. There's always a catch.
Anonymous No.105805172 [Report] >>105805201
> chatjeetpt
> rewrite this code in C++
wow that was hard
literal dalit tier thread
Anonymous No.105805185 [Report] >>105805214
>>105805150
yeah. trannies, not even once.
python 2.7 works like a charm.
python 3.x is dependency hell.
what happened? TOS and COC and forcing the old core devs out for being white men
Anonymous No.105805201 [Report] >>105805211
>>105805172
despite the constant shilling on this board, AI translations are on par with retarded jeet interns. maybe some day it will get better. but its certainly a long way off for X-->python, and even longer for python-->X
Anonymous No.105805211 [Report] >>105805225
>>105805201
Considering every single AI out there except DeepSeek (which was stolen and distilled from the other ones) was created substantially by Indians nobody cares about ur racism sir
Anonymous No.105805214 [Report] >>105805234
>>105805185
Conda was the last straw i needed to uninstall Windows. Everything using that thing that's older than three years just rots. You basically would've been way better using a container since the beginning cause everything academic needs platform wheels.
Anonymous No.105805225 [Report]
>>105805211
SAAAR WE IS DOCTOR AND CEO AND ENGINEER SAAAR
Anonymous No.105805234 [Report]
>>105805214
you dont understand anon, we have to use this new framework so we can pay our devs 600k/yr instead of 500k/yr and scale our big edge synergy nanoservice inclusion business
Anonymous No.105805243 [Report] >>105805286 >>105805333
>>105801636 (OP)
Python is for little scripts that are a bit too complex or would be a bit too involved for bash.
Anonymous No.105805286 [Report] >>105805333
>>105805243
anything with math. including loops.
Anonymous No.105805333 [Report]
>>105805243
>>105805286
As a rule of thumb, anything that needs a non-exclusive dependency like CUDA is better off writen in another language unless you're paid to deliver it. Is basically sits on the same pre-shit-hits-the-fan threshold as using bash arrays.