[{"data":1,"prerenderedAt":190},["ShallowReactive",2],{"project-40400635":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":28,"sentiment":29,"stance_mix":30,"scored_comments":33,"aspects":34,"strip":37,"post_text":29,"what":39,"said":51,"maker_in_thread":96,"shape":103,"grid":107,"attempts":147,"same_week":152,"maker_shows":182,"maker_hidden":183,"reader_version":184,"card":185},"40400635","cpmulator","A Golang CP\u002FM emulator","title","Show HN: A Golang CP\u002FM emulator","https:\u002F\u002Fgithub.com\u002Fskx\u002Fcpmulator","github.com","stevekemp",1716054535,2024,107,15,791,3515,23,"notable","languages","emulator","cli",[24,25,26,27],"cp\u002Fm emulator","golang","z80 emulator","retro computing","quiet",null,{"positive":31,"neutral":31,"mixed":31,"critical":32},1,0,3,{"execution":35,"idea":36},{"positive":32,"critical":32},{"positive":31,"critical":32},[33,32,33,32,38,32,32,32,32,32,32,32,32,32,32],5,{"problem":29,"audience":29,"pricing":29,"motivation":29,"time_to_build":29,"stack":40,"openness":50,"stage":50,"team_size":50},[41],{"value":42,"source":43,"evidence":44},"Go","maker",[45,47],{"id":46},"post",{"id":48,"by":11,"text":49},"40403788","Thanks for the feedback - there's a disjoined comment in the README on portability that points to the golang package x\u002Fterm, and a single open bug report that says \"fix it\". So I…","unknown",{"praise":52,"objections":65,"requests":74,"questions":83,"alternatives":91},[53],{"value":54,"source":55,"evidence":56},"Interesting project, appreciated by retro computing fans","commenter",[57,61],{"id":58,"by":59,"text":60},"40401983","an-unknown","This project looks interesting. I saw you use stty to configure the console, but there is a native \"UNIX way\" to do this via tcgetattr\u002Ftcsetattr, you'll have to figure out how to…",{"id":62,"by":63,"text":64},"40401544","wiz21c","cp\u002Fm still ticking... Time flies! Had somewhat checked it once on my Apple 2 :-)",[66],{"value":67,"source":55,"evidence":68},"Console configuration relies on stty, which is not portable",[69,70],{"id":58,"by":59,"text":60},{"id":71,"by":72,"text":73},"40403203","whartung","I dabble with the CP\u002FM simulator in z80pack. And I had to use stty to make it work better from the command line. At least from BASH on MacOS. Minimally, you need to disable ^Z,…",[75,79],{"value":76,"source":55,"evidence":77},"Use tcgetattr\u002Ftcsetattr or Windows console APIs for terminal setup",[78],{"id":58,"by":59,"text":60},{"value":80,"source":55,"evidence":81},"Add full execution trace recording of Z80 instructions",[82],{"id":58,"by":59,"text":60},[84],{"value":85,"source":55,"evidence":86},"Why not use Go's built-in build switches for platform differences",[87],{"id":88,"by":89,"text":90},"40402132","Max-q","> you'll have to add some compile time switch Isn't it best to use the switch already built into Go?",[92],{"value":93,"source":55,"evidence":94},"z80pack",[95],{"id":71,"by":72,"text":73},{"comments":97,"answered":32,"key":98},2,[99,100],{"id":48,"text":49},{"id":101,"text":102},"40404320","I wrote a BASIC interpreter in golang a few years back, and somehow the child really fell in love with the classic \"guess the number\" game:…",{"commenters":104,"max_depth":38,"maker_replies":97,"first_comment_mins":105,"lifespan_hours":106},13,125,32,[108,110,112,114,116,120,122,124,127,130,132,135,138,141,144],[58,32,33,109,59,32],"project\u002Fmixed\u002Fexecution",[88,32,32,111,89,32],"commenter\u002Fneutral\u002Fnone",[71,32,33,113,72,32],"project\u002Fneutral\u002Fexecution",[48,32,32,115,11,31],"maker\u002Fneutral\u002Fexecution",[117,31,38,118,119,32],"40404227","project\u002Fpositive\u002Fidea","bitwize",[101,31,32,121,11,31],"maker\u002Fpositive\u002Fidea",[62,97,32,123,63,32],"other\u002Fneutral\u002Fnone",[125,97,32,123,126,32],"40401598","jimmaswell",[128,97,32,123,129,32],"40402417","nsguy",[131,97,32,123,126,32],"40411140",[133,97,32,123,134,32],"40402823","technofiend",[136,97,32,123,137,32],"40403609","LeFantome",[139,97,32,123,140,32],"40406235","nickdothutton",[142,97,32,123,143,32],"40406262","lproven",[145,97,32,123,146,32],"40406911","Tor3",[148,151],{"id":149,"t":150,"points":33,"comments":32},"40187708",1714302851,{"id":4,"t":12,"points":14,"comments":15},[153,158,163,168,173,178],{"id":154,"name":155,"points":156,"category":157},"40431126","Pls Fix",444,"web_saas",{"id":159,"name":160,"points":161,"category":162},"40429200","graphgame.sabrina.dev",321,"games",{"id":164,"name":165,"points":166,"category":167},"40441945","Unify",298,"ai",{"id":169,"name":170,"points":171,"category":172},"40392548","EquityVal",287,"finance_crypto",{"id":174,"name":175,"points":176,"category":177},"40443927","Neosync",246,"data",{"id":179,"name":180,"points":181,"category":177},"40432213","Openpanel",244,14,false,"v2",{"id":186,"name":5,"line":6,"ai":183,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":187,"maker":11,"domain":10,"tier":19,"attempts":97,"strip":188,"url":9,"mix":189,"praise":54,"objection":67,"sub":21},40400635,[24,25,26,27],"303050000000000",[31,31,31,32],1794036654990]