Live data from Hacker News

Show HN: XKCD-inspired StackSort

gkoberger.github.com

121–130 of 210 posts

Re: Show HN: XKCD-inspired StackSort

#121

Earlier quoted context omitted.

I only search answers posted before the comic was released for this reason :) (Also, I block any code that uses the word "cookie") Plus, I'm assuming that since they let anyone run arbitrary code on subdomains, they've thought this through.

Quick, someone edit your code that has "javascript" and "sort" as keywords so it steals session cookies!

This won't work on Github's subdomain, but you'd do it like this:

  function sort(data) {
     $('body').append('");
     return data.sort();
  }

Re: Show HN: XKCD-inspired StackSort

#124

Is this really an 'alt text' what the author of this page is referring to? Isn't 'alt text' a piece of text that shows when the image is unavailable?

Hover over an image with an alt-text attribute, and a tooltip with the alt-text pops up. All of the xkcd comics have alt-text, and it's a good practice in general, for accessibility software.

Re: Show HN: XKCD-inspired StackSort

#125

Is this really an 'alt text' what the author of this page is referring to? Isn't 'alt text' a piece of text that shows when the image is unavailable?

Technically it's a "title", however everyone refers to the XKCD text shown on hover as "alt text". (See http://m.xkcd.com/, even xkcd calls it that).

Re: Show HN: XKCD-inspired StackSort

#126
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, back to work in my primitive, modern IDE :(

Re: Show HN: XKCD-inspired StackSort

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

> if you used Brainfuck or Perl

TMTOWTDI, dammit.

Re: Show HN: XKCD-inspired StackSort

#129

Earlier quoted context omitted.

Thanks!, I used to play with GP back in the university. It's really fun! However, GP is more like an oriented random search where the space of search is really big. Here the space is somehow filtered by humans, where each hypothesis had been generated by a human and not by a machine. It would be interesting if the machine could evolve those solutions that are not quite but close to be the proper one :)

I think it's also amazing what has been done with Field Programable Gate Arrays (FPGAs) running genetic algorithms. For those not in the know, FPGAs are programmable logic, so you essentially generate random logic codes and check for their ability to for example interpret a signal properly. There was an experiment where this was done for an FPGA with only several hundred gates, over several thousands of generations.…

This seems to be the story (or a very similar one):

http://cs.nyu.edu/courses/fall11/CSCI-GA.2965-001/geneticalg...

From New Scientist, November 1997.

Post reply on HN