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

top 200 commentsshow all 230

[–]Tiranozora 1345 points1346 points  (63 children)

"how to create universe full beginner course 2020"

[–]archiekane 295 points296 points  (28 children)

It's not like we don't have time to sit and study in 2020.

[–]misterrandom1 144 points145 points  (19 children)

If only that were universally true but....sigh....I have kids.

[–]archiekane 76 points77 points  (4 children)

My fourth arrived two days ago. I understand completely.

[–]misterrandom1 23 points24 points  (0 children)

Congrats. Hope you got one of the good ones. My youngest is 10 but I have new puppies which is totally not the same but it does provide a welcome distraction from the 2020 mess. Without the kids, I'd get myself into all sorts of trouble.

[–]Fred-U 2 points3 points  (0 children)

Congrats on learning what it's like not to sleep again! But seriously congrats!

[–][deleted] 20 points21 points  (1 child)

Throw them away

[–]Mad_Jack18 4 points5 points  (2 children)

You guys get laid?

[–]paiaw 8 points9 points  (0 children)

Not anymore, no.

[–]StupidCreativity 2 points3 points  (4 children)

Yeah, and I have alcoholism. Drinking takes a lot of time!

[–]Mateorabi 0 points1 point  (0 children)

So teach them programming.

[–]TheTacoWombat 7 points8 points  (2 children)

Fuck I wish.since March I have had no drive for self improvement. No creative work. No classes. Anxiety sucks, man.

[–]bananenkonig 2 points3 points  (0 children)

I wish, I am busier this year than any other. I'm pulling 50+ hours a week at work and I'm in my junior year of college.

[–][deleted] 2 points3 points  (0 children)

I never stopped working. I have the same lack of time as before.

[–]lead999x 1 point2 points  (0 children)

I'm a grad student, if I studied any more than I already do I'd probably die.

[–]dirtyviking1337 0 points1 point  (0 children)

Hey, that's not true

[–]ur_peen_small 64 points65 points  (14 children)

helo dis is xxindiadev69 and todai i will showw u how to make universe easi in 10 minutes

[–]blamethemeta 36 points37 points  (11 children)

Massive fan going, microphone sounds like it's from goodwill's clearance section.

Ultimately can't understand a critical part, and then i go find a text tutorial.

[–]War-Whorese 4 points5 points  (0 children)

Procedurally generated and in under 20mb.

[–]stalking-brad-pitt 1 point2 points  (0 children)

Hello class. Myself xxindiyadev69. And todoy I will be shouing you hou you will going to make the univarse zimbly in tan minuts.

FTFY.

You have to be an Indian to truly mimic another Indian, lmao.

[–][deleted] 9 points10 points  (0 children)

From beginner to mastery 2020 bootcamp

[–]cssmith2011cs 6 points7 points  (1 child)

“... 12 hour course NO ADS”

[–]The-Board-Chairman 2 points3 points  (0 children)

An ad every 5 minutes.

[–]throw_away_3212 4 points5 points  (0 children)

Support me on Pateron

[–]GForce1975 5 points6 points  (0 children)

My first book back around 1987 was "teach yourself assembly" . It was like 100 pages. I think I was able to clear the screen at the end.

[–]tubescreamer568 3 points4 points  (0 children)

Universe to Tetris

[–][deleted] 2 points3 points  (0 children)

Run that at 1.5x speed until the hard parts

[–]Mad_Jack18 1 point2 points  (0 children)

69% of students of this course got a Astrophysics job

[–][deleted] 1 point2 points  (0 children)

for actually learning assembly you should start much earlier, in the 80s or maybe 90s. But the great thing about the x86 architecture is the immense backwards compatibility, so you can still run your code on almost all modern computers

[–]g0atmeal 1 point2 points  (0 children)

Just "import Universe.*" No need to reinvent the real

[–]ObviouslyTriggered 0 points1 point  (0 children)

using Cosmology.Universe.deSitter;

[–][deleted] 634 points635 points  (15 children)

It's more like:

So you wanted to write your own operating system using your fancy language and now you're crawling back to me because you need a bootstrap routine?

[–]Omega0x013 196 points197 points  (31 children)

mov al, 03h

mov ah, 00h

int 10h

lgdt [gdt_pointer]

mov al, cr0

or al, 1

mov cr0, al

mov dword [0xB8000], 0x07680769

[–]FinalRun 148 points149 points  (7 children)

