[{"data":1,"prerenderedAt":221},["ShallowReactive",2],{"project-19357852":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":41,"post_text":43,"what":44,"said":70,"maker_in_thread":126,"shape":135,"grid":139,"attempts":183,"same_week":184,"maker_shows":37,"maker_hidden":213,"reader_version":214,"card":215},"19357852","Strans","Sed alternative that automatically learns from examples","title","Show HN: Strans – Sed alternative that automatically learns from examples","https:\u002F\u002Fgithub.com\u002FInventitech\u002Fstrans","github.com","inventitech",1552299629,2019,158,19,253,2195,12,"notable","dev_tools","text manipulation","cli",[24,25,26,27],"sed alternative","text transformation","programming by example","string manipulation","debated",-0.074,{"positive":31,"neutral":32,"mixed":33,"critical":32},4,3,0,10,{"performance":36,"idea":38,"docs":40},{"positive":33,"critical":37},1,{"positive":39,"critical":33},2,{"positive":39,"critical":39},[33,33,33,33,33,37,32,33,32,33,42,33,42,37,37,33,42,32,42],5,null,{"problem":45,"audience":43,"pricing":43,"motivation":43,"time_to_build":43,"stack":54,"openness":69,"stage":69,"team_size":69},{"value":46,"source":47,"evidence":48},"Text transformations that would otherwise require writing sed scripts","maker",[49,51],{"id":50},"post",{"id":52,"by":11,"text":53},"19366778","Oh, I now see the ambiguity you refer to. What about this: Strans – an alternative to sed that automatically learns from examples, instead of having to program yourself…",[55,63],{"value":56,"source":57,"evidence":58},"C#\u002F.NET (requires dotnet to run)","commenter",[59],{"id":60,"by":61,"text":62},"19378677","solarized","I'm interested. Till i read \"You need dotnet to run strans.\" i close my browser tab.",{"value":64,"source":47,"evidence":65},"PROSE engine",[66],{"id":67,"by":11,"text":68},"19367215","I am not sure which implementation Excel uses under the hood -- Excel's flash fill feature has been there for quite some time; PROSE (which strans uses) has not, and Excel is not…","unknown",{"praise":71,"objections":82,"requests":98,"questions":103,"alternatives":113},[72],{"value":73,"source":57,"evidence":74},"Interesting idea, learns from examples",[75,79],{"id":76,"by":77,"text":78},"19366964","lysium","That’s pretty cool. I guess Excels flash fill uses the same engine? Would like to see more examples than First Middle Last.",{"id":80,"by":77,"text":81},"19372040","I like that idea!",[83,87],{"value":84,"source":57,"evidence":85},"Requires dotnet to run",[86],{"id":60,"by":61,"text":62},{"value":88,"source":57,"evidence":89},"Title is unclear, expected a sed tutorial",[90,94],{"id":91,"by":92,"text":93},"19366699","fooblat","I think this could use a better title. From the current one, I was expecting a tutorial or a series of learning examples for using sed.",{"id":95,"by":96,"text":97},"19366750","ianai","Agreed. Instead, it’s more of a text manipulation by example.",[99],{"value":100,"source":57,"evidence":101},"More examples beyond first-middle-last name",[102],{"id":76,"by":77,"text":78},[104],{"value":105,"source":57,"evidence":106},"Does it use the same engine as Excel Flash Fill?",[107,108,109],{"id":76,"by":77,"text":78},{"id":67,"by":11,"text":68},{"id":110,"by":111,"text":112},"19371573","apskim","To clarify: Excel FlashFill uses an earlier version of this engine, with a similar but less advanced algorithm. The current engine that powers strans (PROSE) can, for instance,…",[114,119],{"value":115,"source":57,"evidence":116},"Excel Flash Fill",[117,118],{"id":76,"by":77,"text":78},{"id":110,"by":111,"text":112},{"value":120,"source":57,"evidence":121},"PowerShell Convert-String",[122],{"id":123,"by":124,"text":125},"19367794","ygra","Oh wow. I've learned about Excel's Flash Fill only recently and wasn't even aware that the same thing is available as a library as well. PowerShell's Convert-String is very rough…",{"comments":31,"answered":37,"key":127},[128,129,132],{"id":67,"text":68},{"id":130,"text":131},"19367867","Yup, perhaps that's why it's missing in the latest PowerShell release ...…",{"id":133,"text":134},"19376959","Thanks for the explanation. And hi, Alex (cool to meet again here on HN)!",{"commenters":136,"max_depth":31,"maker_replies":31,"first_comment_mins":137,"lifespan_hours":138},13,1433,52,[140,144,147,151,154,156,158,160,161,162,163,165,167,168,170,171,173,177,179],[141,33,33,142,143,33],"19367702","other\u002Fneutral\u002Fnone","projectramo",[145,37,33,142,146,33],"19367512","dopylitty",[148,37,33,149,150,33],"19370523","commenter\u002Fneutral\u002Fnone","O_H_E",[152,37,33,149,153,33],"19370704","rgoulter",[155,37,33,149,150,33],"19370855",[60,39,37,157,61,33],"project\u002Fcritical\u002Fperformance",[76,32,32,159,77,33],"project\u002Fneutral\u002Fidea",[67,32,33,159,11,37],[123,32,32,159,124,33],[130,32,33,149,11,37],[110,32,42,164,111,33],"project\u002Fpositive\u002Fidea",[133,32,33,166,11,37],"maker\u002Fpositive\u002Fnone",[80,32,42,164,77,33],[91,31,37,169,92,33],"project\u002Fcritical\u002Fdocs",[95,31,37,169,96,33],[52,31,33,172,11,37],"project\u002Fneutral\u002Fdocs",[174,31,42,175,176,33],"19368939","project\u002Fpositive\u002Fdocs","maxxxxx",[178,31,32,172,150,33],"19370608",[180,31,42,181,182,33],"19370898","maker\u002Fpositive\u002Fdocs","dang",[],[185,190,195,200,205,209],{"id":186,"name":187,"points":188,"category":189},"19344146","curriculum-bootloader",255,"learning_science",{"id":191,"name":192,"points":193,"category":194},"19350421","Freeciv-Web",212,"games",{"id":196,"name":197,"points":198,"category":199},"19379357","Stuff",201,"web_saas",{"id":201,"name":202,"points":203,"category":204},"19336077","personalrobots.biz",195,"consumer_social",{"id":206,"name":207,"points":208,"category":199},"19360844","ApproveAPI",183,{"id":210,"name":211,"points":212,"category":199},"19366093","Idea Minr",173,false,"v2",{"id":216,"name":5,"line":6,"ai":213,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":217,"top":18,"kw":218,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":219,"url":9,"mix":220,"praise":73,"objection":84,"sub":21},19357852,-0.07,[24,25,26,27],"0000013030505110535",[31,32,33,32],1794036575596]