Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> “replace line 2:f1, replace range 1:a3 through 3:0e, insert after 3:0e.”

Not sure what they're calculating, but this seems to me like it could be many times more efficient than 20%.

 help



So i just build this - with a few changes to the approach and usable as a simple pi-extention without having to use what-the-pi. It seems to work pretty well so far.

https://github.com/offline-ant/pi-hh-read


Why do we need a hash for every line. Why cant we mark every fifth line (or get smarter and calculate entropy of lines and jump longer for empty boilerplate)? I feel adding a random 3 char header to every line while making the edit tool smarter will make the overall understandability of the content dumber.

It's why I added read({ change_file: bool = false }) and change_file(...) ; so it doesn't get confused by default if its just investigating.

I suspect doing it only ever 5th line would make it less clear for the llm.

I'm just experimenting, I wouldn't suggest you use this by default unless you're looking to experiment.


Yes, this looks like O(1) actions, where before, its likely that harnesses are ingesting and outputting huge portions of the source files for each step, and the local uses of str_replace() are themselves O(N) on the users computer. The excess reads and writes from the LLM are O(N^2).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: