[{"data":1,"prerenderedAt":311},["ShallowReactive",2],{"project-11334764":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":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":34,"aspects":35,"strip":42,"post_text":45,"what":46,"said":49,"maker_in_thread":143,"shape":145,"grid":150,"attempts":275,"same_week":276,"maker_shows":43,"maker_hidden":303,"reader_version":304,"card":305},"11334764","Quantum","Quantum suicide in Python","title","Show HN: Quantum suicide in Python","https:\u002F\u002Fgithub.com\u002Fkarldray\u002Fquantum","github.com","karldray",1458628026,2016,151,51,216,2264,10,"notable","languages","nondeterministic programming library","library",[24,25,26,27,28],"amb operator","nondeterministic programming","python","backtracking","many worlds","debated",-0.065,{"positive":32,"neutral":32,"mixed":33,"critical":32},6,0,18,{"idea":36,"execution":39,"performance":41},{"positive":37,"critical":38},3,4,{"positive":37,"critical":40},2,{"positive":33,"critical":33},[33,33,33,43,44,33,33,33,43,33,37,33,33,33,33,33,33,33,33,44,44,44,33,43,33,37,37,44,33,33,33,33,43,43,33,33,33,33,43,44],1,5,null,{"problem":45,"audience":45,"pricing":45,"motivation":45,"time_to_build":45,"stack":47,"openness":48,"stage":48,"team_size":48},[],"unknown",{"praise":50,"objections":85,"requests":112,"questions":113,"alternatives":122},[51,70],{"value":52,"source":53,"evidence":54},"Clever and elegant idea, fun to read","commenter",[55,59,63,66],{"id":56,"by":57,"text":58},"11335034","nudpiedo","I find it awesome! I've never seen something like that. I would like to know more details about this kind of programming (does it have to do with loud programming?) and to know…",{"id":60,"by":61,"text":62},"11335059","pschanely","You should certainly check out the code. It's very ... cute.",{"id":64,"by":57,"text":65},"11335381","I couldn't resist to take a fast look online... and yes, it's very pragmatic. Even I would say funny\u002Felegant, just expensive. HOWEVER simple and easy solutions often are better,…",{"id":67,"by":68,"text":69},"11336010","plugnburn","371 bytes in Python. Not minified. Bravo! Didn't get what does the exit code 55 mean though.",{"value":71,"source":53,"evidence":72},"Reminds commenters of amb, Prolog and Haskell list monads",[73,77,81],{"id":74,"by":75,"text":76},"11351154","ridiculous_fish","Is this the same as the amb form, as seen in SICP? https:\u002F\u002Fmitpress.mit.edu\u002Fsicp\u002Ffull-text\u002Fbook\u002Fbook-Z-H-28.html#%_sec_4.3.1",{"id":78,"by":79,"text":80},"11351698","andrewchambers","So this looks like prolog and logic programming to me.",{"id":82,"by":83,"text":84},"11352557","yyhhsj0521","Sounds like Haskell's list monads to me.",[86,97],{"value":87,"source":53,"evidence":88},"Forking per branch is resource intensive and unlikely to be practical",[89,93],{"id":90,"by":91,"text":92},"11353829","qwertyuiop924","So it's basically amb, but with using threading instead of backtracking. So probably faster than the classic amb implementation, esp. on multiprocessor architectures, but also…",{"id":94,"by":95,"text":96},"11351976","amelius","How is this different from an ordinary breadth-first search (with pruning)?",{"value":98,"source":53,"evidence":99},"Suicide method reliability and bugs could be dangerous",[100,104,108],{"id":101,"by":102,"text":103},"11352002","Arqwer","That code is pretty dangerous. I don't like the idea that I can become wounded-not-dead just because of a bug in the code. May be it worth to create a constant of safe…",{"id":105,"by":106,"text":107},"11351481","TelmoMenezes","Notice that for this to work reliably (assuming the Many World Interpretation is correct), you need a suicide method with a failure rate orders of magnitude below the probability…",{"id":109,"by":110,"text":111},"11353242","pyeng","Are we sure a bug in your code won't destroy the universe? Incidentally, that sounds like a great idea for a novel!",[],[114],{"value":115,"source":53,"evidence":116},"Is this useful for real problems?",[117,121],{"id":118,"by":119,"text":120},"11354797","gravypod","What is this used for? Why would this be important?",{"id":56,"by":57,"text":58},[123,131,139],{"value":124,"source":53,"evidence":125},"amb operator in SICP",[126,127],{"id":74,"by":75,"text":76},{"id":128,"by":129,"text":130},"11351352","dangirsh","Amb is implemented with a backtracking evaluator and supports a try-again operation for requesting all valid outputs (universes). This library just forks the process for each…",{"value":132,"source":53,"evidence":133},"Prolog and logic programming (logpy, core.logic)",[134,138],{"id":135,"by":136,"text":137},"11351103","humbledrone","If you find this kind of thing interesting, there is actually a branch of computer science called \"logic programming\" that is very similar, but actually useful for practical…",{"id":78,"by":79,"text":80},{"value":140,"source":53,"evidence":141},"Haskell list monad",[142],{"id":82,"by":83,"text":84},{"comments":33,"answered":33,"key":144},[],{"commenters":146,"max_depth":147,"maker_replies":33,"first_comment_mins":148,"lifespan_hours":149},33,14,103,68,[151,155,158,161,163,165,169,173,176,178,181,182,184,187,190,192,194,196,199,201,204,206,208,211,214,215,217,218,219,222,224,225,227,230,233,235,238,241,245,247,250,252,254,256,258,261,264,266,268,272,273],[152,33,33,153,154,33],"11351516","other\u002Fneutral\u002Fnone","unwind",[156,33,33,153,157,33],"11351637","Artoemius",[159,33,33,153,160,33],"11352341","mpnordland",[74,43,37,162,75,33],"project\u002Fneutral\u002Fidea",[128,43,43,164,129,33],"project\u002Fcritical\u002Fidea",[166,43,44,167,168,33],"11352226","project\u002Fpositive\u002Fidea","d0m",[170,40,33,171,172,33],"11351309","other\u002Fneutral\u002Fidea","stared",[174,40,33,171,175,33],"11351467","msellout",[177,40,33,171,172,33],"11351537",[179,40,33,171,180,33],"11353307","taneq",[105,40,43,164,106,33],[183,40,33,171,172,33],"11351582",[185,40,33,153,186,33],"11352030","Chris2048",[188,40,37,162,189,33],"11352404","ikeboy",[191,40,33,171,172,33],"11354069",[193,40,33,171,189,33],"11354203",[195,40,33,171,172,33],"11354293",[197,40,33,198,189,33],"11354404","commenter\u002Fneutral\u002Fdocs",[200,40,33,171,172,33],"11354587",[202,40,33,203,189,33],"11354619","other\u002Fcritical\u002Fidea",[205,40,33,171,172,33],"11355364",[207,40,33,203,189,33],"11355737",[209,40,33,210,172,33],"11355861","commenter\u002Fneutral\u002Fnone",[212,40,33,213,189,33],"11356511","commenter\u002Fneutral\u002Fidea",[56,37,44,167,57,33],[60,37,44,216,61,33],"project\u002Fpositive\u002Fexecution",[64,37,44,216,57,33],[135,37,33,171,136,33],[220,37,33,171,221,33],"11351089","pmalynin",[101,38,43,223,102,33],"project\u002Fcritical\u002Fexecution",[78,44,33,171,79,33],[226,32,37,162,102,33],"11352064",[228,32,33,171,229,33],"11353540","mdpopescu",[231,32,37,162,232,33],"11354958","OnLookAStar",[67,234,44,216,68,33],7,[236,234,33,153,237,33],"11351097","cyphar",[239,234,33,153,240,33],"11351344","Frenchgeek",[242,243,33,153,244,33],"11355766",8,"jrussino",[82,246,33,171,83,33],9,[248,246,33,171,249,33],"11356876","throweway",[90,18,37,251,91,33],"project\u002Fneutral\u002Fperformance",[109,253,43,223,110,33],11,[94,255,43,164,95,33],12,[257,255,33,153,102,33],"11352173",[259,255,33,153,260,33],"11353316","HCIdivision17",[262,255,33,153,263,33],"11354996","XaspR8d",[265,255,33,153,260,33],"11355048",[267,255,33,153,260,33],"11355091",[269,270,43,164,271,33],"11358069",13,"gaze",[118,147,37,162,119,33],[274,147,44,167,249,33],"11356848",[],[277,282,287,291,295,299],{"id":278,"name":279,"points":280,"category":281},"11317811","Honest Salary",314,"web_saas",{"id":283,"name":284,"points":285,"category":286},"11324166","Localkube",173,"dev_tools",{"id":288,"name":289,"points":290,"category":20},"11310485","English syntax highlighter",147,{"id":292,"name":293,"points":294,"category":286},"11327679","Micro",101,{"id":296,"name":297,"points":298,"category":20},"11321164","Rhine",81,{"id":300,"name":301,"points":298,"category":302},"11322584","Datasets.co","learning_science",false,"v2",{"id":306,"name":5,"line":6,"ai":303,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":307,"top":18,"kw":308,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":309,"url":9,"mix":310,"praise":52,"objection":87,"sub":21},11334764,-0.06,[24,25,26,27,28],"0001500010300000000555010335000011000015",[32,32,33,32],1793990940507]