Live data from Hacker News

Show HN: XKCD-inspired StackSort

gkoberger.github.com

171–180 of 210 posts

Re: Show HN: XKCD-inspired StackSort

#172

Earlier 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)

Let me know if you do. It works fine for me in Firefox (I'm an ex-Mozillian; that was the first place I checked), so I don't know why it's not working.

Re: Show HN: XKCD-inspired StackSort

#173
post #108

Earlier 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…

Next step, deal weapons of mass destruction using bitcoins. Final step, skynet...

Re: Show HN: XKCD-inspired StackSort

#174

Earlier 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…

Sorry; I should have specified that I only used the example input.

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???

True. But in this case you could post a stackoverflow question / answer to take advantage of the fact that it will be run on another machine.

Re: Show HN: XKCD-inspired StackSort

#177
post #5

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 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…

> Throw enough resources at it maybe it will be faster and cheaper than your avg. developer.

> It will be an unmaintainable mess.

So cheaper than your average developer with about the same code quality?

Re: Show HN: XKCD-inspired StackSort

#179
post #166
post #33

Has 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

Not quite his comic idea, but you might also be interested in Not Tetris[0], which is a little less hellish and quite a lot of fun.

[0] http://stabyourself.net/nottetris2

Re: Show HN: XKCD-inspired StackSort

#180
post #108

Earlier 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."

This was an early idea for the Matrix wasn't it. Machines using human brains for processing power.
Post reply on HN