Page 1 of 3
Folly_Quincunx
Posted: Mon Nov 16, 2020 8:27 am
by stevepoole
Hi,
Renaissance artists painted romantic antique ruins. Victorian aristocrats built false ruins for their parklands, called 'follies'.
Here is a doodle screen-saver, based on the principle of the 'Galton NailBoard', that is, normal distribution of random values, also named 'Quincunx' !
Just LRUN it or ESCape to quit, Turbo-compiled with 5 Ko data, or interpreted. Tested on QPC2, SGC_qdos & SGC_smsq/e.
Builds your crazy follies for you...
Regards,
Steve.
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 9:06 am
by NormanDunbar
Sounds interesting. Downloaded for lster investigation. Shame theres no QL emulator for my Android tablet!
Cheers,
Norm.
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 9:37 am
by stevepoole
Hi Norm,
Out of interest, can your tablet natively run programs written in Pascal or other languages ?
Steve.
________
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 10:50 am
by RalfR
NormanDunbar wrote:Sounds interesting. Downloaded for lster investigation. Shame theres no QL emulator for my Android tablet!
Perhaps possible to run SMSQmulator under JBED.
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 12:04 pm
by Andrew
stevepoole wrote:Hi Norm,
Out of interest, can your tablet natively run programs written in Pascal or other languages ?
Steve.
Lazarus Free Pascal is a cross-platform compiler that can produce code for many operating systems, including Windows, Linux. Android. AmigaOS, MorphOS, AtariTOS, MacOS, iOS
Lazarus supports its own Object Pascal dialect, as well as the dialects of several other Pascal family compilers to a certain extent, including those of Turbo Pascal, Delphi, and some historical Macintosh compilers. The dialect is selected on a per-unit (module) basis, and more than one dialect can be used per program.
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 1:57 pm
by NormanDunbar
Hi Steve,
stevepoole wrote:Out of interest, can your tablet natively run programs written in Pascal or other languages ?
well, I do have the gcc compiler suite running on it, yes, and I've compiled a couple of small test programs, but nothing much bigger than "Hello World" yet. Console based testing so far, I have no idea if it is possible to write GUI programs for Android in something that isn't HTML or Java. Mind you, I haven't paid much attention since I looked into development work on the Android platform some time back - and as it was all Java then, it was dire, slow and cumbersome. Maybe C/C++ will be better - I am aware that QT can be used to gevelop GUIs for Android. I use QT but I haven't installed any of the Android stuff. I also have no plans to do so either.
Cheers,
Norm.
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 1:59 pm
by NormanDunbar
Hi Ralf,
RalfR wrote:Perhaps possible to run SMSQmulator under JBED.
Noted for later investigation, thank you.
Cheers,
Norm.
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 2:01 pm
by NormanDunbar
Hi Andrew,
Andrew wrote:Lazarus Free Pascal is a cross-platform compiler that can produce code for many operating systems....
I used Lazarus many years ago on Linux when I was still coding with Delphi on Windows. Very similar indeed even back then. Unfortunately, I haven't used Pascal/Delphi for too many years and it may just have aged out of the cache!
Cheers,
Norm.
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 4:32 pm
by stevepoole
Hi Norman & All,
It is possible to transcribe some QL programs into JavaScript, and send them as email attatchments.
Then just click on the attatchment to run it (via the browser).
I have successfuly done this with the 'Shrink Travelling Salesman' program, which is quite long and complex !
Conversion is done by hand using Notepad++. 'QL' on a smartphone ?
Regards,
Steve.
___________
Re: Folly_Quincunx
Posted: Mon Nov 16, 2020 5:19 pm
by NormanDunbar
stevepoole wrote:It is possible to transcribe some QL programs into JavaScript
I believe you, it's just that JavaScript and me, well, we don't get on very well. We never seemed to hit it off, even way back when it was still fun!
Seriously, I just don't seem to be able to connect with JavaScript. I have a couple of books on the matter - somewhere, unless they are in the pile to go to the charity shop!
Cheers,
Norm.