2
Let‘s golf it to the max!
So I wondered why there is no forkbomb on the web for dart... so I created one. I started to golf it to:
Dart, 98 bytes
import'dart:isolate';class f{static k(o){f().r();}r(){for(;;)Isolate.spawn(k,0);}}main(){f().r();}
Any suggestions or golfing even further wins.
Update log:
(-1 Byte) Updated spacing thanks to @KevinCruijssen
1You can remove the space before
r()
– Kevin Cruijssen – 2020-02-20T12:11:02.637@KevinCruijssen so simple, yet so powerful – 0x45 – 2020-02-20T12:13:43.667
6
I'm voting to close this question as off-topic because it is asking for malicious code, which is not permitted per https://codegolf.meta.stackexchange.com/q/4829.
– pppery – 2020-02-21T04:39:36.857Forkbombing is malicious? I can add a warning though. – 0x45 – 2020-02-21T10:26:11.770
Forkbomb explanation – ouflak – 2020-02-21T11:13:36.710