3 ms·
I recently wrote a little program that will create a Markov Chain from on our perl codebase, generate a few sentences and check against `perl -c`. It takes less
by ricardobeat 8y ago
I recently wrote a little program that will create a Markov Chain from on our perl codebase, generate a few sentences and check against `perl -c`. It takes less than 10 attempts to generate a bunch of lines of [very funny] valid Perl code.
- snazz 8y agoHey! I did that too! Except my version ran the Markov chain against its own source code, which was padded with a bunch of meaningless subs that did were never called but were valid code. It also ran in an infinite loop, which worked well. I had to kill it after a few minutes because I was afraid it would start running shell commands.
- true_tuna 8y agoAnd the terrible truth is this is how we got skynet.
- stevekemp 8y agoI was too scared to run randomly generated perl-code. But I did have some fun fuzzing awk/gawk a while back. https://blog.steve.fi/if_line_noise_is_a_program__all_fuzzers_are_developers.html https://blog.steve.fi/if_line_noise_is_a_program__all_fuzzer...