This is a autopost bolg frinds we are trying to all latest sports,news,all new update provide for you
Monday, September 29, 2025
Show HN: Resrap – A Parser but in Reverse https://ift.tt/WA72UMI
Show HN: Resrap – A Parser but in Reverse I built Resrap, a Go package that takes a grammar in ABNF format and generates infinitely long sequences of syntactically correct code...either completely randomly or with seeds for a deterministic generation. ABNF is a modified version of EBNF( https://ift.tt/BQdfirZ... ) 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://ift.tt/F9uz1Gg Website: https://ift.tt/lbgzrK7 https://ift.tt/lbgzrK7 September 30, 2025 at 12:20AM
Subscribe to:
Post Comments (Atom)
Show HN: Check if any of the $656M in unclaimed royalties at The MLC is yours https://ift.tt/qYFMHKa
Show HN: Check if any of the $656M in unclaimed royalties at The MLC is yours https://pub.doub.ly/ August 7, 2026 at 11:05PM
-
Show HN: I built Dirac, Hash Anchored AST native coding agent, costs -64.8 pct Fully open source, a hard fork of cline. Full evals on the gi...
-
Show HN: Pixel text renderer using CSS linear-gradients (no JavaScript) I've been playing around with rendering pixel text using only CS...
-
Show HN: Total Recall – write-gated memory for Claude Code https://ift.tt/G7AugiK February 6, 2026 at 05:26AM
No comments:
Post a Comment