← Back to context

Comment by stevefan1999

2 days ago

vibe coding a C compiler and doing a parser rewrite, all of a sudden it dropped all its code that was refactored to use a token stream, reverted back to using string symbols (that is a huge refactor since it involved parser combinator and turning it from string to logos and eat whitespaces is no easy feat). I almost shitted my pants and tell Opus to stop and fuck off, ask him to recover the code from the context window, but luckily it was git stahed. It scared the shit out of me.

During the process I learned a lot more about giving a chance for LLM to do commit after its work because it will sometimes just give up. Also learned a hard lesson on C preprocessor and why tokenization is necessary.