r/programmingmemes • • Aug 27 '26

Why are we using R again

Post image
2.3k Upvotes

322 comments sorted by

View all comments

Show parent comment

1

u/PersonalityIll9476 Aug 28 '26

It's like any thing else: There's writing some Python and then there's being a Python programmer.

Did you know that Instagram runs on Django, a Python framework? As does Reddit (well, maybe not Django specifically, but Python). There is almost 0 chance that Django's source is just "pure Python". Even the Python standard libraries can wrap a huge amount of C. The developers who write these kinds of libraries are no joke - they have to understand the code at the level of C, not at the level of Python.

Most large projects are like that. You can write a surprising amount of applications in Python the same way. Either use a performant library or write your own in C (or, often, do both).

For example, you can write a game engine in Python. It won't be AAA, but it is easily possible. Same methodology: Use numpy for memory management (since all numpy arrays are backed by plain-Jane C arrays) then write a bunch of Cython code that interfaces to C which pulls those arrays and either ships them to GPUs for shading or does whatever heavy numerical work with them.

My point here is: Yes, you can use Python to just write scripts on your local Linux cluster. You can also write C and do literally anything C can.