4 ms·
Is this largely supplanted by LLMs?
by djmips 2y ago
Is this largely supplanted by LLMs?
- veltas 2y agoThe difference is I trust this website, and wouldn't trust an LLM.
- andix 2y agoProbably. Output for the example I got on opening the website: char (*(*x())[5])() cdecl.org: declare x as function returning pointer to array 5 of pointer to function returning char ChatGPT: x is a function that, when called, gives us access to 5 functions that each return a character. (TL;DR, it gave a full explanation too) Like mentioned before the error rate of LLMs is probably much higher on complex expressions.
- marginalia_nu 2y agoLLMs are mostly correct with regards to this stuff. cdecl is always correct with regards to this stuff. I don't know why you'd choose the former.
- Y_Y 2y agoBecause if you don't do things exactly the way cdecl wants you get a Syntax Error
- marginalia_nu 2y agoWouldn't any explanation given, apart from syntax error, be wrong in the case you provide it with an invalid syntax?
- Y_Y 2y agoI was thinking of the issue of going from English to C. Even when you out in malformed C it's nice to get either a compiler error which explains the problem, or even better an LLM that can suggest how to fix it.