Search found 187 matches

by stevepoole
Thu Mar 28, 2019 10:15 pm
Forum: Hardware
Topic: Issue 8 discussions...
Replies: 99
Views: 5449

Re: Issue 8 discussions...

Hi Dave, I downloaded and ran QSBB.zip, but unfortunately it is limited to only three code examples. If you use my code_timer_bas, you can include any code you like where indicated in the listing. Just insert lines and renumber as necessary. And the program waits for the clock to tick, before counti...
by stevepoole
Mon Mar 25, 2019 8:40 am
Forum: Hardware
Topic: Issue 8 discussions...
Replies: 99
Views: 5449

Re: Issue 8 discussions...

Hi Dave, Here's a benchmark program I used to time individual code statements (or longer) in 1986 ! It runs best on a standard QL with no extra jobs running, but will work on emulators too. (Just run it empty to tweak the overhead), then include the code you want tested where shown. It may not be th...
by stevepoole
Fri Mar 15, 2019 6:16 am
Forum: Software & Programming
Topic: Random Number Generation
Replies: 4
Views: 392

Re: Random Number Generation

Hi, The book 'ALGORYTHMS' by Robert Sedgewick (1983) illustrates many fundamental core routines, written in an older Pascal. It discusses random number generation among others, and shows an incomplete method being investigated by maths boffins at that time. After some experimentation, I was able to ...
by stevepoole
Thu Mar 14, 2019 10:50 am
Forum: Software & Programming
Topic: Random Number Generation
Replies: 4
Views: 392

Re: Random Number Generation

Hi, Yes Dave, the 'Ernie' Premium Bonds prize random number generator used two interfering Zenner Diodes to operate. I don't know if this is still the case. The DIY routines use a Randomiser before generating a series. This works because on an emulator, PCs are constantly multitasking many programs....
by stevepoole
Wed Mar 13, 2019 9:05 am
Forum: Software & Programming
Topic: Random Number Generation
Replies: 4
Views: 392

Random Number Generation

Hi, Just over a year ago, I needed large random numbers, so I tried to write my own code to do generate them. Finally, after much statistical testing, I obtained results as good as the Sinclair ROM RND() functions. The listing produces screen output to compare the two sets of functions. Of course yo...
by stevepoole
Tue Feb 12, 2019 6:50 am
Forum: Software & Programming
Topic: C++
Replies: 22
Views: 1512

Re: C++

Hi, Do we really need classes ? I use C++, but get by without them ! C++ is better than C, but mainly as it cures some C problems, such as poor input and output operators. And as it is not an interpreted language, bug-finding can be pretty horrendous. Why use C++ at all ? The simple answer is that i...
by stevepoole
Sat Dec 01, 2018 10:25 pm
Forum: The Off-Topic Section
Topic: QL Jokes
Replies: 29
Views: 2882

Re: QL Jokes

NormanDunbar wrote:

How many QL developers does it take to screw in a light bulb?

>> Fifty chinese QL Tinkerers : "Many hands make light work"
by stevepoole
Sun Sep 23, 2018 10:23 pm
Forum: Help for New Users
Topic: QL Tinkering
Replies: 97
Views: 16203

Re: QL Tinkering

Hi qbits, Integer FOR loops are faster than FP ones if you Turbo them. (The Turbo manual is full of good tips on fast coding tricks). I find timings using an emulator are not consistant, as they are on QL hardware, because of PC overheads. Timings on QLs are slower than on emulators, but can be scal...
by stevepoole
Thu Sep 20, 2018 10:33 pm
Forum: Help for New Users
Topic: QL Tinkering
Replies: 97
Views: 16203

Re: QL Tinkering

Hi there, Many years ago I wrote a small piece of SuperBasic code placed at the beginning of a program to test timings of all the different SB statements. I sent the results off to Quanta, the most surprising of which was that (LET) assignements were very slow operations compared even to say divisio...
by stevepoole
Mon Sep 10, 2018 10:07 am
Forum: Software & Programming
Topic: GitHub
Replies: 1
Views: 419

GitHub

Hi everyone, The Shrink TSP program needs to be made available to people on PCs other than Apple. We have been asked to place it on GitHub, but this site is now owned by Microsoft. Are there any other realistic alternatives ? (GitHub is for the C++ source code, but we want to make the binary accessi...