Attached: c.png (1200x1200, 23K)
The only language you'll ever need
Michael Ramirez
Other urls found in this thread:
ideone.com
youtube.com
twitter.com
Grayson Perry
I see
Nicholas Gomez
b-but user, I am learning Python. Do I need to go all over again with C ?
Joseph Green
people on Jow Forums shit on python a lot but never really explain why
David Johnson
basically because its slow when you want to do anything more than your 1 line hello world script
people use it for data science and shit because its easy to use, but it's still terribly inefficient
Colton Gutierrez
Wrong. You have two options: write shit in C, fast but takes more time to get working shit or write shit in Python: almost as fast as C because Numpy, numba, pandas etc all written in C, and you can get your shit done in minutes.
Pick your poison gentleman
Samuel Foster
this is simply an inane and retarded comment
Anthony Murphy
python is like dropping a ball into a fucking pachinko
Aaron Lopez
What if you take C and make a language and call it, say, C++? Still C, right?
Jack Rivera
Alright you masochists, give me your C program which can open 10 GB of CSV file with 10,000 column, 1,000,000 rows and does a spearman correlation among these.
My Python code written in a second is:
df = pd.read_csv(file.csv)
corr = df.corr()
Literally takes a second to compute the results too.
Luis Gonzalez
read specifically
>people use it for data science and shit because its easy to use, but it's still terribly inefficient
also you can do that in C with the stdlib and gain a ton of efficiency over your "pandas" library (which is inevitably bloat)
Sebastian Lewis
Show the code or shut up. Then compare performance.
Isaac Hall
Brody Barnes
ftfy
Ethan Johnson
Jokes on you, all the data science parts are written in C.
Python is great as a scripting language for doing shit with files and strings, and as a wrapper around a BLAS and other compute heavy stuff written in C. Python sucks in a vacuum because it has some really fucking retarded design decisions that kill it's ability to do anything interesting that doesn't rely on separate C modules. For example, there are no primitive datatypes, everything is boxed including things like ints. That means if you have code that repeatedly modifies an int (like summing an array), the int won't end up in the cache, instead the box around it will, and each write to the int requires a pointer to be followed into main memory rather than just updating it locally. Another stupid decision is the global interpreter lock, which precludes any meaningful form of concurrency as only one thread can actually be in the interpreter at a time. Python is filled to the brim with shit like this where they sacrificed functionality and performance for ease of use in a way that poses a real problem to programmers looking to solve everyday problems.
Adam Morris
>data science parts are written in C
I'm so tired of you jokesters implying that because you're using a C library you will get anywhere near the efficiency of plain C
Hunter Long
You can use multiprocessing rather then multithreading to get rid of GIL though
Jason Morgan
Have you actually benchnarked it?
On my machine numpy matmul takes 8% longer than just calling the BLAS directly. Python is basically relegated to passing pointers around and 90% of the execution time is spent in compiled C.
True, but there is probably a way structure the interpreter to allow for normal multithreading but they chose not to do it and instead have people work around the GIL by starting multiple copies of the interpreter. That said I don't actually know a whole lot about the python interpreter, so maybe there is some compelling reason that I'm not aware of.
Caleb Brooks
youtube.com
The only language you'll ever need.
Sebastian Martinez
Yeah you're right. Its basically an ancient decision by Guido fucker to have a single interpreter thread and they were too lazy to rewrite the whole thing to fix that. Idk why do they still suck his cock in 2019
Parker Ramirez
You do know that you can use external libraries and wrappers in any language, right? It's not exclusive to Python.
Jayden Gomez
That's a letter, not a language.
Wyatt Rivera
*if you are a nigger.
Evan Rodriguez
unny
Nicholas Rodriguez
hee hee hoo hoo
Colton Fisher
say that to companies that use excel for everything
Carter Green
C set us back decades.
Nathaniel Anderson
no answer 5 hours later
poor Cniles are probably busy reinventing basic data structures for 1000th time just to answer this question
Asher Clark
You appear to be missing a ++.
Liam Sanchez
In a perfect world, yes. C is immaculate, but people are not. That is why other languages exist, because people suck at coding. Badly.
Blake Young
What? Are they retarded?
Parker Stewart
Needs destructors.
Alexander Ramirez
The only tool you'll ever need.
Jaxon Bell
C got us out of the computational stone age. It was the first civilized language.
Charles Gonzalez
Retard, C set us back decades.
Ryder Brooks
Fuck C. Lisp is life.
Grayson Sanchez
you have no fucking clue what you're talking about.
Oliver Powell
Without C we'd still be sorting punchcards to feed into relay machines the size of a bus.
Jaxon Ross
Forth, Lisp and ML already existed prior to C.
Nathaniel Rivera
And they were all dead ends. Even today they're going nowhere.
Ian Robinson
Today their evolution all the best options for their respective problem domains. This is why I say C set us back - it outright retarded progress.
Gabriel Hernandez
Python first, that's great.
Then C.
John Gomez
how can i do web development using c?
Cooper Murphy
>dead ends
Forth -> Interpress -> Postscript -> PDF
so everytime you read or print a PDF file, you are using a stack based programming language that had its ancient roots in FORTH.
Gavin King
>python
LOOOOOOOOOOOOOOOL
Jonathan Butler
how hard is it to develop a GUI in C?
total noob here.
Hunter Cruz
Open sockets and serve your HTML, how else?
Isaiah Baker
Depends, can be easy or hard depending on what you're using.
Isaac Cox
for instance how hard is it to produce something similar?
Xavier Campbell
Not too hard with certain libraries since it's just generic UI elements with different colours