[{"data":1,"prerenderedAt":390},["ShallowReactive",2],{"project-19540104":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":44,"post_text":46,"what":47,"said":88,"maker_in_thread":171,"shape":179,"grid":183,"attempts":351,"same_week":352,"maker_shows":37,"maker_hidden":382,"reader_version":383,"card":384},"19540104","Bsed","Simple, English syntax on top of Perl text processing","title","Show HN: Bsed – Simple, English syntax on top of Perl text processing","https:\u002F\u002Fgithub.com\u002Fandrewbihl\u002Fbsed","github.com","bihla",1554088033,2019,178,67,229,2195,11,"notable","dev_tools","text processing cli","cli",[24,25,26,27],"sed alternative","perl one-liner","text processing","command line","mixed",-0.099,{"positive":31,"neutral":32,"mixed":33,"critical":32},5,8,0,21,{"execution":36,"idea":39,"design":41,"performance":42,"docs":43},{"positive":37,"critical":38},1,6,{"positive":40,"critical":40},2,{"positive":37,"critical":33},{"positive":33,"critical":33},{"positive":33,"critical":33},[31,33,33,33,33,33,33,31,33,33,33,33,33,31,45,37,37,33,33,37,37,33,33,33,45,31,33,33,37,33,33,45,45,33,37,31,37,33,45,45],3,null,{"problem":48,"audience":46,"pricing":46,"motivation":60,"time_to_build":46,"stack":68,"openness":85,"stage":86,"team_size":87},{"value":49,"source":50,"evidence":51},"sed and awk syntax is cryptic and hard to remember","commenter",[52,56],{"id":53,"by":54,"text":55},"19540381","jaytaylor","I'd definitely incorporate it into my projects if it were ported Go, Rust, or any reasonable redistributable form, and continued to use a BSD license. Way clearer than cryptic…",{"id":57,"by":58,"text":59},"19540261","king_magic","Really looking forward to trying this out. The syntax looks very clean & clear. I hate the insanity of sed, and assuming the performance is here, I’d switch to this in a heartbeat.",{"value":61,"source":62,"evidence":63},"convenience of simpler text processing syntax, built for personal use","maker",[64,67],{"id":65,"by":11,"text":66},"19540234","I'd love to hear any questions or feedback. I've gotten quite a bit of use from this tool personally and have had a lot of fun making it.",{"id":57,"by":58,"text":59},[69,75,79],{"value":70,"source":62,"evidence":71},"Python (translation layer)",[72],{"id":73,"by":11,"text":74},"19541032","Perl is actually executing the text transformations. The python is a translation layer between the bsed syntax and the Perl command, so you get the performance of Perl with a…",{"value":76,"source":62,"evidence":77},"Perl (executes text transformations)",[78],{"id":73,"by":11,"text":74},{"value":80,"source":62,"evidence":81},"argcomplete (tab completion)",[82],{"id":83,"by":11,"text":84},"19546708","I agree, if it were entirely Perl it would have essentially no dependencies. Right now the audience is limited to those with a currently functioning Python3 environment or…","open_source","launched","unknown",{"praise":89,"objections":95,"requests":115,"questions":137,"alternatives":149},[90],{"value":91,"source":50,"evidence":92},"Clean, readable English-like syntax compared to sed and awk",[93,94],{"id":53,"by":54,"text":55},{"id":57,"by":58,"text":59},[96,108],{"value":97,"source":50,"evidence":98},"Python install requirement is a barrier; Perl would be more portable",[99,103,104],{"id":100,"by":101,"text":102},"19540864","peteretep","Kinda off that this is written in Python, and not Perl. If it was written in Perl, it'd have the portability that the underlying translated commands have! I'd be happy to help…",{"id":53,"by":54,"text":55},{"id":105,"by":106,"text":107},"19541603","acqq","> if it were ported Go, Rust, or any reasonable redistributable form I still consider Perl being, from the portability standpoint, the best language to pre-process a single text…",{"value":109,"source":50,"evidence":110},"Safer to rely on standard sed and awk in scripts",[111],{"id":112,"by":113,"text":114},"19540358","Sir_Cmpwn","This is very cool for simplifying interactive use :) but I'd like to caution people away from immortalizing it in their scripts. sed and awk are both standardized by POSIX and…",[116,124,131],{"value":117,"source":50,"evidence":118},"Port to Perl as a single file",[119,120],{"id":100,"by":101,"text":102},{"id":121,"by":122,"text":123},"19541122","singingfish","Yeah, there's not a lot of point in having the python layer. Perl excels at these kinds of things. I'm guessing that the original developer just doesn't know perl well enough to…",{"value":125,"source":50,"evidence":126},"Add a dry-run or diff mode",[127],{"id":128,"by":129,"text":130},"19544548","seiferteric","Neat, but a little scary because you rely on it to interpret your intentions correctly. Usually when I am trying to do something, I build up my command in multiple steps,…",{"value":132,"source":50,"evidence":133},"Document the -t flag for Perl translation",[134],{"id":135,"by":106,"text":136},"19541116","> For anything longer term, I'd recommend finding the right bsed command and then using -t flag to get the Perl translation. That could be a part of the readme!",[138],{"value":139,"source":50,"evidence":140},"How does performance compare to sed and other tools?",[141,145],{"id":142,"by":143,"text":144},"19540461","chmln","How does it compare performance-wise to other tools with similar goals? Seeing this is written in 100% python, I suspect it will be an order of magnitude slower.",{"id":146,"by":147,"text":148},"19540445","asicsp","that would depend on a lot of factors sed provides only BRE\u002FERE which has lot less features than perl, however in my experience speed is better with BRE\u002FERE than PCRE, except…",[150,158,165],{"value":151,"source":50,"evidence":152},"sed and awk",[153,157],{"id":154,"by":155,"text":156},"19540472","ilovetux","Perl aside, I would say that's almost imperative to learn sed and awk. They invaluable tools for getting things done in *nix. They seem cryptic at first, but put a weekend into…",{"id":112,"by":113,"text":114},{"value":159,"source":50,"evidence":160},"psed (Perl sed implementation)",[161],{"id":162,"by":163,"text":164},"19541839","rurban","You should really use psed then, which came with perl5 from 5.002 until v5.21.1 and is now on CPAN. This is a proper sed, implemented in perl.…",{"value":166,"source":50,"evidence":167},"sd (Rust find and replace)",[168],{"id":169,"by":143,"text":170},"19540464","Shameless plug for even terser syntax: https:\u002F\u002Fgithub.com\u002Fchmln\u002Fsd",{"comments":172,"answered":37,"key":173},12,[174,175,178],{"id":83,"text":84},{"id":176,"text":177},"19546758","Forgot to say it in the other comment but regardless of whether we proceed with this, thank you for offering to help. It means a lot to get a positive response from people,…",{"id":65,"text":66},{"commenters":180,"max_depth":31,"maker_replies":172,"first_comment_mins":181,"lifespan_hours":182},39,24,41,[184,186,190,192,194,195,197,200,203,205,208,210,213,217,219,220,222,224,226,229,232,234,237,239,242,243,245,247,250,253,256,258,260,261,263,264,266,268,271,274,277,279,282,287,289,292,295,297,299,301,305,308,311,312,314,318,319,320,324,328,333,337,339,342,345,347,349],[100,33,31,185,101,33],"maker\u002Fpositive\u002Fexecution",[187,33,33,188,189,33],"19540886","commenter\u002Fneutral\u002Fnone","ChuckMcM",[83,33,33,191,11,37],"project\u002Fneutral\u002Fexecution",[193,33,33,188,106,33],"19548959",[176,33,33,188,11,37],[154,37,33,196,155,33],"other\u002Fneutral\u002Fnone",[198,37,33,199,106,33],"19541833","other\u002Fneutral\u002Fdocs",[201,37,33,199,202,33],"19542444","lapnitnelav",[204,37,33,199,106,33],"19548496",[206,37,33,196,207,33],"19542137","wink",[209,37,33,196,155,33],"19544993",[211,37,33,188,212,33],"19550573","masukomi",[214,40,31,215,216,33],"19540426","project\u002Fpositive\u002Fidea","disposedtrolley",[218,45,33,196,147,33],"19540399",[169,45,33,196,143,33],[221,45,33,196,147,33],"19540503",[223,45,33,196,143,33],"19540548",[225,45,33,196,147,33],"19540658",[227,45,33,196,228,33],"19542986","airstrike",[230,45,33,196,231,33],"19544108","bloopernova",[233,45,33,196,143,33],"19558070",[65,235,33,236,11,37],4,"maker\u002Fneutral\u002Fnone",[57,235,31,238,58,33],"project\u002Fpositive\u002Fdesign",[240,235,33,241,11,37],"19540271","project\u002Fneutral\u002Fperformance",[146,235,45,241,147,33],[162,235,37,244,163,33],"project\u002Fcritical\u002Fidea",[53,31,37,246,54,33],"project\u002Fcritical\u002Fexecution",[248,31,37,246,249,33],"19540523","yoklov",[251,31,33,196,252,33],"19540529","anoncake",[254,31,33,196,255,33],"19540557","elliotec",[257,31,33,188,249,33],"19540589",[259,31,33,188,252,33],"19540615",[105,31,37,246,106,33],[262,31,33,246,11,37],"19545587",[112,38,37,246,113,33],[265,38,33,191,11,37],"19540380",[267,38,33,196,113,33],"19540404",[269,38,33,196,270,33],"19540478","username223",[272,38,33,196,273,33],"19542786","snazz",[275,38,33,196,276,33],"19544103","hpcjoe",[135,38,45,278,106,33],"project\u002Fneutral\u002Fdocs",[280,38,31,215,281,33],"19540383","yumraj",[283,284,45,285,286,33],"19540729",7,"project\u002Fneutral\u002Fidea","jancsika",[288,284,33,191,11,37],"19540792",[290,32,33,196,291,33],"19541529","mhd",[293,32,33,196,294,33],"19543072","JdeBP",[128,296,37,246,129,33],9,[298,296,33,191,11,37],"19544891",[300,296,33,188,129,33],"19545552",[302,303,33,196,304,33],"19540356",10,"kylek",[306,303,33,196,307,33],"19541100","techcode",[309,303,33,196,310,33],"19541571","collyw",[142,18,45,241,143,33],[313,18,33,241,11,37],"19540466",[315,172,45,316,317,33],"19540875","project\u002Fneutral\u002Fnone","HerrMonnezza",[73,172,33,241,11,37],[121,172,37,246,122,33],[321,322,33,196,323,33],"19540447",13,"purplezooey",[325,326,45,191,327,33],"19540630",14,"salutonmundo",[329,330,31,331,332,33],"19541307",15,"project\u002Fpositive\u002Fnone","PhantomBKB",[334,335,37,244,336,33],"19540490",16,"ncmncm",[338,335,33,188,11,37],"19540543",[340,335,33,188,341,33],"19540803","otherflavors",[343,335,33,188,344,33],"19541462","Yetanfou",[346,335,45,278,106,33],"19541576",[348,335,33,188,11,37],"19545393",[350,335,45,285,307,33],"19541087",[],[353,358,363,368,372,377],{"id":354,"name":355,"points":356,"category":357},"19567073","Thoughter",312,"consumer_social",{"id":359,"name":360,"points":361,"category":362},"19529921","Grassland",184,"ai",{"id":364,"name":365,"points":366,"category":367},"19532643","Tinytetris",147,"games",{"id":369,"name":370,"points":371,"category":20},"19521230","GNUplot with sixel",110,{"id":373,"name":374,"points":375,"category":376},"19552680","Mprove",95,"data",{"id":378,"name":379,"points":380,"category":381},"19508278","Prefect",59,"infrastructure",false,"v2",{"id":385,"name":5,"line":6,"ai":382,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":386,"top":18,"kw":387,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":388,"url":9,"mix":389,"praise":91,"objection":97,"sub":21},19540104,-0.1,[24,25,26,27],"5000000500000531100110003500100330151033",[31,32,33,32],1793990987675]