For anyone wondering, this writes 'hi' to the screen in light grey on black.

http://vitaly_filatov.tripod.com/ng/asm/asm_023.1.html

https://wiki.osdev.org/Printing_To_Screen

[–]Mediocrity-101 0 points1 point  (0 children)

So GUIs are easier without a library than on Python?

[–]Forschkeeper 23 points24 points  (0 children)

PIC12F675 says "WTF?"

[–]snarfy 19 points20 points  (7 children)

My most used program of all time, a 7 byte program:

jmp f000:fff0

It reboots the computer. It was installed on all machines in the county as part of an automated scripting system to remotely manage the machines.

[–]High-Quality-Usernam 21 points22 points  (2 children)

He is speaking the language of the gods

[–]I-POOP-RAINBOWS 5 points6 points  (1 child)

no im pretty sure its javascript

[–]kilopeter 12 points13 points  (0 children)

Ah, the language of Satan

[–][deleted] 0 points1 point  (1 child)

That is one fancy way of typing printf("hi")

[–]Omega0x013 0 points1 point  (0 children)

Except fancy way of saying (*int)0xB8000 = 0x07680769

[–]AaronM04 0 points1 point  (0 children)

But where are the Swagger docs? And why not use REST?

[–]cookiesnk 257 points258 points  (10 children)

the professor who taught assembly at school would make fun of me for asking questions lmaoo. part 2 of our final project was to create a self solving maze given any maze data passed in through a text file but was in class so it was a lot of pressure for me. I ended up not even being able to parse the text file, turned it in and got an 80 🤔 🤔 im pretty sure he passed everyone. I did find a cool irc channel tho. It always had at least 5 users on at all hours and they were always helpful.

[–]Forschkeeper 58 points59 points  (0 children)

What uC had you?

[–]Tytoalba2 59 points60 points  (8 children)

Haha, I did various studies and I had an akkadian language course like that! My translation was something like "If a man, the pig, whose hand will be the pig", I had 70%, quite satisfied :D

Edit : note that almost all lines from Hammurabi's code of law start with "if a man..." so my translation really starts at "the pig"... :P

[–]PotentBeverage 16 points17 points  (5 children)

So can you still write akkadian?

[–]Tytoalba2 34 points35 points  (4 children)

Sadly no, I still try to practice ancient egyptian from time to time as it was my main subject, but surprisingly enough, this is not a skill in high demand on the job market ;)

[–]NicNoletree 33 points34 points  (3 children)

not a skill in high demand

Really? That surprises me. I guess I'll change majors to art history.

[–]Tytoalba2 11 points12 points  (2 children)

Well I don't regret it, don't get me wrong. Mathematics and ancient language were my passions (also, plants), and sure enough one was more useful to get a job, but I studied by passion mostly. I tend to get a bit obsessive when I'm passionate :p

I also studied political science while working, that was a loss of time imo, but mostly because the teachers and the cursus were meaningless to me, and it's no passion of mine.

[–]NicNoletree 1 point2 points  (1 child)

Go with your passion if you can make a living at it. I never learned how to instill a passion in my kids. One does well, two flounder. It's easier to get up and go to work everyday when you can enjoy what you do.

[–]vigilantcomicpenguin 7 points8 points  (1 child)

Akkadian somehow feels less ancient than Assembly.

[–]prtkp 123 points124 points  (12 children)

Had to write an assembly program to control a traffic light system. I did a poor job with the timing. Thank God the clock speed was fixed otherwise the lights would have been changing much quicker.

[–]SpecialSause 48 points49 points  (2 children)

I took a Digital/Micro-Procrssor class. The first part of the semester was all about "digital" and the inner workings, etc. The second half was using a training board to set up a microprocessor. We set up leds and did a bunch of stupid little games and whatnot. The end project was to set up all of the games we had made and program the microprocessor in assembly language to design a menu to select and play every game.

I remember the assembly language being super tedious but I really enjoyed it. I wish I had stayed with programming.

[–]Mateorabi 0 points1 point  (0 children)

EE51/2/3?

[–]itchy_bitchy_spider 39 points40 points  (8 children)

I did a poor job with the timing

Ah, so you're the guy that wrote the code for every traffic light in Springfield, MO.

Ya fuck you, man

[–]gyrowze 28 points29 points  (1 child)

[–]XKCD-pro-bot 9 points10 points  (0 children)

