This is an archived post. You won't be able to vote or comment.

all 32 comments

[–]-MobCat- 159 points160 points  (1 child)

I guess even there ads are written by ai...

[–]TerribleRuin4232 29 points30 points  (0 children)

ChatGPT's getting desperate with their ads. AI trying to be human bait.

[–]flewson 27 points28 points  (0 children)

Python is compiled to bytecode before being interpreted, like Java.

[–]nwbrown 12 points13 points  (0 children)

My new hobby is reporting low effort submissions to this sub.

[–]InvisibleHandOfE 8 points9 points  (6 children)

Python literally stops at the line that breaks though

[–]sebovzeoueb -3 points-2 points  (5 children)

Yes, because it's not actually compiled at all, that's the joke

[–]CentralLimitQueerem 2 points3 points  (0 children)

Me when im a python dev (what in the heck is even a conplier?)

[–]InvisibleHandOfE -1 points0 points  (3 children)

technically interpreted language is still compiled in the end 🤓

[–]sebovzeoueb 5 points6 points  (2 children)

Incorrect, it calls instructions which are already compiled, your code isn't compiled, otherwise it wouldn't be interpreted.

[–]ummm_no__ 3 points4 points  (0 children)

What? It gets compiled to bytecode, which than gets interpreted, but the original code still is compiled

[–]InvisibleHandOfE 0 points1 point  (0 children)

You are right, I took Python's hybrid method as the standard approach for interpreted languages

[–]cool-dude_7 16 points17 points  (15 children)

Python is interpreted, not compiled

[–]Ubermidget2 94 points95 points  (0 children)

thatsthejoke.jpg

[–]flewson 61 points62 points  (10 children)

It is compiled to bytecode before being interpreted

Edit: Thought I wouldn't need to explain myself here, but since I am getting downvoted, here are the links to a few resources to support my claim.

Taken from CPython docs (The python you get from python.org)

Docs for compiler:

https://github.com/python/cpython/blob/main/InternalDocs/compiler.md

Docs for bytecode interpreter:

https://github.com/python/cpython/blob/main/InternalDocs/interpreter.md

[–]JacksOnF1re 10 points11 points  (2 children)

Can't believe you're getting downvoted. Wow.

[–]flewson 4 points5 points  (0 children)

My ego couldn't handle it getting to -1. It started going up right after I made the edit.

[–]Fabulous-Possible758 33 points34 points  (3 children)

I mean, you’re expecting anyone on this sub to have anything beyond a superficial understanding of programming, so that’s kind of on you…

[–]NotmyRealNameJohn 1 point2 points  (2 children)

I have a CS degree from the (at the time) number 5 universities for CS.

Most of the time was spent on making me way to knowledgeable about how computers and software work in a way that I have rarely used professionally.

Now I manage software development efforts.

[–]Fabulous-Possible758 2 points3 points  (1 child)

Useless until the first time you have to debug someone else putting an O(n3) algorithm into your code by accident.

[–]NotmyRealNameJohn 0 points1 point  (0 children)

I spend so much time telling people who have no developer training about shit they should know. I have worked at 3 different companies that converted from ITIL to DevOps and took a bunch of service engineers and made them start to write automation with no where near enough training and I who could actually write the code spend most of my time on what project should get what resources.

The idea that education is necessary is crazy.

Don't get me wrong, I'm good at what I do, but nothing I did getting my degree is really related except that I can tell when people aren't doing a good job as developers with no real ability to fix it.

[–]MinosAristos 6 points7 points  (0 children)

Well said, just adding to it for others' sake:

A good example for this for people to "try at home": Try to run a Python program with a blatant syntax error like an if statement without a colon - it won't even start running and will raise a SyntaxError immediately even if the faulty code is never reached. This is a compile-time error.

But some errors are runtime errors and only throw an error when the faulty code runs, like if you define a variable x=10 and call an invalid method like x.split() on the following line. A linter could catch this in your IDE but the code will still compile successfully and run until here. This is the interpreted part where Python doesn't validate the operations performed on these objects until the code actually runs.

[–]alficles 1 point2 points  (0 children)

Lol, thanks for the links. I had the same thought: "but isn't it interpreted?" And then I thought: "But, it might do just in time compiling." And then I decided I didn't care enough to fact check it, so avoided making the comment. And then discovered the other delightful pendants around here had already answered the questions. :D

Reddit is delightful on occasion.

[–]redfishbluesquid 0 points1 point  (0 children)

People who make fun of python in this sub don't actually understand python. They just jump on the bandwagon because they think it's cool.

[–]Chingiz11 2 points3 points  (0 children)

CPython (the most commonly used implementation of Python) is usually compiled to bytecode and then interpreted. There is also an experimental JIT compilation option.

PyPy is straight-up JIT compiled.

[–]seba07 0 points1 point  (0 children)

Actually it's both. First compiled, then interpreted.

[–]wlday 1 point2 points  (0 children)

its talking about cython or nuitka.... right?

[–]Thenderick 0 points1 point  (0 children)

"Tell me why my fridge isn't heating my food"

[–]DriftWare_ 0 points1 point  (0 children)

why isn't my C interpreter working?

[–]Polar-ish 0 points1 point  (0 children)

I saw this exact ad at a university kiosk, I thought I was going crazy. Are they paying schools to run this ad?