XKCD-inspired StackSort
Languages and libraries
sorting algorithms
SHOW HN2013
Legend
XKCD-inspired StackSort
Ah, applying the Infinite monkey theorem to programming :)…
gkoberger.github.com#sorting algorithm#stackoverflow#javascript sort#genetic programming
How HN took it
32 positive, 47 neutral or asking, 1 mixed, 19 critical, out of 99 comments about the project. Thread score +0.25.
Idea: 18 for, 5 againstPrivacy: 1 for, 8 againstExecution: 3 for, 3 againstPerformance: 0 for, 3 againstDesign: 2 for, 0 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Funny and beautiful hack that delights readers
From 3 comments
If you give it about 30 seconds it works eventually, this is beautiful. I had a good laugh. Edit: It makes me want to do something crazy like setup a tool chain that cobbles…
recuter on HNBeautiful, beautiful!
fwenzel on HNThis is one of the coolest things that have happened on HN this year!
joezhou on HN
Ideas for extending it to unit tests and genetic programming
From 2 comments
Amazing One could join this with unit-tests so you would fetch code until the unit tests for what you are trying to do pass And then maybe add some genetic programming to it if…
raverbashing on HNThis is an exciting exchange for me because all joking aside I had this idea in the past and believe it should be a more active area of research. Why Forth? I doubt it is…
recuter on HN
Objections
Runs arbitrary fetched code in the browser, a security concern
From 3 comments
Quick someone write a 'sort' that steals github session cookies. ;P
btipling on HNI saw that this thing fetches a Javascript code and runs in my machine and am very dubious about its "script" action.
xfreax on HN"If you like running arbitrary code in your browser, try it out." - O.O
cinbun8 on HN
Slow or stuck on fetching for some Firefox setups
From 1 comment
Humm ... 6 minutes already, but it's still "Fetching page 1..." for me.
piyush_soni on HN
Requests
Add a performance test to compare sort algorithms
From 1 comment
Awesome! Should apply a performance test to each correct algorithm and later make a list of the most efficient sort code per list type
tson_11 on HN
Show the code that generated output more clearly
From 1 comment
I'd love a way to see the code that ran to generate the output.
potch on HN
Questions
How does it avoid same-origin policy restrictions?
From 1 comment
Semi related question -- how is this implemented security wise? I took a look at the github repo and it seems to be all clientside JS, and it's just making ajax GET search…
sherwin on HN
Whether it can loop forever on a bad answer
From 1 comment
This is brilliantly amazing. Whats stopping it from accidentally finding an infinite loop, though?
hatFolk on HN
Alternatives named
Smalltalk Method Finder in Pharo and Squeak
From 2 comments
Neat. Reminded me of how Pharo Smalltalk you can open the Method Finder and enter the arguments and expected output, and it lists methods that return the correct output. Now,…
emp on HNSqueak has this kind of thing actually built in: from a sample input and output IIRC it tries most available methods to find any that produce the output. Fetching more code off…
abecedarius on HN
SleepSort
From 1 comment
Direct at at /prog/ and you may eventually run across SleepSort, which would at least do something mildly useful (in >30 languages, no less!)
redthrowaway on HN