[{"data":1,"prerenderedAt":215},["ShallowReactive",2],{"project-30498735":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":37,"post_text":40,"what":41,"said":62,"maker_in_thread":129,"shape":135,"grid":139,"attempts":178,"same_week":179,"maker_shows":155,"maker_hidden":208,"reader_version":209,"card":210},"30498735","Prig","like AWK, but uses Go for “scripting”","title","Show HN: Prig – like AWK, but uses Go for “scripting”","https:\u002F\u002Fbenhoyt.com\u002Fwritings\u002Fprig\u002F?showhn","benhoyt.com","benhoyt",1646047748,2022,77,17,734,2570,29,"notable","dev_tools","text processing cli","cli",[24,25,26,27],"awk alternative","go scripting","text processing","command line","debated",0.05,{"positive":31,"neutral":31,"mixed":32,"critical":33},3,0,2,8,{"idea":36},{"positive":31,"critical":33},[38,39,32,32,38,39,38,32,32,32,32,31,31,32,32,31,32],5,1,null,{"problem":42,"audience":40,"pricing":40,"motivation":40,"time_to_build":40,"stack":54,"openness":61,"stage":61,"team_size":61},{"value":43,"source":44,"evidence":45},"Brings awk-style line processing to Go, avoiding awk syntax for those who know Go","commenter",[46,50],{"id":47,"by":48,"text":49},"30517952","philosopher1234","I like this because I don't have to learn AWK to use it, and I already know Go. Even if AWK is simple, I use it so rarely and every time i do its a return to the manual. With…",{"id":51,"by":52,"text":53},"30517271","andrewzah","I don’t really see the proposition value other than runtime. For most awk commands the syntax is succinct and works well. This unnecessarily makes it much more tedious and…",[55],{"value":56,"source":57,"evidence":58},"Go","maker",[59],{"id":60},"post","unknown",{"praise":63,"objections":76,"requests":97,"questions":98,"alternatives":99},[64,72],{"value":65,"source":44,"evidence":66},"Useful for those who already know Go and dislike learning awk syntax",[67,68],{"id":47,"by":48,"text":49},{"id":69,"by":70,"text":71},"30517421","Brian_K_White","I don't like the go requirement when compared to awk which is essentially no requirement at all. And I generally don't like reimplementations of things that already exist without…",{"value":73,"source":44,"evidence":74},"Faster execution than interpreted awk-style scripts",[75],{"id":69,"by":70,"text":71},[77,85,89],{"value":78,"source":44,"evidence":79},"Verbose compared with awk's terse syntax",[80,81],{"id":51,"by":52,"text":53},{"id":82,"by":83,"text":84},"30517381","jjtheblunt","totally agree",{"value":86,"source":44,"evidence":87},"Reimplements existing tools without strong justification",[88],{"id":69,"by":70,"text":71},{"value":90,"source":44,"evidence":91},"Requires Go, unlike awk which is available everywhere",[92,93],{"id":69,"by":70,"text":71},{"id":94,"by":95,"text":96},"30515630","thinkingkong","Its probably a familiarity thing, but to me the beauty of tools like awk and sed are that theyre relatively simple, compact, and usually everywhere. The DSL is tricky to get past…",[],[],[100,108,115,122],{"value":101,"source":44,"evidence":102},"awk",[103,104,105],{"id":51,"by":52,"text":53},{"id":94,"by":95,"text":96},{"id":106,"by":11,"text":107},"30519204","Yeah, I don't disagree: > Should you use Prig? I’m not going to stop you! But to be honest, you’re probably better off learning the ubiquitous (and significantly terser) AWK…",{"value":109,"source":44,"evidence":110},"JBang (Java scripts)",[111],{"id":112,"by":113,"text":114},"30517268","evacchi","I put together a script using JBang (Scripts in Java https:\u002F\u002Fjbang.dev) https:\u002F\u002Fgist.github.com\u002Fevacchi\u002F7fb37056d92f72ae88157adcbb2f6bea",{"value":116,"source":44,"evidence":117},"Nim-based rp variant",[118],{"id":119,"by":120,"text":121},"30519283","cb321","The Nim variant (yes, knowing Nim first matters) has terser syntax, but retains the strong typing that allows compiling to fast running code. E.g., from the rp --help, to total…",{"value":123,"source":44,"evidence":124},"TXR Lisp",[125],{"id":126,"by":127,"text":128},"30519570","esrh","I agree. Your comment got me thinking about a lisp dsl for awk-like operations. txr lisp[0] comes with one of these. [0] https:\u002F\u002Fwww.nongnu.org\u002Ftxr\u002Ftxr-manpage.html#N-000264BC",{"comments":33,"answered":33,"key":130},[131,132],{"id":106,"text":107},{"id":133,"text":134},"30519263","TIL about pz (kind of like this but using Python) -- that's very cool! https:\u002F\u002Fgithub.com\u002FCZ-NIC\u002Fpz",{"commenters":136,"max_depth":31,"maker_replies":33,"first_comment_mins":137,"lifespan_hours":138},14,1704,51,[140,142,144,146,147,148,149,150,154,156,158,159,163,165,166,170,175],[69,32,38,141,70,32],"project\u002Fpositive\u002Fidea",[51,39,39,143,52,32],"project\u002Fcritical\u002Fidea",[82,39,32,145,83,32],"commenter\u002Fcritical\u002Fnone",[106,39,32,143,11,39],[119,39,38,141,120,32],[94,33,39,143,95,32],[47,31,38,141,48,32],[151,31,32,152,153,32],"30518917","other\u002Fneutral\u002Fnone","abraae",[112,155,32,152,113,32],4,[157,155,32,152,113,32],"30519129",[133,155,32,152,11,39],[160,38,31,161,162,32],"30515948","project\u002Fneutral\u002Fnone","alex_muscar",[164,38,31,161,120,32],"30516231",[126,38,32,152,127,32],[167,38,32,168,169,32],"30527600","other\u002Fneutral\u002Fdocs","nerdponx",[171,172,31,173,174,32],"30516077",6,"project\u002Fneutral\u002Fidea","tedunangst",[176,172,32,152,177,32],"30516242","stevekemp",[],[180,185,190,195,199,204],{"id":181,"name":182,"points":183,"category":184},"30517626","Almost Pong",1135,"games",{"id":186,"name":187,"points":188,"category":189},"30503197","booqsi.com",478,"consumer_social",{"id":191,"name":192,"points":193,"category":194},"30529262","Huemint",335,"creative",{"id":196,"name":197,"points":198,"category":189},"30489003","Messages for Macintosh",211,{"id":200,"name":201,"points":202,"category":203},"30457900","Programming Time",203,"learning_science",{"id":205,"name":206,"points":207,"category":20},"30531621","WAPM",186,false,"v2",{"id":211,"name":5,"line":6,"ai":208,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":29,"top":18,"kw":212,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":213,"url":9,"mix":214,"praise":65,"objection":78,"sub":21},30498735,[24,25,26,27],"51005150000330030",[31,31,32,33],1794036617506]