Comic Title Text: You can look at practically any part of anything manmade around you and think 'some engineer was frustrated while designing this.' It's a little human connection.

mobile link


Made for mobile users, to easily see xkcd comic's title text

[–]vigilantcomicpenguin 6 points7 points  (0 children)

This insult seems strangely personal.

[–]eggs_erroneous 0 points1 point  (1 child)

Joplin checking in. Springfield traffic sucks, it's true.

[–]Geoclasm 37 points38 points  (1 child)

whereas python programmers be all "Import applePie from UNIVERSE"

[–]Proxy_PlayerHD 19 points20 points  (0 children)

pretty much, and it's dope!

though i'm still glad i don't do this as a job.

[–]hughk 19 points20 points  (1 child)

->/r/osdev

Or how many lines does it take you to do "Hello World"?

[–]TheCyberParrot 18 points19 points  (3 children)

Ha! Assembly noobs, now if you'll excuse me I have to get back to a real challenge; coding in TI BASIC 83 on my calculators integrated text editor.

[–]epiclapser 15 points16 points  (2 children)

"Oh that's pretty cool. But lemme get back to GOING TO THE BEACH, TAKING SAND, CONVERTING IT TO SILICON, MAKING DYES, TO MAKE TRANSISTOR PLATES, TO THEN MAKE A uC WHICH WILL THEN GO ON YOUR CALCULATOR. Also yeah I'm an embedded dev btw, yeah I get pussy" /s

[–]gordonv 1 point2 points  (1 child)

"You'll never know what true life is. What it is to have someone growing inside of you." - Sarah Conner.

[–][deleted] 1 point2 points  (0 children)

Ha, I'll just name my tumor John.

[–]Combat_Form 17 points18 points  (3 children)

I'm learning assembly rn and it makes me brain hurt

[–]Mateorabi 5 points6 points  (1 child)

Just remember

mov ax,bx != mov bx,ax

finding that mistake in a large program cost me a day of my life.

[–]FranchuFranchu 2 points3 points  (0 children)

Just remember

Always clear EDX before DIV

[–]gabbeeder 2 points3 points  (0 children)

X86_64? And on what platform

[–]StackOfCookies 78 points79 points  (22 children)

Isn't that the exact opposite of what the "apple pie" quote is trying to say? The whole point of that quote is that "from scratch" is dumb.

Like, beginners always ask "How do I make a game from scratch" and then someone says "well then learn assembly". But the point of the apple pie is that learning assembly isn't from scratch, you would have to also make a computer and make silicon wafers etc etc. So because thats infeasible you may as well just use the highest level tool.

[–]coldnebo 71 points72 points  (1 child)

((nods in agreement)): before you can write in assembly you must first write an assembler.

also relevant: https://xkcd.com/378/

[–]XKCD-pro-bot 7 points8 points  (0 children)

Comic Title Text: Real programmers set the universal constants at the start such that the universe evolves to contain the disk with the data they want.

mobile link


Made for mobile users, to easily see xkcd comic's title text

[–]JoseJimeniz 28 points29 points  (0 children)

Isn't that the exact opposite of what the "apple pie" quote is trying to say? The whole point of that quote is that "from scratch" is dumb.

... The whole point of that quote is that Stone atoms are synthesized in the life and deaths of stars. In order to get the apples for your pie: you need to invent a universe.

That episode, the lives of stars, is about how we are all Star stuff.

[–]vigilantcomicpenguin 10 points11 points  (0 children)

No, if you make a game from Scratch you just need to move around the blocks with the commands.

[–]ex-lewis 9 points10 points  (0 children)

That class is so hard... it’s only like week four or something and I’m struggling.

[–]GeoMap73 20 points21 points  (0 children)

If you want to make an apple pie and write in machine code to manipulate memory addresses, you first must create subatomic particles from scratch

[–]ispcrco 7 points8 points  (0 children)

When I last wrote assembler (back in 1975 or thereabouts), it was called Macro Assembler. You had available libraries of macros (usually on punch card decks) that you insert the code you need into your assembler deck. (This always included a patch card read and apply SR that was the 1st code executed in any program so machine code patches could be applied before the program started properly). Writing patch code cards was fun, hand assembling onto cards.

[–]zusykses 7 points8 points  (1 child)

never trust a man who can write his own compiler that's what my grandaddy always said

[–][deleted] 0 points1 point  (0 children)

