[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Edit][Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
4chan
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Toggle

Janitor applications are now open. Apply here!


[Advertise on 4chan]


File: 1382198972401.jpg (6 KB, 275x183)
6 KB JPG
Seriously, why is Python a thing?
Why do I need to install a JavaScript runtime to run yt-dlp?
Why can't I just have a gallery organizer on my webserver without installing Perl?

Yes, I understand it's about "portability", but ffs we don't live in the 1980s anymore. These things have their place, but it should be a tiny exception, basically for scripting and prototyping and and never for anything you expect anyone else to run more than once. You don't distribute your shell scripts, do you?
For compiled software, nowadays you can easily get all the libraries you need, apt or pacman has you covered. Just install and bam you're good to go. And if you're lazy and/or retarded for even that, Go and (especially) Rust made this shit infinitely easier than anything else out there.

I never had to struggle with a C or C++ or Go or Rust program *too* much. Meanwhile pipx made me feel like pissing blood so so so many times. It's godawful. What's worse Python keeps changing its internals, so a program written for Python 3.12 suddenly doesn't run on Python 3.14. And lest we forget the entire "transition to python3" period when you had to juggle with the inconsistencies of who put which version where, pip vs pip3, etc.
And the punchline? Those programs run like shit. Just why?? If you're coding something, just write it in C++ ffs
>>
Python is nice for prototyping stuff, but the problem is that people just use the prototype.
>>
>>108888328 (OP)
>a program written for Python 3.12 suddenly doesn't run on Python 3.14

and don't forget to recompile your c/c++ python extension modules while at it.

they scared off everyone who liked stability with 2 to 3 transition. on python 3 only those who enjoy constant breakage remain.
>>
File: image.png (126 KB, 1150x592)
126 KB PNG
>>108888328 (OP)
good morning saar, please do the needful and redeem the is-even package i am very smart programmer perfect for blazing fast code gorgeous looks no virus
>>
>>108888328 (OP)
From an ML standpoint Python is king because it allows you to work on your app using a REPL. You load your dataset once then do whatever you want with it while it's on memory.
Meanwhile, using a compiled language, if you decide you want to do a different transform or print on your dataset, you have to re-compile and re-run the application (which will includethe lengthy dataset load time). Or you have to code a REPL yourself which is obviously not ideal.
>>
File: 1434032641727.png (2.68 MB, 1402x1052)
2.68 MB PNG
>>108888402
>From an ML standpoint
>>
>>108888429
ML is much more than GenAI slop.
>>
>>108888328 (OP)
>Why aren't compiled programs the absolute standard?
They are.
>>
>>108888328 (OP)
management.
i protoyped something in python 10 years ago. it still is in production and haunts me to this day.
>>
File: 1779198741748964.png (2.37 MB, 1283x1226)
2.37 MB PNG
>>108888336
No it's not, unless your IDE is literally notepad. Compiled languages has way way better quality of life features, in their LSP. Python is good as a "extended calculator" and nothing else. Especially not for making software, and the funny thing is that it is not very hard to learn a new language, py-babies
>>
>>108888328 (OP)
>Why do I need to install a JavaScript runtime to run yt-dlp?
its youtube being faggots and forcing devs to do this
>To download from YouTube, yt-dlp needs to solve JavaScript challenges presented by YouTube using an external JavaScript runtime.
>>
Python is kind of hilarious because every time I need to compile a toolchain or something, I end up with a gorillion versions of Python. Is it really that backwards incompatible?
>>
>>108889641
Python venvs and all are pretty shitty, I'll give you that, but I'll gladly take that over Sepples technical debt caused by backwards compatibility at all costs.
>>
>>108889287
Name a better language.
>>
That's a very good question.
>>
>>108889063
what decade are you living in?
>>
>>108890332
Windows
>>
>>108890332
The vast majority of executable code running on both your system and mine is compiled. Feel free to prove otherwise.
>>
>>108889803
C
C#
Java
Zig
Odin
Jai
C3
Beef
Lua(is scripting though)
Exel
>>
>>108888328 (OP)
Just ask your local ai to install all your shit
>>
>>108888328 (OP)
>Why do I need to install a JavaScript runtime to run yt-dlp?
I dont know what JavaScript is but I can still use yt-dlp easily. Sounds like you know just enough to overcomplicate things for yourself, but not enough to avoid being a retard.
>>
File: 1749433015609582.jpg (162 KB, 1606x887)
162 KB JPG
>>108888328 (OP)
not just compiled programs, but programs that dont rely on dozen layers of abstraction on top of the system
>>
>>108889803
For scripts, scheme/guile
For ML, Julia
For webdev, Go

But I like Python. It's a quite nice 'one size fits all' language
>>
>>108891513
>julia
stop trying to force it. nobody cares about that dogshit language outside of academia. exactly like R
>>
>>108888336
Lisp is nice for prototyping stuff
Python is the stackoverflow vibecode prostitute full of dependency issue bugs
>>
>>108888328 (OP)
>Why do I need to install a JavaScript runtime to run yt-dlp?
because modern youtube has become unscrapable using classical web scraping methods, you need to run some JS code
>>
>>108888328 (OP)
>Seriously, why is Python a thing?
Sunk cost fallacy.
>>
>>108892742
dont use third party packages from jeets. i have no dependency problems.
>>
>>108888328 (OP)
>why is Python a thing?
Because it's the easiest language to learn and people who were from another field like ML engineers and data scientists (who were mostly maths majors) or job switchers or boot camp kiddos wrote their programs in it. Hardware is fast enough now that they don't have to worry about its slowness too.
>>
>>108893087
memory is there to be used
>>
>>108888328 (OP)
I challenge you to make a C program that can be as introspective as the languages you mentioned (perl, python)
This is why these languages are used, the ease at which they can describe the system and themselves
>>
>>108893145
use case?
>>
>>108889803
>sweats profusely
R...rust?
>>
Everyone complains about runtimes, command line interfaces, etc, until they're the ones actually developing the app.
>>
>>108893161
Namely hot reloading is a lot easier with introspection (like emacs) versus reloading a dynamic library during runtime. If you're configuring or tinkering with any software that you don't want to lose the state of this is pretty handy
>>
>>108893178
contrarianpost: some languages let you have your cake and eat it too. SBCL, graalvm etc
>>
>>108893178
Hot reloading angers the gods.
>>
>>108893087
>Because it's the easiest language to learn
python is easy to learn. i found it was so slow that it forced me to learn C
>>
>>108893192
(dev_work*dev_rate) + (exec_time*times_executed)
how to optimize can vary a lot. throwaway scripts are best with python.
OS utils are best in C.
jeets are never worth it.
>>
>>108893217
>throwaway scripts are best with python.
>OS utils are best in C
yes

>(dev_work*dev_rate) + (exec_time*times_executed)
the time wasted gets silly. I regret wasting as much time as I did with python but I must admit what I did learn in python made C a lot easier to learn. if i ever meet the creator of python one day I will thank him for forcing me to learn a language that isn't slow as fuck, if i can get through the crowd of indians
>>
>>108888336
>the problem is that people just use the prototype.
If it works, it works.
>>
>>108893178
>Namely hot reloading is a lot easier with introspection (like emacs)
Emacs is written in C.
>>
>>108893192
What tasks was it too slow for?
>>
File: terminal_tumor.png (27 KB, 571x618)
27 KB PNG
>>108888402
>>108888899
>>108889792
>>
>>108888328 (OP)
>Why do I need to install a JavaScript runtime to run yt-dlp?
They can't bundle what they haven't solved in Python.
>>
I like interpreted languages like APL
>>
>>108889803
Every LISP



[Advertise on 4chan]

Delete Post: [File Only] Style:
[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Edit][Settings] [Search] [Mobile] [Home]
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.