News for hackers. Stuff that matters.
Re:Print, a one-line BASIC program by richardfey on Thursday August 14, 2025 @04:38AM (#44898193)
I tried this on all the basic interpreters available on Ubuntu (yabasic, sdlbasic, basic256 and bwbasic), couldn't get it to work on any of them.

In a couple cases the only remaining issue was the lack of a RND() function definition

Re:Print, a one-line BASIC program by ethan_smith on Thursday August 14, 2025 @08:11AM (#44899461)
Try `10 PRINT CHR$(205.5+RND(0)1); : GOTO 10` in yabasic or `10 PRINT CHR$(47+INT(RND(1)2)*45); : GOTO 10` in most modern BASIC dialects, which explicitly chooses between '/' (47) and '\' (92) characters.
Re:Print, a one-line BASIC program by anta40 on Thursday August 14, 2025 @07:05AM (#44899016)
What about freebasic? I know it's a compiler, though.