[{"data":1,"prerenderedAt":418},["ShallowReactive",2],{"project-17236967":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":35,"aspects":36,"strip":45,"post_text":47,"what":48,"said":71,"maker_in_thread":156,"shape":167,"grid":172,"attempts":380,"same_week":381,"maker_shows":38,"maker_hidden":410,"reader_version":411,"card":412},"17236967","blush","Grep with colours written in Go","title","Show HN: Grep with colours written in Go","https:\u002F\u002Fgithub.com\u002Farsham\u002Fblush","github.com","arsham",1528201415,2018,127,82,328,2155,16,"notable","dev_tools","command line search tool","cli",[24,25,26,27,28],"grep","colour output","go cli","terminal search","syntax colouring","debated",-0.031,{"positive":32,"neutral":32,"mixed":33,"critical":34},5,0,7,17,{"idea":37,"performance":40,"design":42,"execution":43,"docs":44},{"positive":38,"critical":39},2,4,{"positive":41,"critical":38},1,{"positive":41,"critical":33},{"positive":33,"critical":33},{"positive":41,"critical":41},[46,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,41,41,41,41,46,33,33,33,33,33,33,32,32,32,46,46,46,41,32,33],3,null,{"problem":47,"audience":47,"pricing":47,"motivation":49,"time_to_build":47,"stack":56,"openness":69,"stage":70,"team_size":69},{"value":50,"source":51,"evidence":52},"Maker needed a tool and built it; thought others might like it","maker",[53],{"id":54,"by":11,"text":55},"17247026","So far I've been only concerned about code's simplicity until I understand what there needs to be done. This is not going to be grep or ripgrep. My intent was to make a tool I…",[57],{"value":58,"source":59,"evidence":60},"Go","commenter",[61,65],{"id":62,"by":63,"text":64},"17243230","ereyes01","Nice job! Language-specific coloring is really nice! I'll give it a try. I normally use a different Golang tool called sift as my grep replacement (which I love so far):…",{"id":66,"by":67,"text":68},"17243602","mvkg","A quick look at the source shows that it appears to be linear and just uses `strings.Contains` or `r.MatchString` on each line, so I don't think it has any of the optimizations…","unknown","prototype",{"praise":72,"objections":81,"requests":105,"questions":124,"alternatives":132},[73],{"value":74,"source":59,"evidence":75},"Language-specific colouring is useful and nicely done",[76,77],{"id":62,"by":63,"text":64},{"id":78,"by":79,"text":80},"17244878","tex0","Nice UI! Some time ago I wrote something similar, because I was missing some features in ripgrep (which is otherwise pretty awesome): https:\u002F\u002Fgithub.com\u002Fdominikschulz\u002Fgg",[82,94],{"value":83,"source":59,"evidence":84},"Performance is slower than ag or ripgrep; no search optimisations",[85,86,90],{"id":66,"by":67,"text":68},{"id":87,"by":88,"text":89},"17246497","ozkatz","It's a very nice idea and you should be proud of what you've built, but my personal opinion is that speed is a core feature of `grep`. A good place to start would be this: why…",{"id":91,"by":92,"text":93},"17243902","valarauca1","I’m doubtful ag and rg use a lot of smart optimizations to get their speed.",{"value":95,"source":59,"evidence":96},"Colour output is unwanted by many users; NO_COLOR standard suggested",[97,101],{"id":98,"by":99,"text":100},"17243263","abstractbeliefs","Do be sure to at least consider supporting no colour! http:\u002F\u002Fno-color.org",{"id":102,"by":103,"text":104},"17244313","ggreer","I don't understand why this is a standard. First: It requires that every command line tool add support for this environment variable. It may not be much effort for each project,…",[106,114],{"value":107,"source":59,"evidence":108},"Support the NO_COLOR environment variable",[109,110],{"id":98,"by":99,"text":100},{"id":111,"by":112,"text":113},"17246416","notinventedhear","+1 for NO_COLOR. For example, yellow text on a dull yellow background? No thanks. For years I've just wrapped commands on bash to strip the colour control-codes from stdout.…",{"value":115,"source":59,"evidence":116},"Handle broken pipe errors cleanly",[117,121],{"id":118,"by":119,"text":120},"17245075","teekert","But... Can it elegantly suppress broken pipe errors?",{"id":122,"by":11,"text":123},"17245362","Handling signals are not implemented yet. I appreciate it if you file an issue when you find any. Thanks.",[125],{"value":126,"source":59,"evidence":127},"Is the speed competitive with ag?",[128],{"id":129,"by":130,"text":131},"17243242","JackCh","Is this speed competitive with tools like the silver searcher (`ag`) or is the focus here on color?",[133,140,148,152],{"value":134,"source":59,"evidence":135},"GNU grep colour support",[136],{"id":137,"by":138,"text":139},"17246866","megous","GNU grep has support for colors.",{"value":141,"source":59,"evidence":142},"ripgrep",[143,144],{"id":78,"by":79,"text":80},{"id":145,"by":146,"text":147},"17246745","burntsushi","Note that you don't need Boyer Moore for the common case. ripgrep for example will very rarely use Boyer Moore. Its work horse is much simpler and typically faster:…",{"value":149,"source":59,"evidence":150},"sift",[151],{"id":62,"by":63,"text":64},{"value":153,"source":59,"evidence":154},"the silver searcher (ag)",[155],{"id":129,"by":130,"text":131},{"comments":34,"answered":41,"key":157},[158,161,164],{"id":159,"text":160},"17245308","There is a --no-colour\u002F--no-color argument you can pass.",{"id":162,"text":163},"17245344","That is correct. The project is at its early stages. I want to see what the community need the most and shape the project towards that goal. On the other hand I tried to avoid…",{"id":165,"text":166},"17246692","Thanks mate, I will definitely have a read.",{"commenters":168,"max_depth":169,"maker_replies":34,"first_comment_mins":170,"lifespan_hours":171},47,9,691,194,[173,175,179,182,186,189,192,195,197,199,201,204,206,209,213,216,218,220,223,226,229,231,233,236,239,241,244,246,248,250,253,255,257,259,262,264,266,268,270,272,273,274,278,281,283,285,287,289,290,292,293,295,297,300,303,306,308,310,312,315,317,321,323,326,329,333,335,337,339,341,344,345,348,351,353,357,362,365,369,372,375,378],[98,33,46,174,99,33],"project\u002Fneutral\u002Fnone",[176,33,33,177,178,33],"17243507","other\u002Fneutral\u002Fnone","gitgud",[180,33,33,177,181,33],"17244157","barrowclift",[183,33,33,184,185,33],"17244237","other\u002Fneutral\u002Fdesign","rektide",[187,33,33,188,181,33],"17246952","commenter\u002Fneutral\u002Fnone",[190,33,33,177,191,33],"17244247","vanattab",[193,33,33,188,194,33],"17244318","wruza",[196,33,33,188,99,33],"17244347",[198,33,33,188,194,33],"17244380",[200,33,33,188,99,33],"17244420",[202,33,33,188,203,33],"17252580","masukomi",[205,33,33,184,194,33],"17244302",[207,33,33,184,208,33],"17244611","pravus",[210,33,33,211,212,33],"17244784","commenter\u002Fneutral\u002Fdesign","scrollaway",[214,33,33,188,215,33],"17245712","laumars",[217,33,33,188,208,33],"17246905",[219,33,33,177,130,33],"17244811",[221,33,33,188,222,33],"17245729","pure-awesome",[224,33,33,188,225,33],"17246045","Too",[227,33,33,188,228,33],"17246636","delinka",[102,33,33,230,103,33],"other\u002Fcritical\u002Fidea",[232,33,33,188,99,33],"17244341",[234,33,33,188,235,33],"17246746","the_af",[237,33,33,188,238,33],"17246826","mbrumlow",[240,33,33,177,194,33],"17244359",[242,33,33,188,243,33],"17245648","giancarlostoro",[245,33,33,188,138,33],"17246706",[247,33,33,188,238,33],"17246907",[249,33,33,188,146,33],"17247006",[251,33,33,188,252,33],"17247263","tom_",[254,33,33,188,146,33],"17247452",[256,33,33,188,238,33],"17249709",[258,33,33,188,138,33],"17263220",[260,33,33,177,261,33],"17244429","samatman",[263,33,33,188,215,33],"17245743",[265,33,33,188,261,33],"17249369",[267,33,33,188,215,33],"17253454",[269,33,33,188,261,33],"17259041",[271,33,33,188,215,33],"17263116",[159,33,33,174,11,41],[111,33,33,177,112,33],[275,33,41,276,277,33],"17246439","project\u002Fcritical\u002Fidea","teamhappy",[279,33,41,276,280,33],"17246846","notheguyouthink",[282,33,41,276,203,33],"17252481",[129,41,46,284,130,33],"project\u002Fneutral\u002Fperformance",[66,41,41,286,67,33],"project\u002Fcritical\u002Fperformance",[162,41,33,288,11,41],"maker\u002Fneutral\u002Fperformance",[87,41,41,286,88,33],[165,41,33,291,11,41],"maker\u002Fpositive\u002Fnone",[145,41,46,288,146,33],[54,41,33,294,11,41],"maker\u002Fneutral\u002Fnone",[91,41,33,296,92,33],"other\u002Fneutral\u002Fperformance",[298,41,33,188,299,33],"17244160","deckarep",[301,41,33,188,302,33],"17244239","dagenix",[304,41,33,188,305,33],"17244568","mlevental",[307,41,33,188,215,33],"17244663",[309,41,33,188,305,33],"17247415",[311,41,33,188,215,33],"17253495",[313,41,33,188,314,33],"17246498","amhokies",[316,41,33,188,305,33],"17247416",[318,41,33,319,320,33],"17244169","commenter\u002Fneutral\u002Fidea","nazri1",[322,41,33,319,130,33],"17244797",[324,41,33,296,325,33],"17244920","lillesvin",[327,41,33,296,328,33],"17245506","VeejayRampay",[330,41,32,331,332,33],"17261807","project\u002Fpositive\u002Fperformance","sliken",[334,41,33,288,11,41],"17303048",[62,38,32,336,63,33],"project\u002Fpositive\u002Fidea",[338,38,33,291,11,41],"17245366",[78,46,32,340,79,33],"project\u002Fpositive\u002Fdesign",[342,39,32,336,343,33],"17245275","xab9",[137,32,41,276,138,33],[346,32,33,319,347,33],"17247158","kbd",[118,349,46,350,119,33],6,"project\u002Fneutral\u002Fexecution",[122,349,33,352,11,41],"maker\u002Fneutral\u002Fexecution",[354,34,46,355,356,33],"17243624","project\u002Fneutral\u002Fidea","grblovrflowerrr",[358,359,41,360,361,33],"17243506",8,"project\u002Fcritical\u002Fdocs","madmax96",[363,359,33,188,364,33],"17243911","axaxs",[366,359,32,367,368,33],"17243936","project\u002Fpositive\u002Fdocs","s17n",[370,359,33,371,302,33],"17244290","commenter\u002Fneutral\u002Fdocs",[373,359,33,188,374,33],"17244791","hawski",[376,359,33,377,130,33],"17244829","commenter\u002Fneutral\u002Fperformance",[379,359,33,371,361,33],"17246039",[],[382,386,391,396,401,406],{"id":383,"name":384,"points":385,"category":20},"17226225","BitHubLab",318,{"id":387,"name":388,"points":389,"category":390},"17242528","LogicEmu",210,"learning_science",{"id":392,"name":393,"points":394,"category":395},"17242136","Transity",190,"finance_crypto",{"id":397,"name":398,"points":399,"category":400},"17221221","Domain-tailored CRDTs for collaboration without server involvement",158,"languages",{"id":402,"name":403,"points":404,"category":405},"17227564","Podscripter",153,"ai",{"id":407,"name":408,"points":409,"category":390},"17246136","CircuitVerse",145,false,"v2",{"id":413,"name":5,"line":6,"ai":410,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":414,"top":18,"kw":415,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":416,"url":9,"mix":417,"praise":74,"objection":83,"sub":21},17236967,-0.03,[24,25,26,27,28],"3000000000000000000011113000000555333150",[32,32,33,34],1794036566644]