News for hackers. Stuff that matters.
Re:Ask HN: What is the most beautiful piece of code you've e... by numlock86 on Monday October 28, 2019 @02:48AM (#21374796)
I like the Windows one, too. It looks a lot simpler as well.

  %0|%0
Re:Ask HN: What is the most beautiful piece of code you've e... by jolmg on Monday October 28, 2019 @12:35PM (#21378497)
I don't know Windows scripting, but that looks like something you'd have to put in a file and call for it to work, instead of just running that on the command line. You can do the same thing on Unix systems. Writing

  $0|$0
on a file and running it should also work as a fork bomb.
Re:Ask HN: What is the most beautiful piece of code you've e... by dfox on Monday October 28, 2019 @11:56AM (#21378069)
The conceptually same thing will also work on bourne shell. But as in the Windows case only as a script stored in file, the original with inline function definition is self-contained oneliner.