r/HFY • u/ViolinistLazy333 • Jan 14 '21
OC Human programming language
The classroom was silent; all eyes stared at the aged professor; eagerly awaiting his lecture. Viskardar took one last look at his students, creatures of all shapes and sizes, beings at widely different levels of experiences, all sat around the amphitheater. He can almost feel the anticipation. Guess its time to begin.
“Three-hundred-eighty-four students! Clearly an record for the university. Can’t believe y’all here just to listen to my life’s story.” the professor chucked at his teasing. “You see I was born at…”
The audience responded with a tired groan at Viskardar’s teasing.
“Sheesh. Tough crowd.” Viskardar grinned as his eyes grazed upon each student, seeing their faces shift from one of anticipation to annoyance. He spoke once more. “Now all of that awful tension is gone, we can finally start”.
The professor took a step back as the holo-projector above the stage sprung to life, engulfing the area with a faint blue glow; soon an three-dimensional depiction of a symbol manifested above the center of the theater.
Viskardar watched as a few students shot up with excitement upon seeing the character. Excited about recognizing a common symbol? They’re certainly eager.
“As you all know, the galactic union assigns symbols to represent fundamental theories and ideas; anything from evolution to algebra can all be communicated through a single character.” the professor paused in his explanation as his gaze wandered around the class once more “So, can anyone tell me what this character means?”
A few dozen appendages got lifted up.
“The idea that all programming languages should be as close to machine code as possible in order to maximize the efficiency and speed of the program.” a student loudly announced from behind Viskardar.
The professor quickly spun around and scanned for the perpetrator among the crowd. “Correct! However, next time please avoid interrupting.” Unable to find them, he returned to the lecture at large.
“Throughout the lifetime of the union, each species we’ve encountered has this rudimentary idea in one way or another.” the professor paused before lowering his voice, “All expect for one.”
The audience immediately lights up in anticipation. Viskardar can literally feel the sparks burning within each student’s eyes. Here we go
“The union made contact with humanity two standard cycles ago after the Isadrians discovered millions of signals sent from their home world: Earth. An important oddity that was quickly overshadowed by first contact. As the information exchange went on, both sides immediately went to develop a translation program. We expected that we’ll be the first to complete this, yet the humans returned with a fully programed prototype after mere weeks. What would’ve taken us months if not years is completed in just a matter of weeks. What the hell is going on?”
The professor took a deep breathe as his students enthusiastically waited for the lecture to continue.
“The only reasonable hypothesis we had at the time was that since humans are persistence hunters, it is likely that they have godly amounts of stamina and is in turn able to work on an project many times more than an average citizen of the union. However, while true, this wouldn’t end up being the answer as we’ll see much later on. Moving forwards, as integration of humanity into the union begun we realized that humanity didn’t treat computer software as an luxury good. Instead, it was considered an mass produced commodity! And before anyone asks, their programs aren’t incredibly basic either. They have software containing entire simulated worlds!”
Professor Viskardar looked around the amphitheater once more. Of course… Only a few students is shocked. All of this is common knowledge after all. Everyone is just here to know the secret to humanity’s software. Well enough stalling for time. Time to reveal humanity’s secret.
“There has to be an reason right?” Viskardar inquired
The holo-projector above the stage flickered before manifesting its projection as a four way screen, broadcasting to all sides of the theater; on the display, a single line of code is shown.
print("Hello World")
“Now”, Viskardar paused to gaze at the mixed crowd; some students shows signs of confusion, others disbelief at how simple human code is “could anyone tell me what this program does?”
A single appendage rose from the 5th row.
“I-it just outputs ‘Hello World’?’ the student stuttered out
“Yes! It’s just as simple as that” the professor proclaimed “now take a look at this”.
The screen switched once more. This time an complex program made out of nineteen lines of code is presented.
DEFAULT REL
SECTION .rodata
Hello: db "Hello world!",10
len_Hello: equ $-Hello
SECTION .text
global _start
_start:
mov eax, 1
mov edi, 1
lea rsi, [rel Hello]
mov rdx, len_Hello
syscall
mov eax, 60
xor edi, edi
syscall “Could anyone tell me what this program does?”
…
Not a single soul rose their hands this time. Everyone stared with confusion at the strange new syntax.
…
“Good. What you just saw there is akin to our own programming languages, it is amount as close to machine code as possible. In fact, that variant of assembly — the name of the language — is designed to replicate the ancient human x86_64 CPU architecture's instruction set. None of us can comprehend what the code is actually doing without studying the instruction set and the language first. It’s too convoluted.”
The projected screen flickers for a moment before flickering away along with the dim blue light of the holo-projector.
“And that is the secret to human software. Their programming language abstracts away complexity and as a result makes it trivial to comprehend and program in.” the professor paused for a moment
A student thrusted their limbs up as soon as the professor stopped
“If humans abstract away from machine code how do they deal with the decreasing efficiency and speed of the program?” the pupil asked perplexed
Viskardar smiled “It’s simple really. The humans consider the performance trade-offs as a worthy expense. Besides, as a human compiler engineer once told me, ‘We just optimize the fuck out of it.’”.
The professor stepped back once more. Satisfied by the mixed emotions given to all of his students, from confusion to awe to even more confusion, his job was finished for the day.
“And that concludes our lecture for the day. Class dismissed and welcome to Human Computer Science.”
-------------
Well this is my first time writing in years. I think it’s actually fairly decent although the grammar and dialogue could use some work. In addition, I feel like I’ve skipped over providing reasons as to why the aliens take such a long time to develop anything. I'm fairly certain its implied but I feel like giving it explicitly would be better. It also feels quite rushed at the end of the story.
Anyhow, please excuse my technobabble when it comes to assembly and such. I pretty much only know basic python but hopefully at least some of it is semi correct.
286
u/rijento Jan 14 '21
Ah the joys of modern programming languages.
128
u/ApolloFireweaver Jan 14 '21
As someone who only spent a few weeks on assembly early in my path to becoming a programmer, the idea of an entire society that got to space with just that is insane, but I could see it happening given enough time.
85
u/lucky13pjn Alien Jan 14 '21
Some time in a later lecture
"...and this is what the humans call a race condition. Can anyone explain why this code does not work?"
Hundreds of eyes, sensory appendages, and visual translation devices all show confusion as the professor runs the same program with the same inputs and generates, seemingly randomly, different outputs.
43
u/HamsterIV AI Jan 14 '21
Having some how passed the compiler design course in my university's CS program, I can confidently say whoever initially came up with the design for modern programming languages is a space wizard.
33
u/[deleted] Jan 14 '21
Always remember the 1st rule of optimization:
Don't.
24
u/Repolaga Jan 14 '21
Can’t wait till they start studying JavaScript
17
u/Guerbern Jan 14 '21
it wolud be more harder if you put every char in ascii on the register ax and use the instrution int 21 to write and finish the program with int 20. By the way I used to program on assembly then I took an arrow in the knee.
17
u/AlexStorm1337 Jan 14 '21
I would like to add to this that programming in a language with a well built compiler can remove the reduced efficiency entirely; a compiler's entire purpose is to translate abstract code to machine code, and one built well enough will be able to spot and optimize code while converting in order to make it as if it had been written in machine code. You can run the programming language as is, but the computer needs to spend extra resources going back to machine code for each command
15
u/Kromaatikse Android Jan 14 '21 edited Jan 14 '21
Rolling back the clock another couple of decades:
versus
Since it probably isn't obvious, on the BBC Micro the entry point at $FFEE is OSWRCH, which writes a character to the screen, and $FFE7 is OSNEWL which writes a newline. Just for fun, this code includes a tail-call optimisation. The assembly syntax should be accepted by ca65.
The real lesson here is that humans value development time as much as runtime performance. Sometimes the latter is especially important, so more of the former is invested. At other times a difference in runtime performance will literally never be noticed, provided the guy coding it up doesn't do something pathologically stupid, so the quick and easy method is preferred.
14
u/Mufarasu Jan 14 '21
Damn, what a tease.
I wish you went further with the plotline.
12
u/old_reddit_ftw Jan 15 '21
"The most amazing achievement of the computer software industry is its continuing cancellation of the steady and staggering gains made by the computer hardware industry." — Henry Petroski
11
u/torin23 Xeno Jan 14 '21
Looking good.
Also looking forward to what else you write.
8
u/FogeltheVogel AI Jan 14 '21
Just wait until they learn about Machine Learning.
7
u/Illustrious_Hope_261 Jan 14 '21
This is really, really cool. HFY without the war and suffering. Wholesome, love it.
Couple of punctuation, grammar and spelling mistakes throughout but otherwise easily readable and I enjoyed it greatly. Good work.
7
u/ludomastro Jan 14 '21
I was a member of the last class at my university to take Fortran as the mandatory programming language. (It even counted as my foreign language.) This is great!
6
u/rednotmad Jan 14 '21
Extract from my class on language theory (with the comment in French) :
It show "COIN"
4 pages later, in higher level language
5
u/17_Bart Human Jan 14 '21
Well done, Wordsmith!
5
u/wildthornbury2881 Jan 14 '21
I really enjoyed this! It’s a unique story that shows off why humanity could be special without using “our guns are good” or “we change our environment to suit us.” The technicality and engineering feats we’re capable of makes us just as special
4
u/[deleted] Jan 14 '21
Short lecture.
Good story. :)
3
u/HFYWaffle Wᵥ4ffle Jan 14 '21
This is the first story by /u/ViolinistLazy333!
This comment was automatically generated by
Waffle v.4.4.0 'Eggs and Bacon'.Message the mods if you have any issues.
3
u/GrumpyCTurtle Human Jan 14 '21
Nice story.
One typo I found is in the 11th "block" of text.
"All expect for one" instead of except.
3
u/Eddie_gaming Xeno Jan 14 '21
yo this was great! I really encourage you to keep writing!
3
u/Teulisch Jan 14 '21
class two: the computer virus, malware, adware, and ransomware
2
u/falsebrit Android Jan 14 '21
reminds me of dr ed
MOAR!
2
u/Multiplex419 Jan 15 '21
I was actually kind of expecting a story about a language to program humans.
2
u/themonkeymoo Jan 15 '21
You have repeatedly used "an" before words that start with consonant phonemes. Those should be "a" instead. I suspect this was an autocorrect issue, since the usage isn't consistent (you correctly have "a" in several places, but you have "an" in several others).
2
u/okaterina Human Jan 15 '21
Now for Human Computer Science advanced, imagine the professor explaining Machine Learning algorithms : "Humans don't know how the Neuronal Networks reach a result, just that with enough training, they do. Humans are using Neuronal Networks extensively in FTL controlling computers. Yes, trusting an undecipherable algorithm to maintain the fabric of reality is ballsy".
2
u/ArrogantlyChemical Jan 15 '21
We dont. That's why some simple websites are 50 mb these days.
1
u/UpdateMeBot Jan 14 '21
Click here to subscribe to u/ViolinistLazy333 and receive a message every time they post.
1
u/ElAdri1999 Human Jan 14 '21
Please keep writing sir
1
u/Hyperion5182 Jan 14 '21
I think you got a good story here. :)
1
u/uphillpeace Jan 14 '21
This was nice.
1
u/IMDRC Jan 15 '21
Really understating the compile role. Sort of like how English and Chinese sound the same to a deaf person. Good misdirect though. I mean, you can't write well without knowing when to use the misdirect.
A galactic society that uses pictograghs/symbols to represent the same concept to people whose spoken language is different would realistically miss that point anyways though, so good job. I mean just ask the Chinese right?
1
u/Alkoviak Jan 15 '21
Great story, great angle. Just awesome !
1
u/ErinRF Alien Jan 15 '21
Why bother hand optimizing when we can write a program to do it for us?
I am gunna get so much ‘splaining for this comment.
1
u/plsander Jan 15 '21
Show them APL...
1
u/SkyHawk21 Jan 15 '21
I don't know programming. But all of a sudden I really want to see further lessons on human programming from this professor. Because I have a feeling it will be extremely entertaining, whilst also being ever so slightly educational.
1
u/PrimeInsanity Jan 15 '21
The seperation between "good enough" and needing to improve.
1
u/Finbar9800 Jan 15 '21
This is a great story
I enjoyed reading this
Great job wordsmith
I’m even more confused now than I was when I first tried the most basic of basic coding.
As for the code itself, at least you can tell what will happen pretty quickly I kinda think cnc coding is much more difficult because you can’t even put a program made on one machine onto another machine of the same make and model you literally have to rewrite it for each machine, plus the fact that you don’t know if you messed it up until the machine is already running it and if you did mess up you would have to stop everything and start over or you might just destroy something sometimes even both, but that’s just my opinion and I’m probably biased lol
1
u/wasalurkerforyears Robot Jan 15 '21
This gave me a sensible chuckle.
1
u/nozendk Jan 15 '21
I think I have actually been to that lecture. The name of the alien professor is Bjarne Stoustrup.
1
u/Smoother-Bytes Human Jan 15 '21
Did not expect to find the fellows of the compsci crowd writing but I'm pleasantly surprised by it
1
u/0LD_MAN_Dies Jan 16 '21
good story
1
u/blavek Jan 16 '21
Since you specifically mentioned translation software, you could go into languages and methods devoted specifically for language processing. Also we probably would write a program to do the translation. We'd probably train a neural network to do it. Which is like abstracting a programming language away altogether.
1
u/Mad_Maddin Jan 26 '21
Hmm I'm confused.
Don't we deal with this by having the compiler translate the entire thing into machine code once we are finished?
1
u/Tyrannus_Vitam Jan 14 '21
Moar?
1
u/Valcor36-66 Jan 14 '21
I DEMAND MOAR