Go to advanced search

by Steve Drain
Mon Jul 22, 2019 11:31 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 31514

Re: Introduction to BBC BASIC

@Steve Drain - if you're unhappy with this, let me know and I'll take it down. The whole thing is released under the modified BSD licence, so do as you will, just don't blame me. I cannot see why most of the members here are making such a fuss about a piece of software they will never be able to us...
by Steve Drain
Sun Jul 21, 2019 11:07 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 31514

Re: Introduction to BBC BASIC

Can you post that file here perhaps we can work something out from it. The official BasAlt website appears to be here but the links all point back to the same page or lead to a 404 :( You found that, but I have not pointed to it. It was an attempt to parse the StrongHelp manual into HTML, but faile...
by Steve Drain
Sun Jul 21, 2019 11:04 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 31514

Re: Introduction to BBC BASIC

Turns out there is an attempt at a StrongHelp reader for WIndows, "StrawHelp" https://heyrick.eu/software/strawhelp/ Source code in Visual Basic here: https://heyrick.eu/software/strawhelp/download.html You beat me to it. ;-) Make sure to download the dependencies first. Install them and skip any w...
by Steve Drain
Sat Jul 20, 2019 9:49 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 31514

Re: Introduction to BBC BASIC

it's quite hard to understand the mindset of Acorn/Sophie in restricting strings in this way, even when ARM BASIC was developed for a true 32-bit machine with potentially megabytes of memory. The 255 byte limit is very constraining, but I think I can see how it has survived. The original size match...
by Steve Drain
Sat Jul 20, 2019 9:31 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 31514

Re: Introduction to BBC BASIC

Richard and I have also exchanged ideas on very long strings, each producing a library for our own versions. My huge string library was never very satisfactory, and I eventually abandoned it in favour of natively supporting arbitrary-length strings (limited only by available memory) in version 6 of...
by Steve Drain
Fri Jul 19, 2019 9:08 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 31514

Re: Introduction to BBC BASIC

I couldn't write programs without structures, private variables, indirect function calls, long strings and all the other language enhancements that my versions have. I think both Richard and David are aware of my Basalt (BASIC Alternative keywords) module with all those extensions and more for ARM ...
by Steve Drain
Sun May 12, 2019 2:27 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 31514

Re: Introduction to BBC BASIC

If you know the language inside-out like I do there are often big wins to be made by using 'novel' techniques, and in a library I don't mind if the code is unreadable so long as it works. FWIW I used a few tricks to truncate my arrays so that operations were not wasted on the leading zero parts. :)
by Steve Drain
Sun May 12, 2019 2:13 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 551
Views: 31514

Re: Introduction to BBC BASIC

I'm facing a dilemma: should I use a 10^n radix for the limbs (as the classic BASIC Fibo program does) or a more conventional 2^n radix? A long time ago, it seems, in the original topic, I had go at this using RISC OS BBC BASIC. I used 10^n radix and BASIC VI float arrays that could exploit the ARM...
by Steve Drain
Fri Jan 18, 2019 9:50 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

ejolson wrote:
Fri Jan 18, 2019 8:48 am
it would be nice if a RISC OS BBC BASIC code were to appear.
Just for fun I set an integer version of my code running. It finishd after 1117 minutes. :-)

That is extreme, because there are some optimisations still available.
by Steve Drain
Wed Jan 16, 2019 2:01 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

Since there is no inline assembler, does your code work with Richard's port of BBC Basic to Raspbian? I have no idea, but I think all the constructs are compatible, so maybe. I wonder how difficult it would be to add the Karatsuba algorithm. I did test my understanding of K using string representat...
by Steve Drain
Wed Jan 16, 2019 10:36 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

Along those lines, it would be nice if a RISC OS BBC BASIC code (with or without inline assembler) were to appear. Among such exalted and professional company, dicussing such esoteric matters, what could a dilettante such as myself hope to offer. :-) Well, here is a plain interpreted fibo program. ...
by Steve Drain
Fri Jan 11, 2019 9:35 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

Loading modules and talking to them through software interrupts is essentially how RISCOS implements shared libraries, so the missing BBC BASIC code is much like the Haskell code in that the programmer has reached the point of coding the doubling formula but the resulting big number computations ar...
by Steve Drain
Fri Jan 11, 2019 9:19 am
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

What the heck, I'd like to see it. There would be little point, and later comments make it clear that it is not really of much interest, because it is not using just the [a] BASIC language. It is essentially just a transliteration of the best doubling algorithm that has appeared here in various gui...
by Steve Drain
Thu Jan 10, 2019 9:19 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

That is interesting. I never knew RISC OS had such a big numbers module built in before you mentioned it. It does not. You soft-load the module and it become part of the OS. You can do this with a multitude of modules. RISC OS is very modular. :-) I'm puzzling how this fits with the agreed aims of ...
by Steve Drain
Thu Jan 10, 2019 7:16 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

