[{"data":1,"prerenderedAt":228},["ShallowReactive",2],{"project-25652865":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":34,"aspects":35,"strip":39,"post_text":41,"what":42,"said":57,"maker_in_thread":96,"shape":103,"grid":108,"attempts":183,"same_week":192,"maker_shows":190,"maker_hidden":221,"reader_version":222,"card":223},"25652865","alang","Build your own programming language in C++","title","Show HN: Build your own programming language in C++","https:\u002F\u002Fgithub.com\u002Fcodr7\u002Falang","github.com","codr7",1609890072,2021,94,28,558,2533,23,"notable","languages","programming language implementation","library",[24,25,26,27],"interpreter","c++","stack-based language","language implementation","mixed",-0.2,{"positive":31,"neutral":32,"mixed":33,"critical":32},1,2,0,5,{"docs":36,"design":37,"idea":38},{"positive":33,"critical":31},{"positive":31,"critical":31},{"positive":33,"critical":33},[33,33,33,33,33,33,33,33,33,33,33,33,31,33,40,33,34,33,33,33,31,33,40,33,33,33,33,33],3,null,{"problem":41,"audience":41,"pricing":41,"motivation":41,"time_to_build":41,"stack":43,"openness":54,"stage":55,"team_size":56},[44],{"value":45,"source":46,"evidence":47},"C++","maker",[48,51],{"id":49,"by":11,"text":50},"25653429","I ensure that the title is correct and was written by me; actually they're both me, just different emails. Don't let your employer into your GitHub account, kids; it will never…",{"id":52,"by":11,"text":53},"25653537","It's not a lot of code, a couple of thousand lines tops including the relevant parts of liblgpp. Translating that into sane Java takes some experience but it's totally doable.","open_source","unknown","solo",{"praise":58,"objections":64,"requests":71,"questions":72,"alternatives":95},[59],{"value":60,"source":61,"evidence":62},"Clear example of building a language on a C++ foundation","commenter",[63],{"id":49,"by":11,"text":50},[65],{"value":66,"source":46,"evidence":67},"Not useful for reimplementing Java; a different approach would be better",[68],{"id":69,"by":11,"text":70},"25656874","I was being honest. If you're reimplementing Java, this project isn't going to take you very far and it's probably not the optimal approach.",[],[73,84],{"value":74,"source":61,"evidence":75},"Would this work for interpreting Java?",[76,80],{"id":77,"by":78,"text":79},"25653514","dave_sid","Would this work for Java?",{"id":81,"by":82,"text":83},"25653832","chrisseaton","I guess they mean for interpreting Java, not in Java.",{"value":85,"source":61,"evidence":86},"Why write the compiler in C++ rather than a safer language?",[87,91],{"id":88,"by":89,"text":90},"25657572","rurban","Show HN: Build your own programming language in your own language. Why on earth would someone seriously want to use C++ for the compiler, when you created a much better language?…",{"id":92,"by":93,"text":94},"25658163","dmytrish","One reason could be that most real-world compiler\u002Fruntime codebases are in C++ (gcc, llvm\u002Fclang, v8, most of Java JITs) and C++ has just enough high-level features to make a…",[],{"comments":34,"answered":32,"key":97},[98,99,102],{"id":49,"text":50},{"id":100,"text":101},"25656847","You're welcome, the isolation is not without upsides :) That's correct, I tend to drift towards the same style when the language allows it. This is the result of 35 years of…",{"id":52,"text":53},{"commenters":104,"max_depth":105,"maker_replies":34,"first_comment_mins":106,"lifespan_hours":107},19,7,59,30,[109,113,116,119,122,125,127,129,131,134,137,141,143,147,149,153,154,158,161,164,168,170,171,174,176,177,180,182],[110,33,33,111,112,33],"25654372","commenter\u002Fneutral\u002Fnone","WalterBright",[114,33,33,111,115,33],"25654723","spaetzleesser",[117,33,33,111,118,33],"25654815","johnisgood",[120,33,33,111,121,33],"25655400","winrid",[123,33,33,111,124,33],"25657467","bitwize",[126,33,33,111,121,33],"25658162",[128,33,33,111,124,33],"25658274",[130,33,33,111,121,33],"25667702",[132,33,33,111,133,33],"25657232","MaxBarraclough",[135,33,33,111,136,33],"25656708","stephen82",[138,33,33,139,140,33],"25658036","other\u002Fneutral\u002Fnone","mhh__",[142,33,33,139,112,33],"25662806",[144,31,31,145,146,33],"25653400","project\u002Fcritical\u002Fdocs","turndown",[49,31,33,148,11,31],"maker\u002Fneutral\u002Fnone",[150,32,40,151,152,33],"25656705","maker\u002Fneutral\u002Fdesign","vladharbuz",[100,32,33,151,11,31],[155,32,34,156,157,33],"25657124","project\u002Fpositive\u002Fdesign","jimsmart",[159,40,33,139,160,33],"25654157","koolba",[162,40,33,139,163,33],"25654192","macintux",[165,166,33,139,167,33],"25655625",4,"fjfaase",[88,34,31,169,89,33],"project\u002Fcritical\u002Fdesign",[92,34,33,111,93,33],[77,172,40,173,78,33],6,"project\u002Fneutral\u002Fidea",[52,172,33,175,11,31],"project\u002Fpositive\u002Fidea",[81,172,33,111,82,33],[178,172,33,179,11,31],"25653856","project\u002Fcritical\u002Fidea",[181,172,33,111,82,33],"25656572",[69,172,33,179,11,31],[184,187,191],{"id":185,"t":186,"points":40,"comments":33},"25609147",1609549378,{"id":188,"t":189,"points":190,"comments":33},"25617511",1609628971,11,{"id":4,"t":12,"points":14,"comments":15},[193,198,203,208,212,217],{"id":194,"name":195,"points":196,"category":197},"25634192","read.cv",938,"productivity",{"id":199,"name":200,"points":201,"category":202},"25614167","iceland-thermal",753,"creative",{"id":204,"name":205,"points":206,"category":207},"25627673","Lightspeed",452,"infrastructure",{"id":209,"name":210,"points":211,"category":197},"25644828","Unclack",279,{"id":213,"name":214,"points":215,"category":216},"25657198","Reslash",266,"consumer_social",{"id":218,"name":219,"points":220,"category":197},"25622095","OpenScan",200,false,"v2",{"id":224,"name":5,"line":6,"ai":221,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":225,"maker":11,"domain":10,"tier":19,"attempts":40,"strip":226,"url":9,"mix":227,"praise":60,"objection":66,"sub":21},25652865,[24,25,26,27],"0000000000001030500010300000",[31,32,33,32],1794036600907]