r/ProgrammerHumor • • Oct 07 '26

Meme wasteOfPreciousSpace

Post image
7.3k Upvotes

244 comments sorted by

View all comments

Show parent comment

21

u/camander321 Oct 07 '26

At some point, regardless of whether its a "compiled" language or not, there is a point where its reduced to simple machine instructions. Doesnt matter when that happens. Doesnt matter if you call it compilation or interpretation. By the time the code is in program memory, the concept of type has fallen away.

2

u/Prawn1908 Oct 07 '26

Ok sure, but when talking about data structures those higher level languages are still storing a lot of type data alongside all your variables.

-2

u/Lord_Lorden Oct 07 '26

That's just semantics though. Runtimes with strong reflection support like .NET make typing a big part of the language. Hell, in C# you can even add new types and generate code at runtime.

11

u/camander321 Oct 07 '26

Of course its semantics. Thats all type is. And C# uses JIT compliation. Meaning preliminary "compilation" just converts it to an intermediary language. Thats what reflection is looking at amd manipulating. That intermediary language is then interpreted as machine code on the fly (at which point type is no longer represented) and processed.

-3

u/Lord_Lorden Oct 07 '26

By that logic, the moment Windows loads your code into memory, it ceases to be relevant. Operating systems are just idiot-proofing for the programmer.

7

u/camander321 Oct 07 '26

Um...yeah. i think we're getting a bit of track here, but yes. Whenever and however the machine code was generated, its already formatted appropriately for the target architecture, so you are correct. The machine code is entirely agnostic to the operating system that is running it.

0

u/Lord_Lorden Oct 08 '26

That is completely ignoring the libraries and utilities even the most basic program must access in order to do anything. Put some text on the screen without using a system library or BIOS utility, why don't you.

The world of programming is built on layers of abstraction, and they don't stop existing just because you zoom in.