With LLMs sucking every snippet of source ever written through a fire hose and churning out garbage from it, I think it may be time to start checking in code that's been run through this little toy program I made. You'll have to get a copy of CSNOBOL4 to run it, but the output is worth it, IMO.
With it, the code:
#include <stdio.h>
int main(int argc, char** argv)
{
char msg[] = { "Hello, world!\n" };
char *msgp = msg;
do
{
printf("%c", *msgp);
} while (*msgp++);
return 0;
}Turns into this:
??=include <stdio.h>
int main(int argc, char** argv)
??<
char msg<:??) = ??< "Hello, world!??/n" %>;
char *msgp = msg;
do
??<
printf("%c", *msgp);
%> while (*msgp++);
return 0;
??>This compiles in GCC (with the -trigraphs option) and reversing it for human compatibility is a trivial exercise in your stream editor of choice.
