BBC BASIC for SDL 2.0 v0.14a released

discuss PC<>Acorn file transfer issues & the use of FDC, XFER, Omniflop/disk etc.
Post Reply
User avatar
Richard Russell
Posts: 216
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

BBC BASIC for SDL 2.0 v0.14a released

Post by Richard Russell » Tue Aug 02, 2016 2:58 pm

I've released an update to my cross-platform (SDL 2.0) 32-bit version of BBC BASIC. It may be downloaded for all the currently-supported platforms as follows:

The Mac version should run on all operating system versions from Snow Leopard (10.6) onwards. In the case of both the Android (x86) and Mac OS versions you may need to override the security settings to allow an application to be installed from an unknown source.

More details of this release may be found at the BBC BASIC forum here.

Richard.

User avatar
bakoulis
Posts: 255
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by bakoulis » Fri Aug 05, 2016 10:12 am

Very nice, the new IDE is almost as the classic BB4W IDE! I will stick here.
Now have a more elegant and professional look!
=D>
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

User avatar
flaxcottage
Posts: 3028
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by flaxcottage » Fri Aug 05, 2016 8:35 pm

The Android App will not install on my Samsung Galaxy Tab A even after over-riding the security. Is that to be expected?
- John

Why do I keep collecting Acorn gear? I'm going to need a considerably bigger man-cave. :?

User avatar
flibble
Posts: 626
Joined: Tue Sep 22, 2009 10:29 am
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by flibble » Sat Aug 06, 2016 12:13 am

Is you Android tablet ARM or Intel based? The Android version is for x86 Android only.

User avatar
bakoulis
Posts: 255
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by bakoulis » Sat Aug 06, 2016 7:29 am

Your Samsung is ARM based Android. The BB4SDL is x86 Android compatible.
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

User avatar
flaxcottage
Posts: 3028
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by flaxcottage » Sat Aug 06, 2016 7:33 am

flibble wrote:Is you Android tablet ARM or Intel based? The Android version is for x86 Android only.


ARM-based. It is a Qualcomm Snapdragon 410 processor. Oh, well. :?

Thanks for the confirmation.
- John

Why do I keep collecting Acorn gear? I'm going to need a considerably bigger man-cave. :?

User avatar
bakoulis
Posts: 255
Joined: Wed Feb 08, 2012 9:45 pm
Location: Athens, Greece
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by bakoulis » Sun Aug 07, 2016 9:07 am

I think the next big step must be the activation of "compile" button, like windows!
Will be very cool and useful to have standalone linux programs from BBC basic!
2xElectron, 3xBBC B, BBC Master.
2xAcorn A310, A420/1, 2xA3000, 2xA3010, A3020, A4000, A5000.
2xRISC PC, Acorn Pocket Book, Acorn Pocket Book II.

User avatar
Richard Russell
Posts: 216
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by Richard Russell » Fri Aug 26, 2016 4:39 pm

bakoulis wrote:I think the next big step must be the activation of "compile" button, like windows!
Will be very cool and useful to have standalone linux programs from BBC basic!

Certainly enabling the Compile button is a high priority for the next version, although I'm not sure that it will support Linux initially. As I'm sure you're aware, the many different 'flavours' of Linux make creating a universal executable difficult if not impossible. I believe there are moves to sort this issue out, for example the Snappy format, so eventually it may become more practical.

In the meantime the first platform I'm likely to support with the BBC BASIC Compile button is Mac OS-X, which has a well-defined app format that will install on all versions from 10.6 (Snow Leopard) up to the latest version. However there are still some issues to resolve, such as setting an application's icon, which I currently only know how to do from the GUI. Also, an app compiled using BBC BASIC will inevitably not have a digital signature, so that might cause it to be blocked for security reasons.

Richard.

User avatar
Richard Russell
Posts: 216
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by Richard Russell » Sat Oct 29, 2016 10:43 pm

Richard Russell wrote:Certainly enabling the Compile button is a high priority for the next version

Sadly this has gone the way of so many good intentions, and the next version won't have 'compile' working - sorry. I'm still unsure how best to support this feature, particularly on Linux with its multiple incompatible 'flavours'. Are there any Linux enthusiasts here who might be able to give advice? Or maybe even help with coding - the IDE is written entirely in BBC BASIC!

Richard.

User avatar
sweh
Posts: 1914
Joined: Sat Mar 10, 2012 12:05 pm
Location: New York, New York
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by sweh » Fri Nov 04, 2016 5:17 pm

Don't create binary objects directly; output as a translated language (e.g. C or GOlang) and use native compilers that come with the OS.

(If you target GOlang then the resulting binaries are statically linked and a lot more portable across systems).

This isn't an uncommon pattern.
Rgds
Stephen

User avatar
Richard Russell
Posts: 216
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: BBC BASIC for SDL 2.0 v0.14a released

Post by Richard Russell » Fri Nov 04, 2016 5:55 pm

sweh wrote:Don't create binary objects directly; output as a translated language (e.g. C or GOlang) and use native compilers that come with the OS.

That doesn't help me, because of course BBC BASIC is interpreted. It can't be "translated" into a compiled language (if BBC BASIC could be accurately, fully and reliably translated into C, it would make all sorts of things possible which aren't currently). The closest that anybody has come to achieving that, as far as I know, is Robert Smallshire's Owl BASIC (he was attempting to translate BBC BASIC into .NET CLR bytecode, but the principle is the same) but that never got very far.

I'm OK for Mac OS, I think, because I can create a 'universal' 32-bit binary application (in the form of a .dmg file). The only complication is that an app ought ideally to be signed, so I may need to provide some mechanism for the user to enter details of his Code Signing Certificate (if he has one). Linux is the more difficult case, and at the moment I'm thinking I will just create a ZIP file with the necessary components in it; the end-user will have to install the SDL libraries (using apt-get or the equivalent for his flavour of Linux) manually.

I'm spoilt by Windows, where it's trivial (I can create a universal, self contained, PE file which will run on all versions of Windows from 95 to 10!).

Richard.

Post Reply