What started as a attempt to make a quine turned into a chaotic-1 line destruction code.
This increases the system recursion limit to its max and makes a fork bomb
Such code can be copy pasted into a insecured server and destroy it completely.
Check it out and try to make it simpler if it is even possible
this is the best i could do but it goes across multiple lines
def x():x() import sys;sys.setrecursionlimit(9**9);x()
its 4 characters shorter including the newline, but obviously it isnt one line so its sort of cheating
never mind! ive manged to make it a whole 3 characters shorter than yours AND its on one line!
import sys;sys.setrecursionlimit(9**9);x=lambda:x();x() #import sys;s='exec(s)';sys.setrecursionlimit(9**9);exec(s)
The pinnacle of perfection in coding. This one line can be inserted anywhere into a code and completely destroy it. Hmm wonder if I can hack into the repl database and put it into other people's code 🤔🤔🤔
What is a recursion limit? I tried running the code without the limit and it stopped after 496. Does the recursion limit increase that number?
The 10k grand prize event is the programming language jam. You and a team of people have to create a programming language.
It ended near the end of August and the judges are currently judging the submissions. No more submissions are allowed.
This repl is not a part of the event.