[{"data":1,"prerenderedAt":799},["ShallowReactive",2],{"project-5395463":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":16,"tier":18,"category":19,"subcategory":20,"format":21,"keywords":22,"reception":27,"sentiment":28,"stance_mix":29,"scored_comments":33,"aspects":34,"strip":47,"post_text":49,"what":50,"said":72,"maker_in_thread":168,"shape":178,"grid":182,"attempts":761,"same_week":762,"maker_shows":180,"maker_hidden":790,"reader_version":791,"card":792},"5395463","XKCD-inspired StackSort","Ah, applying the Infinite monkey theorem to programming :) http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FInfinite_monkey_theorem","maker","Show HN: XKCD-inspired StackSort","http:\u002F\u002Fgkoberger.github.com\u002Fstacksort\u002F?","gkoberger.github.com","gkoberger",1363626081,2013,948,198,1,1739,"legend","languages","sorting algorithms","web_app",[23,24,25,26],"sorting algorithm","stackoverflow","javascript sort","genetic programming","mixed",0.248,{"positive":30,"neutral":31,"mixed":16,"critical":32},32,47,19,99,{"idea":35,"execution":38,"design":40,"privacy":43,"docs":45,"performance":46},{"positive":36,"critical":37},18,5,{"positive":39,"critical":39},3,{"positive":41,"critical":42},2,0,{"positive":16,"critical":44},8,{"positive":42,"critical":42},{"positive":42,"critical":39},[37,39,39,16,39,39,39,42,42,16,41,16,37,42,42,39,41,16,39,39,39,37,42,39,37,42,41,48,37,37,37,48,39,37,39,41,37,39,39,37],4,null,{"problem":51,"audience":49,"pricing":49,"motivation":57,"time_to_build":49,"stack":61,"openness":70,"stage":71,"team_size":70},{"value":52,"source":7,"evidence":53},"Finds a working sort implementation by searching StackOverflow answers for code that sorts the input.",[54],{"id":55,"by":11,"text":56},"5395511","This was inspired by the alt-text from last week's \"Ineffective Sorts\" xkcd (http:\u002F\u002Fxkcd.com\u002F1185\u002F). It tries to sort a list or JSON by fetching code from StackOverflow until it…",{"value":58,"source":7,"evidence":59},"Inspired by the alt-text of xkcd's 'Ineffective Sorts' comic.",[60],{"id":55,"by":11,"text":56},[62],{"value":63,"source":64,"evidence":65},"JavaScript","commenter",[66],{"id":67,"by":68,"text":69},"5401616","sherwin","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…","unknown","launched",{"praise":73,"objections":99,"requests":122,"questions":137,"alternatives":149},[74,89],{"value":75,"source":64,"evidence":76},"Funny and beautiful hack that delights readers",[77,81,85],{"id":78,"by":79,"text":80},"5395616","recuter","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…",{"id":82,"by":83,"text":84},"5395568","fwenzel","Beautiful, beautiful!",{"id":86,"by":87,"text":88},"5397381","joezhou","This is one of the coolest things that have happened on HN this year!",{"value":90,"source":64,"evidence":91},"Ideas for extending it to unit tests and genetic programming",[92,96],{"id":93,"by":94,"text":95},"5395904","raverbashing","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…",{"id":97,"by":79,"text":98},"5396277","This 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…",[100,115],{"value":101,"source":64,"evidence":102},"Runs arbitrary fetched code in the browser, a security concern",[103,107,111],{"id":104,"by":105,"text":106},"5395837","btipling","Quick someone write a 'sort' that steals github session cookies. ;P",{"id":108,"by":109,"text":110},"5400935","xfreax","I saw that this thing fetches a Javascript code and runs in my machine and am very dubious about its \"script\" action.",{"id":112,"by":113,"text":114},"5399169","cinbun8","\"If you like running arbitrary code in your browser, try it out.\" - O.O",{"value":116,"source":64,"evidence":117},"Slow or stuck on fetching for some Firefox setups",[118],{"id":119,"by":120,"text":121},"5397201","piyush_soni","Humm ... 6 minutes already, but it's still \"Fetching page 1...\" for me.",[123,130],{"value":124,"source":64,"evidence":125},"Add a performance test to compare sort algorithms",[126],{"id":127,"by":128,"text":129},"5398665","tson_11","Awesome! Should apply a performance test to each correct algorithm and later make a list of the most efficient sort code per list type",{"value":131,"source":64,"evidence":132},"Show the code that generated output more clearly",[133],{"id":134,"by":135,"text":136},"5395746","potch","I'd love a way to see the code that ran to generate the output.",[138,142],{"value":139,"source":64,"evidence":140},"How does it avoid same-origin policy restrictions?",[141],{"id":67,"by":68,"text":69},{"value":143,"source":64,"evidence":144},"Whether it can loop forever on a bad answer",[145],{"id":146,"by":147,"text":148},"5396404","hatFolk","This is brilliantly amazing. Whats stopping it from accidentally finding an infinite loop, though?",[150,161],{"value":151,"source":64,"evidence":152},"Smalltalk Method Finder in Pharo and Squeak",[153,157],{"id":154,"by":155,"text":156},"5397339","emp","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,…",{"id":158,"by":159,"text":160},"5397682","abecedarius","Squeak 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…",{"value":162,"source":64,"evidence":163},"SleepSort",[164],{"id":165,"by":166,"text":167},"5397147","redthrowaway","Direct at at \u002Fprog\u002F and you may eventually run across SleepSort, which would at least do something mildly useful (in >30 languages, no less!)",{"comments":169,"answered":170,"key":171},15,7,[172,174,175],{"id":173,"text":6},"5395671",{"id":55,"text":56},{"id":176,"text":177},"5395688","It doesn't test for two reasons: 1) I thought it would defeat the purpose 2) \"Sort\" is very arbitrary. Do you want to sort by key or value? Is \"1000\" bigger or smaller than \"2\"?…",{"commenters":179,"max_depth":44,"maker_replies":169,"first_comment_mins":180,"lifespan_hours":181},140,6,67,[183,185,189,190,193,195,198,201,205,208,212,213,216,219,221,225,228,231,233,236,238,241,244,246,249,252,255,258,261,264,268,270,273,275,278,281,283,286,288,290,293,295,298,301,304,306,309,312,315,318,321,325,327,329,332,333,335,338,339,341,344,348,351,354,357,360,363,366,370,372,375,378,381,384,387,390,392,394,397,401,405,408,412,414,417,420,423,426,428,431,434,436,439,442,445,447,449,452,455,457,460,463,467,470,473,476,479,481,484,486,489,492,494,496,500,504,507,511,514,517,521,524,529,530,532,536,539,542,544,547,550,553,556,559,561,563,565,568,571,575,579,583,586,588,591,593,597,601,604,606,608,610,614,618,623,625,628,630,632,636,640,644,647,649,651,653,657,661,663,666,669,671,675,677,680,683,686,688,690,694,698,702,706,710,714,717,720,722,724,727,730,733,737,741,745,749,753,757],[78,42,37,184,79,42],"project\u002Fpositive\u002Fidea",[186,42,42,187,188,42],"5395664","other\u002Fneutral\u002Fnone","TheAnimus",[173,42,42,187,11,16],[191,42,42,187,192,42],"5396463","fnordfnordfnord",[165,42,39,194,166,42],"project\u002Fneutral\u002Fidea",[196,42,42,187,197,42],"5399890","vanderZwan",[199,42,39,194,200,42],"5396008","prawks",[202,42,39,203,204,42],"5396113","project\u002Fneutral\u002Fexecution","dmitshur",[206,42,39,194,207,42],"5396153","nathell",[209,42,42,210,211,42],"5396175","commenter\u002Fneutral\u002Fnone","shurcooL",[97,42,39,194,79,42],[214,42,39,194,215,42],"5397145","RodgerTheGreat",[217,42,42,210,218,42],"5397185","fizx",[220,42,42,210,215,42],"5397475",[222,42,16,223,224,42],"5399924","project\u002Fcritical\u002Fidea","vidarh",[226,42,42,210,227,42],"5400514","randomsearch",[229,42,42,187,230,42],"5396698","morphics",[232,42,42,187,227,42],"5400491",[234,42,39,194,235,42],"5396399","veaviticus",[237,42,39,194,211,42],"5396484",[239,42,39,194,240,42],"5396823","Retric",[242,42,42,187,243,42],"5396976","Falling3",[245,42,39,203,211,42],"5397026",[247,42,39,194,248,42],"5397218","omra",[250,42,39,203,251,42],"5396851","errnoh",[253,42,39,254,211,42],"5397060","maker\u002Fneutral\u002Fnone",[256,42,42,187,257,42],"5396230","Vivtek",[259,42,39,260,235,42],"5396379","project\u002Fneutral\u002Fnone",[262,42,42,187,263,42],"5396556","fdb",[265,42,37,266,267,42],"5396959","project\u002Fpositive\u002Fdesign","Steph0r",[269,42,16,223,227,42],"5400522",[271,42,39,194,272,42],"5397146","bo1024",[274,42,42,187,197,42],"5397532",[276,42,42,187,277,42],"5399792","worldsayshi",[279,42,42,187,280,42],"5397797","conrad24",[282,42,42,187,272,42],"5397934",[284,42,42,187,285,42],"5397937","PanMan",[287,42,42,187,79,42],"5397962",[289,42,42,187,224,42],"5399839",[291,42,42,187,292,42],"5398989","pfarrell",[294,42,42,187,224,42],"5399823",[296,42,42,187,297,42],"5399990","rmc",[299,42,42,187,300,42],"5400273","grimman",[302,42,42,187,303,42],"5399254","tianshuo",[305,42,42,187,297,42],"5399989",[307,42,42,187,308,42],"5400003","waterlesscloud",[310,42,42,210,311,42],"5400770","hawkw",[313,42,16,223,314,42],"5404010","pilsetnieks",[316,42,42,187,317,42],"5397358","Terretta",[319,42,42,187,320,42],"5397936","yen223",[322,42,16,323,324,42],"5399548","project\u002Fcritical\u002Fexecution","Tyrannosaurs",[326,42,16,223,297,42],"5399963",[328,42,42,210,227,42],"5400520",[330,16,37,266,331,42],"5396184","kevinalexbrown",[55,41,42,194,11,16],[334,41,39,203,83,42],"5395573",[336,41,16,323,337,42],"5395653","jstanley",[176,41,42,203,11,16],[340,41,42,210,83,42],"5395921",[342,41,39,194,343,42],"5397072","simcop2387",[345,41,37,346,347,42],"5396419","project\u002Fpositive\u002Fexecution","crusso",[349,41,42,210,350,42],"5396882","unfletch",[352,39,42,353,207,42],"5396013","other\u002Fneutral\u002Fidea",[355,39,42,187,356,42],"5396070","JoshTriplett",[358,39,42,187,359,42],"5396140","xymostech",[361,39,42,187,362,42],"5396260","tensafefrogs",[364,39,42,187,365,42],"5396320","jdechko",[367,39,42,368,369,42],"5396360","other\u002Fpositive\u002Fidea","pmelendez",[371,39,42,187,365,42],"5397086",[373,39,42,187,374,42],"5398366","TeMPOraL",[376,39,42,187,377,42],"5396505","BerislavLopac",[379,39,42,210,380,42],"5397005","claudius",[382,39,42,187,383,42],"5397691","arn",[385,39,42,187,386,42],"5398690","lmm",[388,39,42,187,389,42],"5399058","Trufa",[391,39,42,187,380,42],"5399634",[393,39,42,210,389,42],"5400160",[395,48,39,260,396,42],"5396527","JosephRedfern",[398,37,39,399,400,42],"5396364","project\u002Fmixed\u002Fprivacy","ChuckMcM",[402,37,39,403,404,42],"5396445","project\u002Fneutral\u002Fprivacy","BHSPitMonkey",[406,37,37,407,192,42],"5396482","maker\u002Fpositive\u002Fprivacy",[409,37,16,410,411,42],"5398174","project\u002Fcritical\u002Fprivacy","ufo",[413,37,16,410,404,42],"5402901",[415,37,39,403,416,42],"5396986","tlrobinson",[418,37,16,410,419,42],"5397223","apendleton",[421,180,42,353,422,42],"5396904","arikrak",[424,180,42,353,425,42],"5397215","ardrabczyk",[427,180,42,353,411,42],"5398208",[429,170,39,203,430,42],"5395965","gjulianm",[432,170,39,203,433,42],"5395977","ajanuary",[435,170,42,203,11,16],"5396003",[437,170,42,187,438,42],"5396455","asveikau",[440,170,42,441,11,16],"5396641","project\u002Fneutral\u002Fperformance",[443,170,42,187,444,42],"5396665","rm999",[446,170,42,187,83,42],"5397194",[448,170,42,187,438,42],"5396701",[450,170,42,187,451,42],"5396718","rozap",[453,170,42,187,454,42],"5398694","nixhope",[456,170,39,403,159,42],"5397665",[458,44,42,353,459,42],"5396535","milkshakes",[461,44,42,353,462,42],"5397411","gridspy",[464,465,39,203,466,42],"5396446",9,"Jeremy1026",[468,465,39,203,469,42],"5397162","niggler",[471,472,37,184,369,42],"5395870",10,[474,472,42,353,475,42],"5396108","subb",[477,472,42,478,369,42],"5396236","commenter\u002Fneutral\u002Fidea",[480,472,42,187,475,42],"5397985",[482,472,42,353,483,42],"5396357","mayank",[485,472,42,353,369,42],"5396628",[487,472,42,353,488,42],"5397099","solistice",[490,472,42,187,491,42],"5397391","maxerickson",[493,472,42,187,227,42],"5400535",[495,472,42,187,459,42],"5398062",[497,498,39,194,499,42],"5396814",11,"Tichy",[501,502,42,187,503,42],"5409819",12,"k_infinite",[505,506,42,353,377,42],"5396550",13,[508,509,39,194,510,42],"5396935",14,"JD557",[512,169,39,194,513,42],"5396672","alemhnan",[515,169,42,353,516,42],"5396792","gizmo686",[518,519,37,346,520,42],"5395922",16,"hcarvalhoalves",[522,519,39,203,523,42],"5396219","cwlb",[525,526,37,527,528,42],"5395800",17,"maker\u002Fpositive\u002Fidea","deathcakes",[104,36,39,403,105,42],[531,36,42,403,11,16],"5395849",[533,36,42,534,535,42],"5395882","commenter\u002Fneutral\u002Fprivacy","_dark_matter_",[537,36,42,534,538,42],"5397253","vnorby",[540,36,42,534,541,42],"5395933","c-oreills",[543,36,42,403,11,16],"5395966",[545,36,16,410,546,42],"5396132","petenixey",[548,36,16,410,549,42],"5396254","calebegg",[551,36,16,410,552,42],"5396342","VMG",[554,32,37,527,555,42],"5397685","DigitalSea",[134,557,39,558,135,42],20,"project\u002Fneutral\u002Fdocs",[560,557,42,558,11,16],"5395753",[93,562,37,184,94,42],21,[127,564,39,194,128,42],22,[566,567,42,187,374,42],"5396958",23,[569,567,39,194,570,42],"5397181","XEKEP",[572,573,39,194,574,42],"5396845",24,"ErikRogneby",[576,577,37,184,578,42],"5399067",25,"deepGem",[580,581,37,346,582,42],"5397666",26,"yaix",[82,584,37,585,83,42],27,"project\u002Fpositive\u002Fnone",[67,587,39,403,68,42],28,[589,587,39,403,590,42],"5401901","youngian",[146,592,39,203,147,42],29,[594,595,37,184,596,42],"5397410",30,"tandrasz",[598,599,37,184,600,42],"5396766",31,"mslot",[602,30,37,184,603,42],"5396691","shakkhar",[605,30,42,203,11,16],"5396979",[158,607,39,194,159,42],33,[154,609,42,353,155,42],34,[611,612,37,184,613,42],"5399501",35,"3dptz",[615,616,37,585,617,42],"5397554",36,"ryanhandby",[619,620,37,621,622,42],"5395796",37,"maker\u002Fpositive\u002Fnone","barredo",[112,624,16,410,113,42],38,[626,624,42,534,627,42],"5399222","chrischen",[629,624,42,534,113,42],"5399427",[86,631,37,585,87,42],39,[633,634,42,187,635,42],"5396050",40,"jayzalowitz",[637,638,39,260,639,42],"5396029",41,"hmsimha",[641,642,42,643,425,42],"5397254",42,"other\u002Fneutral\u002Fdocs",[645,642,42,643,646,42],"5397300","pizza",[648,642,42,643,411,42],"5398231",[650,642,42,643,646,42],"5401615",[652,642,42,643,11,16],"5397307",[654,655,37,621,656,42],"5395974",43,"logical42",[658,659,39,403,660,42],"5395846",44,"checksum",[662,659,42,403,11,16],"5395891",[664,659,39,403,665,42],"5395911","mrgoldenbrown",[667,659,39,403,668,42],"5396690","kevjiang",[108,670,16,410,109,42],45,[672,673,37,585,674,42],"5403397",46,"mortan",[676,31,39,203,523,42],"5396209",[678,31,39,203,679,42],"5396306","thedufer",[681,31,16,323,682,42],"5396865","anonymous",[684,31,42,685,679,42],"5399397","commenter\u002Fneutral\u002Fexecution",[687,31,42,203,11,16],"5396340",[689,31,39,203,83,42],"5397217",[691,692,16,223,693,42],"5397620",48,"bjc",[695,696,37,585,697,42],"5398730",49,"bcRIPster",[699,700,37,184,701,42],"5397899",50,"sxywu",[703,704,37,184,705,42],"5397216",51,"djbender",[707,708,37,184,709,42],"5396325",52,"dorafmon",[711,712,37,184,713,42],"5399919",53,"puissance",[119,715,16,716,120,42],54,"project\u002Fcritical\u002Fperformance",[718,715,42,719,11,16],"5397427","maker\u002Fneutral\u002Fperformance",[721,715,39,441,120,42],"5397469",[723,715,42,719,11,16],"5399249",[725,715,16,716,726,42],"5399921","Aldri",[728,715,16,716,729,42],"5397637","saiko-chriskun",[731,715,42,732,11,16],"5410237","maker\u002Fpositive\u002Fperformance",[734,735,37,184,736,42],"5399130",55,"snjha1712",[738,739,37,184,740,42],"5397293",56,"edraferi",[742,743,37,585,744,42],"5399840",57,"arthalbuwa",[746,747,42,187,748,42],"5414477",58,"shailparas",[750,751,37,184,752,42],"5399549",59,"mosselman",[754,755,37,184,756,42],"5396843",60,"haddr",[758,759,39,194,760,42],"5398037",61,"PBxdId7wFr",[],[763,768,772,777,782,786],{"id":764,"name":765,"points":766,"category":767},"5380056","Intro.js",716,"dev_tools",{"id":769,"name":770,"points":771,"category":767},"5407499","Webflow",503,{"id":773,"name":774,"points":775,"category":776},"5372183","CupidWithFriends",200,"web_saas",{"id":778,"name":779,"points":780,"category":781},"5377130","Replace Reader",175,"productivity",{"id":783,"name":784,"points":785,"category":767},"5386713","Advanced Namespace Tools (ANTS)",131,{"id":787,"name":788,"points":789,"category":19},"5390954","np",122,false,"v2",{"id":793,"name":5,"line":794,"ai":790,"cat":19,"year":13,"points":14,"comments":15,"rec":27,"s":795,"top":16,"kw":796,"maker":11,"domain":10,"tier":18,"attempts":42,"strip":797,"url":9,"mix":798,"praise":75,"objection":101,"sub":20},5395463,"Ah, applying the Infinite monkey theorem to programming :)…",0.25,[23,24,25,26],"5331333001215003213335035024555435325335",[30,31,16,32],1793990892212]