Show HN: Resrap – A Parser but in Reverse
Show HN (score: 7)Description
ABNF is a modified version of EBNF(https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_f...) I made for this project, basically means you can specify when generating code 20% of lines will be if{} blocks and 50% will be while{} blocks which allows for more natural code generation, plus support for infinite generation of code.
It’s very fast...it generated ~40 million tokens of C syntax in about 26 seconds on my laptop and supports multithreading which actually saw boosts in performance since its very easy to parallelize.
I originally made this for a typing-test project (I didn’t want to store code snippets manually), but it turned out to be useful in other contexts too, like: - Stress-testing parsers and linters - Creating non-copyrighted “lorem ipsum” code for tech demos - Generating those endless “hacker” code scenes you see in movies
Curious what other cool things people might do with it!
Github: https://github.com/osdc/Resrap Website: https://resrap.osdc.dev/
More from Show
Show HN: Mist – a lightweight, self-hosted PaaS
Show HN: Mist – a lightweight, self-hosted PaaS Hi HN,<p>We’re building Mist, a lightweight, self-hosted PaaS for running and managing applications on your own servers.<p>We started Mist because we wanted a middle ground between raw VPS management and heavy, all-in-one platforms. Existing PaaS solutions often felt too complex or resource-intensive for small servers, homelabs, and side projects. We wanted something that keeps the PaaS experience but stays simple and predictable.<p>Our goals with Mist are: - A simple PaaS to deploy and manage apps on your own infrastructure - HTTPS, routing, and app access handled automatically - Low resource usage so it runs well on small VPSes - Self-hosted and transparent, with minimal magic<p>Mist focuses on being an opinionated but lightweight layer on top of your server. It doesn’t try to hide everything behind abstractions, but it does aim to remove the repetitive operational work that comes with managing apps by hand.<p>Mist is still early, and this is where we really need help. We’re actively looking for:<p>- Users who want a simple self-hosted PaaS and can share real-world feedback<p>- Contributors who want to help shape the core features, architecture, and UX<p>Website: <a href="https://trymist.cloud" rel="nofollow">https://trymist.cloud</a><p>Repo: <a href="https://github.com/corecollectives/mist" rel="nofollow">https://github.com/corecollectives/mist</a>
Show HN: Marten – Elegant Go web framework (nothing in the way)
Show HN: Marten – Elegant Go web framework (nothing in the way)
Show HN: I vibecoded an ARM64 operating system that boots on real hardware
Show HN: I vibecoded an ARM64 operating system that boots on real hardware VibeOS is a retro operating system that boots on qemu and Pi Zero 2W. I built this with Claude code in about 4 weeks.
Show HN: Seapie – a Python debugger where breakpoints drop into a REPL
Show HN: Seapie – a Python debugger where breakpoints drop into a REPL
No other tools from this source yet.