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

founded 1 year ago
MODERATORS
 
top 9 comments
sorted by: hot top controversial new old
[–] dauerstaender@feddit.de 2 points 11 months ago

Unsafe block detected. Extermination initiated. There is no hiding from memory safety!

[–] r00ty@kbin.life 1 points 11 months ago

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.

[–] 30p87@feddit.de 1 points 11 months ago (1 children)

Personally,

echo Hello World!
[–] pranaless@beehaw.org 0 points 11 months ago (1 children)
use std::process::Command;

fn main() {
    Command::new("sh")
        .arg("-c")
        .arg("echo Hello World!")
        .spawn()
        .unwrap();
}

Like this?

[–] 30p87@feddit.de 0 points 11 months ago

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

[–] xmunk@sh.itjust.works 1 points 11 months ago

System.out.println

[–] umbraroze@kbin.social 1 points 11 months ago (1 children)

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.

[–] AVincentInSpace@pawb.social 0 points 11 months ago

That looks like a 6502 instruction. What system is it from?

[–] starman@programming.dev -1 points 11 months ago

Console.WriteLine("Hello World!");