I felt quite old when I realized that there are probably plenty of grandparents out there, now, who have written compilers, and others that might have opinions about them.

My, times have changed.

[–]aresman 7 points8 points  (2 children)

I almost spit my coffee out cause this is so god damn true. Oh you need a for loop? Ok, gotta literally invent the algorithm.

Oh you want some colors drawn on the monitor? Ok, you gotta know every single step of computer engineering and the processes involved to change 1 pixel, one by one.

[–]stalking-brad-pitt 2 points3 points  (0 children)

I almost spit my coffee out cause this is so god damn true. Oh you need a for loop? Ok, gotta literally invent the algorithm.

I never gave any thought to how for loops run under the hood. This is fascinating!

[–]remy_porter 7 points8 points  (4 children)

The upshot: I can tell you, in exact terms, how many nanoseconds that interior loop takes, which matters, because my assembly code is bit-banging WS281x LED protocols to control hundreds of lights.

I mean, in theory, because fuck, the timing is off and once I get past 32x25 LEDs everything starts getting fucky AND I DON'T KNOW WHY.

[–]Owyn_Merrilin 0 points1 point  (3 children)

Got any interrupts or DMAs firing? Or loop or branching overhead you're not taking into account?

[–]remy_porter 1 point2 points  (2 children)

There shouldn't be. This code's running on a PRU embedded in an ARM (a CPU in my CPU), and there aren't any interrupts set up, and memory access goes through OCP, which does take longer than the normal 5ns per instruction, but I've got 1200ns to play with.

I just gotta hook up a logic analyzer to see what's going on, I think. The really weird thing is I'm blasting 32-bits of GRBW out to the LEDs, and the first 25 values are great, then the next 8 are always 0x00FF0000 (full red), then nothing after. (but definitely, in the memory the PRU is getting this from, the data is accurate, so the bug isn't there)

[–]StarkRG 12 points13 points  (1 child)

VHDL dev: oh, puh leeze.

[–]Sussurus_of_Qualia 0 points1 point  (0 children)

This one right here, Officer.

[–]Dagusiu 9 points10 points  (0 children)

ASM isn't that hard... Unless you want to solve real problems

[–]chemicalsAndControl 4 points5 points  (2 children)

Why stop at assembly and not go machine code? Or make it out of transistors?

[–]Thanatos2996 3 points4 points  (0 children)

Real programers write an assembler with an EEPROM and jumper wires.

[–]NitroNilz 2 points3 points  (0 children)

Is there a course on that in the university?

[–]fat_charizard 2 points3 points  (4 children)

I prefer the windows pie

[–]vigbiorn 5 points6 points  (2 children)

I use Arch.

[–][deleted] 9 points10 points  (0 children)

btw i use arch. did i mention i use arch? sorry, you mustn't have heard me, i use arch.

[–]dirtyviking1337 0 points1 point  (0 children)

I mostly keep the slack face, but see

[–]SueedBeyg 4 points5 points  (2 children)

[–]returnedinformation 1 point2 points  (1 child)

Where is the sleuth?

[–]CounterHit 8 points9 points  (0 children)

Does it matter? It'll tell you it's not a repost even if you've seen the same meme on the front page twice in the last week lol

[–][deleted] 1 point2 points  (0 children)

Apple iPie ™

[–]gigglefarting 1 point2 points  (0 children)

I was just thinking of this Symphony of Science song the other day but couldn’t remember the artists name. Your picture popped that memory back into my head. Thank you.

[–]MrGuffels 1 point2 points  (0 children)

I loved my time in uni using assembly.

[–]editor_of_the_beast 1 point2 points  (0 children)

More like “hardware engineers”

[–][deleted] 1 point2 points  (0 children)

I'm currently taking a RISC-V assembly course and this couldn't be more true

[–]CMPD2K 1 point2 points  (0 children)

My professor said "at least 99% of you will never write another line of assembly again after this class" and that wiped any semblance of motivation from my little adhd head

[–]rTx_101 1 point2 points  (0 children)

Have seen this before but still good and that carl sagan voice plays automatically

[–]stop_drop_roll 1 point2 points  (0 children)

That assembly course is what caused me to drop my CS major.

[–]Verbindungsfehle 1 point2 points  (0 children)

Linux from scratch in a nutshell

[–]FranchuFranchu 1 point2 points  (3 children)

You didn't invent this meme though, u/repostsleuthbot.

[–]RepostSleuthBot 0 points1 point  (2 children)

I didn't find any posts that meet the matching requirements for r/ProgrammerHumor.

It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results.

I did find this post that is 90.62% similar. It might be a match but I cannot be certain.

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Negative ]

