BBC BASIC
General >> Announcements >> BBC BASIC for SDL 2.0 v0.15a released
http://bbcbasic.conforums.com/index.cgi?board=announcements&action=display&num=1478091882

BBC BASIC for SDL 2.0 v0.15a released
Post by Richard Russell on Nov 2nd, 2016, 1:04pm

I'm pleased to announce a new release of BBCSDL, the cross-platform BBC BASIC for Windows, Linux (86), Android (86) and Mac OS-X. Version 0.15a may be downloaded as follows:
The main changes in this version are as follows:

SDL 2.0:INTERPRETER:SDLIDE:LIBRARIES:EXAMPLE PROGRAMS:I still need volunteers to contribute to the documentation, help viewer, addin utilities and libraries. Without your help this project will never be completed!

Richard.
Re: BBC BASIC for SDL 2.0 v0.15a released
Post by jbk on Nov 3rd, 2016, 1:14pm

hello Richard
this new version works ok on my Mac, the OS is still the same except for updates.

thank you smiley
Re: BBC BASIC for SDL 2.0 v0.15a released
Post by Richard Russell on Nov 3rd, 2016, 8:02pm

David Williams has drawn attention to the Rosetta Code task Munching Squares. It so happens that this is a particularly good example of a program which runs considerably more quickly in BBCSDL than in BB4W. I've timed the program - but with the size% value changed from 256 to 512 - running in BB4W v6.02a and in BBCSDL v0.15a (on a Core i7 laptop) with the following results:

BB4W: 9.4 seconds
BBCSDL: 0.9 seconds

So in this particular case the program ran more than ten times faster in BBCSDL! I don't for a moment suggest that this is typical, it isn't (BBCSDL is often slower), but it does illustrate how significant the difference can be.

Richard.

Re: BBC BASIC for SDL 2.0 v0.15a released
Post by Leo on Nov 10th, 2016, 11:13am

Hi Richard,

I downloaded BBCSDL20 to try on my Windows 7 machine and ran into a problem with SDLIDE.
When I tried to change the edit font, the font selection box did not show facenames, it showed a listing of bits of directory names from my root directory.

The problem occurs because I installed to "c:\Program Files (x86)\BBCSDL".
I think any directory with spaces in the name would also cause the problem.
I verified it works Ok when installed to a directory without spaces in the name.

Investigating.. in PROCsetfont, I believe the line...
N% = FNdirscan(face$(), "dir " + @lib$ + "*.ttf", "*.ttf", "", "")

..needs some more double quotes sprinkled around the @lib$ to deal with the embedded spaces.
I haven't (yet) tried this.

Re: BBC BASIC for SDL 2.0 v0.15a released
Post by Richard Russell on Nov 10th, 2016, 1:04pm

on Nov 10th, 2016, 11:13am, Leo wrote:
... needs some more double quotes sprinkled around the @lib$ to deal with the embedded spaces.

Could well be. As you will appreciate, BBCSDL is primarily intended to be run in Linux and Mac OS, in which directory names containing spaces are uncommon. You could try changing the line you mention as follows:

Code:
      N% = FNdirscan(face$(), "dir """ + @lib$ + "*.ttf""", "*.ttf", "", "") 

Richard.

Re: BBC BASIC for SDL 2.0 v0.15a released
Post by Leo on Nov 10th, 2016, 1:35pm

Yes, that fixes it.