Go to advanced search

by scruss
Sun Jul 21, 2019 7:32 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 742
Views: 28731

Re: Project Digital Apocalypse Not Now

while I'm touched that this has been taken up as a challenge, installing wbritish-insane is considered harmful. It's chock full of typos, so if you use it as your system spelling dictionary, expect troulbe
by scruss
Sun Jul 21, 2019 4:35 pm
Forum: General programming discussion
Topic: Project Digital Apocalypse Not Now
Replies: 742
Views: 28731

Re: Project Digital Apocalypse Not Now

… Since no example code was given in Basic, I've been wondering whether the onset of the digital apocalypse might be related to bananagrams and the inability of Basic to help with them. If only the BASIC interpreters I use (and want to keep using) had hash tables, this would be right easy. But they...
by scruss
Sun Jul 21, 2019 4:30 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 480
Views: 18438

Re: Introduction to BBC BASIC

Using the web standards, google, I cannot find any specification for the StrongHelp format. The StrongHelp format is described somewhere here: http://www.riscos.info/downloads/stronghelp/manuals/ … but in true RISC OS fashion, the files themselves are stored in the proprietary StrongHelp format , s...
by scruss
Sun Jul 21, 2019 4:09 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

Okay, so this happened: Big BBC BASIC Integer Fibonacci test scruss 2019-07-20 Fibonacci(101000) OS Interpreter Run Time / s Rank Relative Speed Note ================ =================== ============ ==== ============== ==== RISC OS BASIC V 6.3 1 100% RISC OS BASIC64 6.4 2 101% [1] Raspbian Matrix B...
by scruss
Fri Jul 19, 2019 4:29 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

… If you are not going to use the extra range of double precision floating point, you would certainly be better off running the integer version of the line-numbered Basic code which is called integer.bas in the repository. … It also relies on the Microsoft Basic implicit type declaration DEFLNG A-Z...
by scruss
Fri Jul 19, 2019 3:41 pm
Forum: General discussion
Topic: Wrong date every booting
Replies: 3
Views: 212

Re: Wrong date every booting

what's the systemd target for your RTC? If it's called hwclock-sync.service , put this line in the Unit section of your logrotate service file: After=hwclock-sync.service If you were using network time sync, waiting for time-sync.target will cause problems as that returns after time sync has started...
by scruss
Fri Jul 19, 2019 12:23 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

Interesting results. Have you tried any of the well known graphics benchmarks (well known on BBC BASIC for RISC OS). I am curious of the results. No, I don't know of those benchmarks, and I'm not sure if I can run them unchanged in Matrix Brandy. … there are some differences in a good setup versus ...
by scruss
Fri Jul 19, 2019 12:06 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

What a charming turn of phrase. Sounds like something Rab C. Nesbitt might say: https://www.youtube.com/watch?v=y33a8pXIy20 Well, he and I are from the same town. Unlike Rab, my head wound healed up long ago. This is an fascinating result. As far as I can tell Brandy is written in C. As it has come...
by scruss
Fri Jul 19, 2019 12:58 am
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

What, no screen shot of this momentous occasion ? You can, frankly, away an' run up ma humph. Even if I did know how to take screenshots on RISC OS, I was just running in the full-screen console thing. There's no GUI to do anything to, and no other tasks around to grab a picture. You have to even c...
by scruss
Thu Jul 18, 2019 10:19 pm
Forum: Troubleshooting
Topic: Rpi4 Loads of settings gone or altered..help please...
Replies: 1
Views: 61

Re: Rpi4 Loads of settings gone or altered..help please...

Raspbian occasionally does a desktop refresh, where all the settings go back to default. They usually tell you that the old configuration files are backed up somewhere, but they don't tell you how to do it. It's the only Linux distro I know of that does this. I wish they wouldn't.
by scruss
Thu Jul 18, 2019 1:06 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

Okay, so: this code — Classic2 — run under RISC OS on a Raspberry Pi 3 gave the following times: BASIC: 3778 s BASIC64: 3240 s The Raspberry Pi 3 had a fan playing on it all the time - it is unlikely to have throttled. I'm currently running this code — Classic2_brandy — on the same Raspberry Pi 3 un...
by scruss
Thu Jul 18, 2019 11:14 am
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