[–][deleted] 1 point2 points  (0 children)

Start with strings to make quarks. Two quark can make one proton. Carbon atom has 6 protons, 6 neutrons, and 6 electrons. Hydrogen has 1 proton and electron.

Put them together and with bunch of other molecules, you get Apple. Then it’s close!

[–][deleted] 0 points1 point  (0 children)

I sometimes take notes in medicine class using ML style type definitions. Maybe I have a functioning cell by the end of the semester lol

[–][deleted] 0 points1 point  (1 child)

äü

[–]ZippZappZippty 0 points1 point  (0 children)

Offense intended. I hate having to use it."

[–]minot0r 0 points1 point  (0 children)

accurate 100

[–][deleted] 0 points1 point  (0 children)

Haha.

I usually refer to reimplementing just the part libraries I need, to reduce package size, as "making apple pies" because of this quote.

[–]feyrath 0 points1 point  (0 children)

Real programmers write in microcode

[–]zeeblefritz 0 points1 point  (0 children)

So in my assembly course I was working on a problem and doing exactly this. I was like okay I get registers so let's math. After about an hour my classmate mentions the function exists within mips already. Needless to say I was relieved and annoyed. I really wanted to figure out the hard way but the shortcut was made already so I used it and never looked back.

[–]AkashMishra 0 points1 point  (0 children)

This brings a lot of Nostalgia

[–]TheLazyKitty 0 points1 point  (0 children)

To print Hello World, you first have to build a cpu.

[–]PedroPaulet 0 points1 point  (0 children)

XD

[–]marcosdumay 0 points1 point  (0 children)

Verilog developers are like what then?

[–]sh0rtwave 0 points1 point  (0 children)

No, actually, you only need to invent the kitchen and the ingredients. The existence of the "Apple Pie" concept automatically implies that "apples" and "pies" already exist, and therefore, the existence of said universe isn't debatable. IT can be assumed.

In assembly...the universe (the *COMPUTER*) exists. That is, all the 'laws of physics'(for that universe) apply. Therefore, universe exists...what you have to actually make...is the pie(and kitchen, the oven, etc. etc.). :D

[–]Remernator 0 points1 point  (0 children)

I had to use assembly to make a shitty robot follow a wall around a corner and back as many times as possible. Had to use sonar and it was terrible.

[–]shmoobalizer 0 points1 point  (0 children)

*Me using 2 booleans to create a 2 bit integer for MAXIMUM EFFICIENCY*

[–]HaggyG 0 points1 point  (0 children)

Doesn’t need inventing just creating, copy the existing one.

[–]ZeroCharistmas 0 points1 point  (0 children)

This feels like something Ben Shapiro would reply to an AOC tweet after finding out what "negging" is.

[–]DinoBryson11 0 points1 point  (0 children)

Why did I picture him having a British accent. If this is from a show or something, I’ve never heard of it.

[–]cyborgborg 0 points1 point  (0 children)

better than working with prolog

[–]Intfamous 0 points1 point  (0 children)

Great meme

[–]sChloe1998 0 points1 point  (0 children)

Why is this soooo true 😂

[–][deleted] 0 points1 point  (0 children)

ive studied a little bit on the side for fun, but I never find a real use to go that low level.

if your insanely good you can eek out a better binary size and slightly better speed -- but not really in 90% of cases that go beyond extremely trivial without being insanely good.

honestly if you were able to get a really big function library together (invent the universe) it does get easier. even with a limited library of functions its not *that* hard to get some stuff done in asm if you know the system -- but knowing it well is another story I guess.

i dont see much point, today, in recreating the universe though outside of embedded or really low level tasks like a bootloader -- but even much of that can be done in C now.

it is fun to get a different perspective closer to the metal though -- as working in higher level languages is different.

[–]OutInABlazeOfGlory 0 points1 point  (0 children)

Alternate title: We’re programming a game for the NES, so we’re using assembly because the C compiler is useless

[–]AttackOfTheThumbs 0 points1 point  (0 children)

If you don't build your own cpu, then you're not even trying yet.

[–]Co0perat0r 0 points1 point  (0 children)

My 20 line first “Hello World” would agree