© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Shreyansh Pandey
node, coffee and everything in between
I give you Python:
while 1:0
Girish Patil
Full-stack engineer
hah yay!!... with Python 2.* while 1:print 1 should do it I guess. With 14 chars
while 1:print 1
However, nothing beats assembly: jmp -2 (only supported by some assemblers)
jmp -2
I know what jmp does but I am not able to recollect what jmp -2 does. If you dont mind can you please let me know?
jmp
-2 refers to the immediate computation of a negative space pointer. The relative jump is often computed by the assembler. :) Only Netwide ASseMbler supports this, though.
-2
Gustavo Benedito Costa
Deaf-born, computer science student and language lover
Does it also stop, dear Doctor Pandey Strange? Or will we, like Dormmanu, be trapped in the eternal and unstoppable infinite loop?