Richard Russell wrote: ↑Sat 05 Jul 2025, 16:50
That sounds great, but - if I have understood your description correctly - I presume there would need to be some kind of index page, listing all the relevant programs but with
.bas extensions rather than
.bbc, which could be crawled by an AI looking for training data.
No. Wherever you write a page and say:
Here is a spiffy program that Bob has written that simulates 5.6-dimensional dice: (a href=dice56.bbc)dice56.bbc(/a)
..you just also put....
text version (a href=dice56.bas)here(/a)
Richard Russell wrote: ↑Sat 05 Jul 2025, 16:50
What's more, that index page would presumably have to be somewhere other than at Github, which is where the programs themselves are to be found, because I can't put the required
.htaccess file at Github itself.
It does require that you control the site and have php execution and url rewriting available. You should be able to have a reference on github to a site with the tokenised file on it, such as to bbcbasic.com. It would be no different to me posting here:
Cursor.bbc - a link from bbcbasic.net to a URL on mdfs.net.
As the code stands at the moment, the pdp code has to be on the same site as the tokenised source BASIC. You couldn't have a tokenised file on GitHub, point a GitHub URL to it ending in .bas and have it translated. It would have to go via the PHP on the site the PHP is on, something like:
On this GitHub repository is (a href=src/demos/dice56.bbc)dice65.bbc(/a) (a href=http:bbcbasic.com/bin/bbctok.php?http:github/rtrussell/src/demos/dice56.bas)text version(/a)
...but it would need some work on the PHP code to work. I'll have a look when I have a break from
ANSI colours with BBC BASIC on RunCPM.

if I can get my Linux installation to boot properly. CentOS claims my x86-64 is a 32-bit 686.
Richard Russell wrote: ↑Sat 05 Jul 2025, 16:50
Before putting any effort into implementing this, can you confirm that it should work in such a cross-site manner?
I've got a GitHub repository, so I've got bbcbasic program files on there that I can use for testing, so I think I've got everything set up to get it working.