In my BASICs, whole-array operations are not particularly fast. The reason is easy to understand: I have many more data types than Acorn's versions (8-bit and 64-bit integers in addition to 32-bit; 40-bit and 80-bit floats in addition to 64-bit) and several more array operators too (mine support addition, subtraction, multiplication, division, OR, AND, EOR, DIV and MOD). And of course there is the automatic promotion of integers to floats on overflow, something which Acorn's BASICs don't do (or don't do properly),We've talked before about RISC BASIC 6 and its use of the ARM vector processor for BBC BASIC's array operations. I benchmarked an array multiply and clocked 20 Mflops. Can BASIC SDL make use of the vector processor?
So to make the code manageable, and ensure correct behaviour on overflow, I have to use a common loop for all these different data types and operators. The source arrays must be initially converted to variants, then the actual computations are done by calling into the regular expression evaluator according to the specified operator, and finally the results converted back from variants to the correct type for the destination array. All this takes quite a lot of time, but it should mean the result can be trusted.
Did you contact me about that? I don't have any recollection of you doing so (although of course that means nothing, because I don't remember things that happened only a few days ago ). I'm totally dependent on user feedback for identifying problems, even more so in the case of a cross-platform product like BBCSDL which I don't have a hope of testing thoroughly on all the supported platforms.I'm sorry to say that I've failed to use BASIC SDL on the PI because I couldn't get it to work
Back where? If you're reading my posts at the Discussion Group it's because of the automated cross-posting from this forum which was set up recently. I'm still unable to post to the Discussion Group directly myself (and I've already received one complaint that I am using the cross-posting as a way of bypassing that ban, so it doesn't look as though I'll be welcome back there any time soon).PS Great to see you back!