Hacker News new | ask | show | jobs
by pianopatrick 49 days ago
One idea I am thinking through is that I might want to use a linter to restrict the AI to only use a subset of various languages which would not need as much review.

For instance, if I wrote a web front end that only allowed certain HTML tags and certain CSS properties and no Javascript, I could avoid certain classes of errors entirely.

Or for instance, in C, if you disallow dynamic memory allocation you also avoid entire classes of errors.

These are checks I think I can configure with linters and would give me more confidence that AI generated code did not have certain errors.

1 comments

I wonder how robust these linters are. E.g. In C you might find some library function that allocates and abuse it to get dynamic memory.
I think with linters you can also restrict imports. So white list or black list.

There probably are problems like that but you could come up with a set of imports that are "safe" for the AI.