I’m high and I can’t make sense of programming software

Reece

Superstar
Supporter
Joined
Feb 8, 2015
Messages
7,181
Reputation
1,735
Daps
37,724
You type code into a program to let you create another program. But what code was used to create original program?

I literally can’t process this right now. Certs nikkas explain this

Computers use and understand binary code (assembly/machine language) which is basically just numbers. 1s and 0s. Think the numbers you saw on the Matrix movie. Extremely boring shyt. Programmers would blow their heads off if they had to write code that way. It’s called low level language because you’re getting closer to the actual hardware of the computer. Programming languages are called high level language because it’s closer to actual language that humans can understand. So it makes programming easier. When you code, behind the scenes, there are mechanisms (compilers) that transform your high level programming code into the binary code that the computer understands.

Or something like that :ld: I was an Econ major in school, not a Computer Science kid.
 

CarltonJunior

Veteran
Supporter
Joined
Feb 21, 2014
Messages
48,476
Reputation
6,006
Daps
134,521
Reppin
Duval County
Binary code is where it came from.

Pretty sure binary code was invented in the early 20th century around or right after the world war.
 

Reece

Superstar
Supporter
Joined
Feb 8, 2015
Messages
7,181
Reputation
1,735
Daps
37,724
This is the beautiful shyt you type in :whoo:

Python-Code-Image-696x464.jpg


What the computer sees :mjcry:

binary.gif
 
Joined
Oct 22, 2017
Messages
34,006
Reputation
2,064
Daps
166,408
CPUs are made up of components called registers. CPUs have instruction sets that define a bunch of boolean logic behaviors that the CPU will execute. Register values are series 0s and 1s, off and on respectively, and loading certain registers with certain values yields different results. This whole concept forms the basics of programs - they're just sequences of instructions to be executed by the processor. Compilers are just programs that translate higher level languages into byte code and machine code. The machine code is literally represented in 0s and 1s. If you cared enough, you could write a program entirely in machine code, but it wouldn't be worth the trouble. The closest to that you'll see is assembler (ARM, MIPS, etc) that is more human readable but extremely low level in that you define each operation yourself. In a higher level language like Java, C, Python, that's all abstracted away from you.
giphy.gif
 

StretfordRed

Afro-European
Joined
Feb 9, 2014
Messages
11,577
Reputation
-1,879
Daps
33,549
Just tried to explain to my girl because we were watching Zero Days

:martin: Should have just let her carry on posting on Instagram
 
Last edited:

Mr Hate Coffee

Veteran
Joined
Apr 30, 2012
Messages
19,144
Reputation
7,188
Daps
74,924
I forgot about this thread. Logged into the Coli today and saw my alerts. Read them shyts like :skip:


Thanks for the brehs that helped. I actually learned something.
 

null

...
Joined
Nov 12, 2014
Messages
33,418
Reputation
6,442
Daps
51,680
Reppin
UK, DE, GY, DMV
CPUs are made up of components called registers. CPUs have instruction sets that define a bunch of boolean logic behaviors that the CPU will execute. Register values are series 0s and 1s, off and on respectively, and loading certain registers with certain values yields different results. This whole concept forms the basics of programs - they're just sequences of instructions to be executed by the processor. Compilers are just programs that translate higher level languages into byte code and machine code. The machine code is literally represented in 0s and 1s. If you cared enough, you could write a program entirely in machine code, but it wouldn't be worth the trouble. The closest to that you'll see is assembler (ARM, MIPS, etc) that is more human readable but extremely low level in that you define each operation yourself. In a higher level language like Java, C, Python, that's all abstracted away from you.

I agree but.

Register values are analogue not digital.
Some compilers do that, others do other things. Typically native compilation results in assembly code rather than machine-code per-se. I.e. predefined instruction set operations. Although assembly code is a sub-set of machine code.
The instruction set is a bunch of predefined operations.
Between assembler/machine code and the hardware you have Microcode - Wikipedia .
 
Top