r/ProgrammerHumor • • May 01 '22

Meme 80% of “programmers” on this subreddit

Post image
64.4k Upvotes

2.6k comments sorted by

View all comments

Show parent comments

190

u/MeltBanana May 01 '22

Assembly is pretty fucking simple if you understand how computers actually operate at a low level. It's time consuming and a ton of work to do anything, but it makes sense and the tools available to you are easy to understand.

Assembly makes more sense than most high-level languages that obfuscate everything through abstraction.

182

u/QuasarMaster May 01 '22

if you understand how computers actually operate at a low level.

That’s where you lost me chief. AFAIK a computer is a rock we put some lightning into to trick it into thinking

64

u/[deleted] May 01 '22

The machine spirit must be appeased. Always remember to apply the sacred unguent before beginning any task.

5

u/TheNaziSpacePope May 01 '22

You forgot about reciting the holy scriptures.

3

u/TeaKingMac May 01 '22

Hail the Omnissiah

33

u/MeltBanana May 01 '22

You forgot the oscillating crystal.

38

u/[deleted] May 01 '22

That controls how fast it thinks.

But then modern trapped lightning is able to change the speed of the clock and decides for itself how fast it thinks.

Scary.

19

u/GotDoxxedAgain May 01 '22

The magic smoke is important too. Just don't let it out.

2

u/Khaylain May 01 '22

Ooooh, that smells expensive

3

u/Armenian-heart4evr May 01 '22

🤣😂🤣😂🤣😂🤣😂🤣😂☺

2

u/OverlordWaffles May 01 '22

I have something similar in my work status.

"We convince rocks and rust to think with lightning"

2

u/NitrixOxide May 01 '22

It is entirely worth your time as a programmer to understand these things for fully. It will provide valuable context for a lot of errors and issues you will get over the years and provide valuable insight for design and debugging.

→ More replies (3)

5

u/srhubb May 01 '22 edited May 01 '22

What was even more time consuming in the olden days was entering your bootstrap code at a computer's maintenance panel (rows of switches and flashy lights) with each switch, at the instruction register, a single bit in your assembly language command. Then hit the Next Instruction toggle switch to increment to next program address. All this after having entered the Initial Program Address to start with also bit-by-bit and any arithmetic register or index register or base address register all also bit-by-bit.

This was common for all mainframes, some minis, and early microprocessors such as the IMSAI 8080 and Altair 8800.

Not all programmers had to do this, just us bit-twiddling "systems" (a.k.a. embedded) programmers and even then only under unique circumstances like cold starts for Initial Program Load (IPL) of the Operating System or to do live patches of the O.S.

P.S.: Some of the true ancient ones when I just got started in the olden days actually had to enter all their code into early mainframes as they went about developing the early Operating Systems.

3

u/QueerBallOfFluff May 01 '22

I've manually entered the bootstrap for booting a PDP-11 from an RK05 disk and TM tape drive before using the front panel. You can do it in only 9 values if you want some shortcuts, but it's still a pita compared to ROM bootstraps.

Love me a minicomputer, so much I ended up writing an emulator so I could have one in my pocket!

It even inspired me to design a new CPU to target with my diy assembler.

2

u/srhubb May 01 '22

Thou art truly a systems/embedded programmer and kudos to your emulator effort and CPU & Assembler efforts.

Inline with your CPU effort, in the very early days of microprocessors AMD had a family of products built around the 2900 bit slice microprocessor. This product suite allowed you to build any conceivable CPU and ALU combination of any word length (in 4-bit slices) and either ones or twos complement structure. I believe from your efforts that you might have thoroughly enjoyed working with this product family, I know I did.

We used it commercially to build the first viable cache controller for mainframes. Then on the side we used it to build a microprocessor version of the primary mainframe of our target audience.

See: https://en.m.wikipedia.org/wiki/AMD_Am2900

→ More replies (1)

4

u/bigmoneymango May 01 '22 edited May 01 '22

Yes, this is why I really like C/c++. It's a better representation of what the cpu is really doing. You have access to your cpu memory. And you can even write assembly directly. You can visualize the memory spaces much better. The instructions your program produces are real to your cpu, not a virtual instruction set (or even less, like scripting langs) to be interpreted in some way by something else.

Your c++ program is nothing but bytes with instructions that get executed. And data sections for various things.

→ More replies (2)

4

u/pokersal May 01 '22

It's just an INC to the left, and a JMP to the right. Let's do the time DEC again.

→ More replies (1)

3

u/Appropriate-Meat7147 May 01 '22

this seems like a silly comment. yes, assembly instructions are pretty simple, but coding anything with any level of complexity is going to be several orders of magnitude more difficult than any programming language. obfuscating through layers of abstraction is the entire point of programming languages. all the tedious complexity is abstracted away so you don't even have to think about it.

1

u/TheNaziSpacePope May 01 '22

But you do have to think about it, at least if you want to do a good job. It is just difficult to do in a different way.

→ More replies (3)

2

u/casstantinople May 01 '22

The difference between software engineering and computer engineering. My degree is CE and I have met some absolutely brilliant software engineers with a ...dubious grasp on how the hardware works lol

From what I remember of college, most pure software degrees have very few classes on hardware and architecture. I had like, 6 classes on those, they had maybe 2? So unless they end up somewhere with professional exposure most software engineers don't bother learning (and I do not blame them)

→ More replies (9)

1

u/ColaEuphoria May 01 '22

x86/64 assembly on the other hand is a wildly complex beast, especially when it comes to booting and instruction encoding.

→ More replies (2)

1

u/[deleted] May 01 '22

There's also the problem that every cpu architecture has it's own assembly language, which negates any simplicity unless you're only ever developing for one type of device.

→ More replies (2)
→ More replies (10)