Is it so that after all this time and debate we still don't have an execution time for the Big Fibo code BBC BASIC on RISC OS? It's been running on a Raspberry Pi 3 for just over an hour. No result yet … (it's been an immense amount of work to get it going even on a Raspberry Pi 3 and I don't think...
by scruss
Thu Jul 18, 2019 12:00 am
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

Well just comment out that assignment and make sure that the next slot is large enough for the required DIM's. Um, both you and Soruk use the term next slot , and I have no idea what it could mean. Slots are where you put interface cards in my world. Can you please explain? I've used RISC OS for a ...
by scruss
Wed Jul 17, 2019 11:39 pm
Forum: General discussion
Topic: Thermal Printing with Raspberry Pi
Replies: 3
Views: 117

Re: Thermal Printing with Raspberry Pi

You likely could run it on an Arduino if you stored the images in PROGMEM.
by scruss
Tue Jul 16, 2019 11:45 pm
Forum: Beginners
Topic: Do I HAVE to use LibreOffice?
Replies: 14
Views: 618

Re: Do I HAVE to use LibreOffice?

There's a really good chance that LibreOffice can read your Wordstar and Quattro Pro files: they have a remit to create filters for old file formats. Managed to get a friend's supposedly-lost PhD thesis back from old Mac floppies using some old hardware plus LibreOffice.
by scruss
Tue Jul 16, 2019 5:38 pm
Forum: Beginners
Topic: Do I HAVE to use LibreOffice?
Replies: 14
Views: 618

Re: Do I HAVE to use LibreOffice?

Even if you could run OpenOffice, you wouldn't want to run it. LibreOffice is the community fork from Oracle's OpenOffice, and actually contains features that users might want. OpenOffice was missing useful functions for years that LibreOffice added quickly.
by scruss
Tue Jul 16, 2019 12:05 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

I posted a modified version for Matrix Brandy Basic here . Well, this is fun. Looks like I've found an inconsistency between Matrix Brandy compiled for Raspberry Pi and Matrix Brandy compiled for x86_64. Running that linked code but with an added line 8605 PRINT " *** F0: "; F0 : Raspberry Pi: pi@t...
by scruss
Tue Jul 16, 2019 3:21 am
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

I posted a modified version for Matrix Brandy Basic here . Still the same problems though: HIMEM issues and other errors. The version that runs on GW-BASIC won't even run under BASIC64 on RISC OS. I'm stumped. I'll have to ask on Stardot. I am posting this from RISC OS though - even if the edit win...
by scruss
Mon Jul 15, 2019 11:46 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

Wow, thanks for giving that a go. Shame it is being so intransigent. no probs. It's quite a pretty OS when it gets running. Shame it doesn't speak any file formats that the rest of the world uses. The other thing I haven't managed to get it to do is time programs. I suspect it'll need to be somethi...
by scruss
Mon Jul 15, 2019 7:49 pm
Forum: General discussion
Topic: Usefull / good programs to have on your Pi
Replies: 22
Views: 980

Re: Usefull / good programs to have on your Pi

Have they fixed the missing ESP8266/Wemos/ESP12 pieces yet? That one's solely on Espressif Systems. Their toolchain only builds on x86/x86_64. Essentials? BBC BASIC for SDL 2.0 . Matrix Brandy BASIC . Perlbrew. Netpbm (the one from source, not the 20 year old Debian one). Emacs. q . Micro . But mos...
by scruss
Mon Jul 15, 2019 12:19 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 54
Views: 1440

Re: Comparing Interpreted Language Speed.

Did BBC BASIC on RISC OS get a result from Fibonacci Challenge code or is it still running? https://github.com/ZiCog/fibo_4784969/blob/master/BASIC/classic_bbc.bas It doesn't even run under BBC BASIC V on RISC OS as supplied. I get the following errors (after going through all the rigmarole of sett...
by scruss
Sun Jul 14, 2019 6:01 pm
Forum: Beginners
Topic: Using feh over ssh connection
Replies: 7
Views: 184

Re: Using feh over ssh connection

Untried - and possibly in the wrong config file - but add the following near the end of your ~/.bashrc file: if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then if [ -n "$DISPLAY" ]; then export DISPLAY=:0 fi fi This should set the display to use the Raspberry Pi's monitor over ssh, but still respect...
by scruss
Sun Jul 14, 2019 2:03 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 256
Views: 5682

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

I did the same, in Python3, using /usr/share/dict/words (2.5M file, 1 second runtime): Though you're not doing half the work that my example did: you include proper nouns and possessives and smash everything to lower case: you need to pick out the words that are just lower case alphanumerics your o...
by scruss
Sun Jul 14, 2019 1:40 pm
Forum: Beginners
Topic: Using feh over ssh connection
Replies: 7
Views: 184

Re: Using feh over ssh connection

If you do

Code: Select all

ssh -X pi@192.168.1.61
it should set up DISPLAY correctly
by scruss
Sat Jul 13, 2019 10:24 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 256
Views: 5682

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

I think I would just mmap the dictionary and keep scanning that ? No need to allocate any memory. You're going to have to do a heck of a lot of scanning to find where the lines start and stop, and then run a regex on each one to see if it matches the definition of a word or not. There is one major ...

Go to advanced search