TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Sed to C translator written in sed

160 pointsby lhoursquentinalmost 5 years ago

6 comments

ketanmaheshwarialmost 5 years ago
Nice! In the why part you speculatively mention better speed. Do you have any concrete benchmark results?<p>If fast, the tool would be very useful for my work where I run an anonimization sed script with hundreds of transformations on millions of lines that takes hours to run.<p>But even if it is not fast, this is a fun project.
评论 #23813158 未加载
评论 #23813615 未加载
评论 #23813348 未加载
评论 #23814854 未加载
girstalmost 5 years ago
wow--impressive!<p>the core is here (<a href="https:&#x2F;&#x2F;github.com&#x2F;lhoursquentin&#x2F;sed-bin&#x2F;blob&#x2F;master&#x2F;par.sed" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lhoursquentin&#x2F;sed-bin&#x2F;blob&#x2F;master&#x2F;par.sed</a>), and it&#x27;s 600 lines of beautifully commented sed
tgvalmost 5 years ago
So it can translate itself?<p>&gt; Translate the translator (par.sed) with itself:<p>Yes! Congrats!
rkeene2almost 5 years ago
And for the other direction (C-&gt;sed): <a href="https:&#x2F;&#x2F;github.com&#x2F;shinh&#x2F;elvm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;shinh&#x2F;elvm</a>
easytigeralmost 5 years ago
Genuinely very cool. Nice work.
sheerunalmost 5 years ago
Now one for Awk and Python please :)
评论 #23814663 未加载