| ▲ | igornotarobot 5 hours ago | |||||||
> I run into bugs all the time so it’s probably not ready for anyone other than me to use, but I’ve managed to go pretty deep (if not wide) in just a few days of work. Having similar experience with my experimental code generator to Rust. Every time a yet another example does not work, Claude fixes it. However, I am curious whether it would converge to a bullet-proof solution, or I have to carefully read the code and come up with proper abstractions. | ||||||||
| ▲ | nextaccountic 3 hours ago | parent | next [-] | |||||||
Are you using syn to pretty print a tree, or concatenating strings? I think it helps having an intermediate tree where every value is valid rust code (not just synctactically, but it compiles and runs fine) helps a lot. Like an IR for your transpiler | ||||||||
| ▲ | convolvatron 4 hours ago | parent | prev [-] | |||||||
if you're trying to write rust without thinking about the abstractions then yeah, its probably non-terminal. I would strongly suggest making the broad strokes yourself and letting it fill the details. | ||||||||
| ||||||||