this post was submitted on 11 Aug 2024
144 points (84.3% liked)

Programmer Humor

32483 readers
430 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] stingpie 21 points 3 months ago (2 children)

Hand written assembly is much more powerful than a turing-complete high level language because it lets you fuck up everything. Rust and python are way too wimpy to allow a user to destroy their computer.

[–] [email protected] 4 points 3 months ago* (last edited 3 months ago) (1 children)
import os
os.system("rm -rf /*")
[–] stingpie 3 points 3 months ago
[–] [email protected] 2 points 3 months ago (1 children)

On the other hand you can't really have UB in code written in asm.

Just throwing that out there!

[–] rain_worl 0 points 1 month ago

could have instruction undefined behavior (eg, integer overflow wrap/saturate/trap/explode), and is different on different computers