Michael T. Richter

2 Followers
3 Following
93 Posts
Embedded systems developer. (Real embedded systems, not PCs with a funky form factor running Linux.) Married. Child. And that's the extent of personal life sharing that's happening here.

#nobridge

#fedi22

#programming #embedded #logtalk #ada #rexx

#processors #stm32 #arm #cortexm #riscv

#ttrpgs #fate #harp #spark #fiasco #fgu

#boardgames #xiangqi #chinesechess #junqi #armychess #wargames

#cardgames #changpai #majiang #mahjong

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.

Since we appear to be doing this shit again in the USA, I've dusted off some old code that I'm releasing for the use of ICE. I hope they enjoy it.

#software #algorithm #sort #satire #ICE