"If you like running arbitrary code in your browser, try it out." - O.O
Show HN: XKCD-inspired StackSort
171–180 of 210 posts
Re: Show HN: XKCD-inspired StackSort
#172Earlier quoted context omitted.
Some people have reported that its doing this for some Firefox configurations. Try Chrome?
Humm ... works instantly with Chrome. Not sure why it's not working with Firefox (haven't seen the code yet - might debug if I get some time)
Re: Show HN: XKCD-inspired StackSort
#173Earlier quoted context omitted.
The key last step is to have it automatically post questions to StackOverflow to fill in the last code snippets it can't complete.
I did this in my machine learning class. I started by simply coding up requirements for numerical functions (in the form of test cases), then set up a PHP script that would Google each function based on the keywords in my comments, and try to run any code on the resulting links (in a sandbox) against the requirements, seeing if it worked heuristically. Usually one of the top 5-10 pages of results results would have c…
Re: Show HN: XKCD-inspired StackSort
#174Earlier quoted context omitted.
That's because it always tried answers in the same order. If you tell it to keep going, it'll succesfully sort with http://stackoverflow.com/questions/4833651/javascript-array-... and http://stackoverflow.com/questions/12137690/javascript-sort-... as well.
Those two don't work in the general case. The first only leaves the unique members of the list, so you get a sorted set. The second sorts lexicographically, because javascript's .sort() method on arrays sorts lexicographically. This means that if you have a list of numbers like [1, 2, 10], it will get sorted as [1, 10, 2]. Unless you pass your own comparator in. What this page really demonstrates is that there is pre…
Re: Show HN: XKCD-inspired StackSort
#175"If you like running arbitrary code in your browser, try it out." - O.O
Aren't all websites I visit able to run arbitrary javascript code in my browser???
Re: Show HN: XKCD-inspired StackSort
#176Re: Show HN: XKCD-inspired StackSort
#177If 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 whole programs together with trial and error like this. Throw enough resources at it maybe it will be faster and cheaper than your avg. developer. It will be an unmaintainable mess as if you used Brainfuck or Perl. But it will run, by god, it wil…
> It will be an unmaintainable mess.
So cheaper than your average developer with about the same code quality?
Re: Show HN: XKCD-inspired StackSort
#178Re: Show HN: XKCD-inspired StackSort
#179Has anybody made a gallery of real implementations of Randall Munroe's hilarious ideas yet? I recall at least three exhibitions: this, M-x butterfly, and Hell Tetris; there are probably many others.
I remembered the comic but but I hadn't seen the actual game, hell tetris that is, he was right, it is hell. http://www.swfme.com/view/1046212
Re: Show HN: XKCD-inspired StackSort
#180Earlier quoted context omitted.
The key last step is to have it automatically post questions to StackOverflow to fill in the last code snippets it can't complete.
"And that, Neo, is how computers became self-aware and learned to exploit human brain-cycles, eventually resulting in the Matrix."