r/C_Programming • • Apr 24 '24

The way C Programers explain pointers

https://imgs.xkcd.com/comics/pointers.png
652 Upvotes

50 comments sorted by

View all comments

Show parent comments

3

u/erikkonstas Apr 24 '24

The language itself is not the same as its implementation; rather, it is defined by its specification. Otherwise, C wouldn't "exist" without a compiler either!

0

u/lokithegregorian Apr 24 '24

But I can change my compiler with C. The need of a compiler to compile the language does not couple them. In Python, the situation is different. For different reasons. The abstract commonality in those reasons: "To limit." For safety and speed and reasons you don't need to worry about. They wrote the C and the NASM in a library for you to manage with pip3.

They couldn't write it in Python because of said limits.

1

u/erikkonstas Apr 24 '24

Actually, there are implementations of Python that aren't CPython too, the PSF doesn't limit you to only use their thing. So, yes, you can change your interpreter in Python as well, they might just lag behind in some aspects (same actually goes for C compilers too, just C is way slower in its evolution so you don't see it as much, and C also lacks a reference implementation).

1

u/lokithegregorian Apr 24 '24

...lacks a reference implementation...

It lacks the ability to pass hexidecimal values? I don't understand what you mean...