News for hackers. Stuff that matters.
Re:Chunking 2M files a day for code search using syntax trees by kevinlu1248 on Monday July 31, 2023 @05:48PM (#36949332)
That's interesting, I've seen a few papers about this. I'm personally curious about editing syntax trees using language models, since it would prevent syntax errors altogether.
Re:Chunking 2M files a day for code search using syntax trees by vladf on Tuesday August 01, 2023 @12:31AM (#36952319)
Which papers?
Re:Chunking 2M files a day for code search using syntax trees by kevinlu1248 on Tuesday August 01, 2023 @12:57AM (#36952494)
Re:Chunking 2M files a day for code search using syntax trees by madeofpalk on Tuesday August 01, 2023 @06:07AM (#36954277)
In my limited use, I've never seen these models (chatgpt, and github copilot) generate invalid syntax. I don't see much to improve there

I do see them generate code that fails the type checker though.

Re:Chunking 2M files a day for code search using syntax trees by kevinlu1248 on Tuesday August 01, 2023 @04:20PM (#36962159)
For editing code there's a decent chance of syntax errors or undefined variables since it's only modifying a subset of the code.