jahboater wrote:
Thu Jan 10, 2019 7:11 pm
I thought BBC Basic was interpreted. If so that is very fast indeed!
I refer back to my earlier explanation of RISC OS modules as operating system extensions. The Numbers module has the calculation code and does all the hard lifting. My program is in BASIC, but not as you might imagine.
by Steve Drain
Thu Jan 10, 2019 7:01 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

It's hard work...all this avoiding BASIC business :) Back to BBC BASIC then. Following up on various bits discussed here I now calculate the fibonacci in about 2:15 minutes with RISC OS on an iMX processor at 1.2GHz. It is of the order of twice that on a Raspberry PI Zero, and the time to print a h...
by Steve Drain
Fri Jan 04, 2019 5:36 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

Would you mind posting what you have so far? I may do, but it only applies to BBC BASIC running on a RISC OS machine with the Numbers module loaded. To clarify for anyone unfamiliar with RISC OS, modules are operation system extensions. They can be written in assembler, C or just about in compiled ...
by Steve Drain
Fri Jan 04, 2019 1:22 pm
Forum: Off topic discussion
Topic: Why Avoid BASIC on RPi?
Replies: 2312
Views: 111392

Re: Why Avoid BASIC on RPi?

While attempts to create a Fibonacci code using BBC BASIC by members posting in this thread have so far met with failure I have been lurking here from the start and I have learned a great deal, but I cannot let that go without some comment. ;-) I wrote a fairly naive doubling routine for RISC OS BB...
by Steve Drain
Sat Jun 10, 2017 6:27 pm
Forum: RISCOS
Topic: RISCOS I2C Access
Replies: 6
Views: 12725

Re: RISCOS I2C Access

I have an MCP23017 16 Port I/O extender board and an ADXL345 Acceleromter, both of which are I2C devices. Been a while, but I broke out BBC Basic, and started mucking about with SWI IIC_Control, and hey presto, I can now read/write both devices straight from Basic 5. You might want to look at SWI O...
by Steve Drain
Wed Oct 05, 2016 3:57 pm
Forum: Other programming languages
Topic: Porting ARM BASIC to the Raspberry Pi via SDL 2.0
Replies: 89
Views: 20282

Re: Porting ARM BASIC to the Raspberry Pi via SDL 2.0

Simple recursive factorial program, uses only 32-bit integer veriables Sorry David, that is a very poor example to give. Apart from the terrible performance of BBC BASIC used for recursion, the number of factorials that can be expressed as integers is very limited. Even if you use 5-byte float vari...
by Steve Drain
Wed Jun 15, 2016 7:44 pm
Forum: Other projects
Topic: Smarti Pi Touch
Replies: 19
Views: 6823

Re: Smarti Pi Touch

I got one too. I'm impressed. It took about 5 minutes total to install the Pi and really, carping about having to undo a whole 4 screws seems a bit much. Yes, there is a guide video on the website but I don't see much need for it for most people - the only details not obvious are the placing of the...
by Steve Drain
Tue Feb 09, 2016 6:43 pm
Forum: General discussion
Topic: The search for a lithium-ion charger/USB output board
Replies: 7
Views: 3772

Re: The search for a lithium-ion charger/USB output board

This item from RS might be just what you want, but that is the in UK. It does power through and 2.1A.

http://uk.rs-online.com/web/p/power-banks/7757508/

Perhaps there is something similar at Allied.
by Steve Drain
Tue Feb 02, 2016 4:37 pm
Forum: Other programming languages
Topic: ARM Assembly Optimization
Replies: 12
Views: 2765

Re: ARM Assembly Optimization

DavidS wrote:1: Minimize the use of branching.
You do not menton conditional execution. This used to be very valuable in reducing branching, but I have read that it is unlikely to be so on more modern processors with better prediction. I cannot get out of the habit, myself, though. ;-)
by Steve Drain
Sun Dec 13, 2015 4:08 pm
Forum: General discussion
Topic: I made a Raspberry PI Laptop
Replies: 840
Views: 385177

Re: I made a Raspberry PI Laptop

It would be nice if you would include links to your other PIP projects. I wanted to keep the post small. Thanks for posting the links anyway. :-) PIP4 needs a Pi2B version dang it! :lol: The killer is the HDMI setup for me. Very small wires The PIP3 might be adaptable to the Pi2B, but that is not f...
by Steve Drain
Sat Dec 12, 2015 5:16 pm
Forum: General discussion
Topic: I made a Raspberry PI Laptop
Replies: 840
Views: 385177

Re: I made a Raspberry PI Laptop

A year ago I posted about my Pip4 using the A+ with a Lapdock: http://kappa.me.uk/Raspberry_Pip/PIP4/General4.jpg I thought this would be the last word in minimilism - but then along came the Zero: http://kappa.me.uk/Raspberry_Pip/PIP0/general.jpg More details at: http://kappa.me.uk/raspberry_pip0.h...

Go to advanced search