BBC BASIC
« Search Results »

Welcome Guest. Please Login or Register.
Feb 20th, 2017, 12:41am


Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

Search Results

Total results: 10


 1   Interpreter & Run-Time Engine / Re: Bug alert  on: Yesterday at 11:12am
Started by Richard Russell | Post by Richard Russell
on Jan 1st, 2017, 09:34am, Richard Russell wrote:
My inclination, in the interests of 'risk management', is to initially release a new version of BBCSDL with this modification

Can I remind everybody that the recently released BBCSDL v0.16 is this version and that therefore it needs to be hammered to ensure that the workaround I have added - i.e. to report an error if the condition that can result in instability arises - is effective, safe and has no unwanted side effects.

So please do as much testing of BBCSDL v0.16 as you possibly can. Particularly, test calling procedures (PROC) and functions (FN) in as many ways as you can think of, including passing a User Defined Function as a parameter. You might like to deliberately reproduce the conditions that activate the 'bug', so you can see that the behaviour has changed.

If you haven't yet downloaded and tried BBCSDL, because you thought that it wasn't relevant to you, now it is! The reliability of future releases of BB4W, which will incorporate the same workaround, is dependent on the degree of testing that BBCSDL v0.16 receives.

Richard.
 
  Reply Quote Notify of replies

 2   Announcements / Re: BBC BASIC for SDL 2.0 v0.16a released  on: Feb 18th, 2017, 5:50pm
Started by Richard Russell | Post by Richard Russell
I've discovered a minor bug, which affects only the ARM editions (i.e. Android and Raspberry Pi): INKEY(-10), INKEY(-11) and INKEY(-12), which should detect the mouse buttons, were not working. This is fixed in version 0.16g; there are no other changes.

Richard.

 
  Reply Quote Notify of replies

 3   Announcements / Re: Experimental Raspberry Pi version  on: Feb 18th, 2017, 12:02pm
Started by Richard Russell | Post by Richard Russell
Having today fully updated my Raspberry Pi 3 (rpi-update / apt-get update / apt-get dist-upgrade) I am pleased to report that the 'experimental' GL Driver (enabled in raspi-config) now works successfully with my TV, and the performance of BBC BASIC is much improved as a result. Graphics programs like 'bounce.bbc', 'chain.bbc' and 'prompter.bbc' now run at a much more acceptable speed. smiley

However true 3D programs, which rely on OpenGL, are still not working (they no longer crash, but don't display correctly). I will report back if I discover a fix.

Richard.
 
  Reply Quote Notify of replies

 4   Android (86) / Android Touch IDE  on: Feb 17th, 2017, 11:44am
Started by Richard Russell | Post by Richard Russell
Personally I'm very happy with the clean, minimal, interface provided by BBC BASIC for Android's Touch IDE (touchide.bbc) - not surprisingly because I designed it to work that way! Because it responds to all the common touch gestures (tap, press, drag, pinch etc.) it was my hope and expectation that no explicit menu or help would be required.

I have therefore been surprised that a few people (hopefully only a small minority) have reported that they "don't know what to do". I had not anticipated that there would be anybody so 'out of touch' (!) that they wouldn't even think to try a long-press (touch-and-hold) gesture, since that is an almost universal way of opening a context menu on a touchscreen (it's the direct equivalent of a right-click in Windows).

To check that my expectation wasn't too unreasonable, I asked my wife (who is entirely non-technical) how she would go about renaming a file in the BBC BASIC file selector, and she said she would try a long-press on the filename.

In fact the long-press touch gesture actually works in Windows as well, if you are lucky enough to have a touchscreen (and they are not uncommon on laptops these days). Even when running BBC BASIC for Windows you can bring up the context menu that way - in addition to the more conventional right-click or Shift+F10.

So whilst of course I have sympathy with anybody who gets stuck when using BBC BASIC, it is balanced by a feeling that they jolly well should have known what to try, at least. So it is not my intention to make any changes.

Richard.

 
  Reply Quote Notify of replies

 5   Announcements / Re: BBC BASIC for SDL 2.0 v0.16a released  on: Feb 15th, 2017, 08:17am
Started by Richard Russell | Post by Richard Russell
on Feb 15th, 2017, 08:07am, DDRM wrote:
I hoped that when it started up "from cold" they'd all take contiguous memory,and leave a nice big chunk at the end for BBCSDL.

