Unsafe block detected. Extermination initiated. There is no hiding from memory safety!
this post was submitted on 31 Oct 2023
5 points (100.0% liked)
Programmer Humor
19331 readers
20 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
Or, you could just go the whole hog. Create your own simple CPU emulator, design a basic 8bitesque CPU, give it an output port that is the console, and load up some basic ASM to cycle through Hello World to the console port.
Personally,
echo Hello World!
use std::process::Command;
fn main() {
Command::new("sh")
.arg("-c")
.arg("echo Hello World!")
.spawn()
.unwrap();
}
Like this?
No, more like
use std::process::Command; fn main() { Command::new("sh").arg("-c").arg("echo Hello World!").spawn().unwrap(); }
.
Just a little bit shorter, as it seems /s
System.out.println
Oh you fancy PC people and your fancy syscall
instruction.
I still don't know why I could remember jsr $ab1e
. I didn't even write that much assembly.
That looks like a 6502 instruction. What system is it from?
Console.WriteLine("Hello World!");