Me too, but the fly in the ointment is quite possibly ASLR (Address Space Layout Randomization) which is a security measure implemented by all modern operating systems:

https://en.wikipedia.org/wiki/Address_space_layout_randomization

Richard.
 
  Reply Quote Notify of replies

 6   Announcements / Re: BBC BASIC for SDL 2.0 v0.16a released  on: Feb 15th, 2017, 08:07am
Started by Richard Russell | Post by DDRM
OK, thanks - that's what I did, and it still didn't help. I hoped that when it started up "from cold" they'd all take contiguous memory,and leave a nice big chunk at the end for BBCSDL. Anyway, .16e seems to have done the trick!

I have rather few apps installed (by me) - but you're right, there are a ridiculous number that I can't even delete, mostly trying to get me to buy things from the Play store...

embarassed

D
 
  Reply Quote Notify of replies

 7   Announcements / Re: BBC BASIC for SDL 2.0 v0.16a released  on: Feb 14th, 2017, 11:28am
Started by Richard Russell | Post by Richard Russell
on Feb 14th, 2017, 08:34am, DDRM wrote:
IS there a generic Android way of doing that?

Usually achieved by holding down the on/off button until it prompts you to power it down. The crucial thing is that when you next power up it should take quite a long time, probably initially displaying the Android logo (or the manufacturer's logo if customised) whilst it reboots, so it can't easily be mistaken for waking from sleep.

Mind you the Facebook app regularly crashes so badly that it causes my phone to reboot, so it happens whether I want it to or not!

Quote:
I don't really want to put it back to factory defaults, deleting all apps etc...

No, of course not. That should definitely not be necessary.

If you do have many apps that run automatically at boot-up, because they need to monitor things 'in the background' (and an awful lot of apps seem to think they do) it's unlikely that you can - or would want to - do anything about that.

My Android phone is short of memory and quite often fails to install new apps for that reason, but it's all the 'pre-installed' apps that I don't want, but can't get rid of (other than by 'rooting' it), that are responsible. It's annoying, but presumably the manufacturer gets a lucrative deal from the vendors of those apps in exchange for forcing them on their users.

Richard.

 
  Reply Quote Notify of replies

 8   Announcements / Re: BBC BASIC for SDL 2.0 v0.16a released  on: Feb 14th, 2017, 08:34am
Started by Richard Russell | Post by DDRM
Hmm. Obviously I couldn't run mmap until I had a recent working version. It's certainly a sobering insight into a modern operating system!

I note that you said "reboot" the device. Is that different from turning it off (i.e. power down, not just sleep) and back on? IS there a generic Android way of doing that? I'm guessing that things might then take consecutive blocks of memory, rather than being scattered all over.

I don't really want to put it back to factory defaults, deleting all apps etc...

Best wishes,

D
 
  Reply Quote Notify of replies

 9   Announcements / Re: BBC BASIC for SDL 2.0 v0.16a released  on: Feb 13th, 2017, 1:57pm
Started by Richard Russell | Post by Richard Russell
on Feb 13th, 2017, 1:02pm, DDRM wrote:
I've found out how to check my memory, and .16d won't run even when there is 1.4GB of RAM free!

It's the old fragmentation problem. It doesn't matter how much memory is free if there isn't a contiguous block big enough to contain BBC BASIC's heap/stack (it attempts to allocate 256 Mbytes). It's a problem on Windows too, but Android has a less sophisticated memory management system so is likely to suffer more.

Quote:
However, I downloaded .16e, and that appears to run fine

It takes more liberties than 0.16d! As I mentioned previously, you can run mmap.bbc (in the tools directory) to get a feel for how fragmented your memory is. If the screen fills with allocations you can tap on it to scroll through more; if that proves to be necessary it gives you an idea of the problem!

Richard.

 
  Reply Quote Notify of replies

 10   Announcements / Re: BBC BASIC for SDL 2.0 v0.16a released  on: Feb 13th, 2017, 1:02pm
Started by Richard Russell | Post by DDRM
Hi Richard,

I've found out how to check my memory, and .16d won't run even when there is 1.4GB of RAM free!

However, I downloaded .16e, and that appears to run fine - so thanks for that. I'll let you know if I run into any problems.

Best wishes,

D
 
  Reply Quote Notify of replies


Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls