Go to advanced search

by RichardRussell
Tue Oct 22, 2019 12:21 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

Some screenshots from the 'planetarium' program featured in the recent release:
skybaby1_small.png
skybaby1_small.png (123.45 KiB) Viewed 38 times
skybaby2_small.png
skybaby2_small.png (169.35 KiB) Viewed 38 times
skybaby3.png
skybaby3.png (250.4 KiB) Viewed 38 times
by RichardRussell
Sun Oct 20, 2019 3:51 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

Version 1.07a of BBC BASIC for SDL 2.0 - the cross-platform programming language for Windows, MacOS, Linux, Raspbian, Android and iOS - has been released. The changes in this version are as follows: BASIC Interpreter / Run Time Engine User-defined characters may be used even if *FONT is active (impr...
by RichardRussell
Wed Sep 04, 2019 9:55 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

Here's what the supplied example program aagfxdem.bbc produces, on all the supported platforms:

Image
by RichardRussell
Tue Sep 03, 2019 3:48 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

I have released version 1.06a of BBC BASIC for SDL 2.0 , the cross-platform programming language for Windows, MacOS, Linux, Raspbian, Android and iOS. The changes in this version are as follows: BASIC Interpreter / Run Time Engine Added support for antialiased 2D graphics (extending SDL2_gfx). Incre...
by RichardRussell
Wed Aug 28, 2019 8:23 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

Speed. It's painful without it. Plus, we have accelerated graphics, so why not use them? In any case I don't have any choice in the matter: it's BBC BASIC for SDL 2.0 and SDL2 uses OpenGL as the rendering backend when running on Linux (including Raspbian). So it's always using OpenGL, either hardwa...
by RichardRussell
Tue Aug 27, 2019 3:58 pm
Forum: Advanced users
Topic: glLogicOp(GL_OR) not working on Raspberry Pi 4?
Replies: 10
Views: 637

Re: glLogicOp(GL_OR) not working on Raspberry Pi 4?

trejan wrote:
Fri Aug 09, 2019 5:20 pm
No idea how long you'll need to wait for a newer Mesa to appear in Raspbian.
To tie up loose ends, the issue is fixed in this Mesa release candidate:

https://www.raspberrypi.org/forums/view ... 6&t=249650
by RichardRussell
Tue Aug 27, 2019 2:57 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

For those wanting to use BBC BASIC on the Raspberry Pi 4, who may have been affected by the glLogicOp() function not working (and hence BBC BASIC's GCOL statement being broken), I'm pleased to confirm that this Mesa update resolves the issue and restores BBC BASIC for SDL 2.0 to a fully functional s...
by RichardRussell
Tue Aug 27, 2019 2:51 pm
Forum: Raspbian
Topic: Mesa 19.2.0-rc1 available for testing
Replies: 9
Views: 1355

Re: Mesa 19.2.0-rc1 available for testing

This week, Mesa have announced a release candidate for the 19.2.0 release, which we would like to switch over to. I'm pleased to confirm that this 19.2 candidate fixes the issue with glLogicOp() not being implemented, and makes BBC BASIC work properly again! This is really good news, and I look for...
by RichardRussell
Tue Aug 20, 2019 4:53 pm
Forum: Raspbian
Topic: STICKY: Raspbian 'Buster' 2019-06-20 / 07-10
Replies: 134
Views: 30424

Re: Raspbian 'Buster' 2019-06-20 / 07-10

It isn't a performance issue. VC4 driver isn't compatible at all. Shame. It leaves software mesa (disabling FKMS) as the only option for getting a functional glLogicOp(), which whilst it works is unusably slow for running BBC BASIC. This is an unfortunate regression as far as I am concerned, but I ...
by RichardRussell
Tue Aug 20, 2019 1:45 pm
Forum: Raspbian
Topic: STICKY: Raspbian 'Buster' 2019-06-20 / 07-10
Replies: 134
Views: 30424

Re: Raspbian 'Buster' 2019-06-20 / 07-10

I'll see how far I get anyway, but it's possible that we'll need to sort it out another way which may take a few weeks. I appreciate your efforts. I notice that raspi-config provides no option for selecting the VC4 driver (as used on the RPI 3) but only the V3D driver that is currently missing glLo...
by RichardRussell
Sun Aug 18, 2019 9:28 am
Forum: Raspbian
Topic: STICKY: Raspbian 'Buster' 2019-06-20 / 07-10
Replies: 134
Views: 30424

Re: Raspbian 'Buster' 2019-06-20 / 07-10

It was more of a workaround. Something to do with switching from a gtk 2 to a gtk 3 backend is all I remember. Thank you, that explains what has been something of a mystery. Mesa also has a proper fix, but that hasn't made its way into raspbian yet. I am looking at updating it soon. That would be g...
by RichardRussell
Sun Aug 18, 2019 12:21 am
Forum: Raspbian
Topic: STICKY: Raspbian 'Buster' 2019-06-20 / 07-10
Replies: 134
Views: 30424

Re: Raspbian 'Buster' 2019-06-20 / 07-10

Out of interest here is the changlog 2019-07-10: * Fix for missing text insertion cursor in LibreOffice on Pi 4 Are there any details of what this 'fix' involves? My understanding was that the missing cursor in LibreOffice arose because of the absence of glLogicOp() functionality from the V3D drive...
by RichardRussell
Wed Aug 14, 2019 1:06 pm
Forum: Raspbian
Topic: Buster bug report thread
Replies: 232
Views: 32820

Re: Buster bug report thread

RichardRussell wrote:
Sat Aug 10, 2019 9:31 am
Is there a forecast for when this V3D driver fix will be incorporated in Buster?
If it would be helpful to report this at the official github repo, which category does mesa/V3D belong in: linux, firmware or userland?
by RichardRussell
Mon Aug 12, 2019 11:11 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

Unless I have missed a point, if you want to make something more like regular application that leaves the problem of connecting up the emscript SDL image to a real window. I don't have any need to make "something more like a regular application" because BBC BASIC is already multi-platform (courtesy...
by RichardRussell
Mon Aug 12, 2019 8:38 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

But as far as I can tell there is a long way to go between that and creating useful programs with GUI's and so on. Not so much if the GUI is created using SDL 2.0, because Emscripten can easily pull in the SDL libraries when building the WASM binary. What limitations do you have in mind there? You ...
by RichardRussell
Mon Aug 12, 2019 12:36 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

I have no idea how it might fit in with any BASIC. The potential value to me of porting BBC BASIC to WebAssembly is that it would add Chrome OS to the list of supported platforms; currently I don't have a version that will run on a ChromeBook. It's true that some Android applications can be run on ...
by RichardRussell
Sun Aug 11, 2019 10:39 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

It's such a pity that web assembly doesn't support multi-threaded applications I note from here that multi-threaded web assembly applications are 'on the way' and can even be experimented with in Chrome right now, but I don't think we're very near to being able to port BBC BASIC to web assembly qui...
by RichardRussell
Sun Aug 11, 2019 6:47 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

Maybe you could target WASM web assembly and simultaneously reach near native speeds on both. It's such a pity that web assembly doesn't support multi-threaded applications, at least when I last checked it still didn't, which means I can't easily port BBC BASIC to that platform. Re-writing it as si...
by RichardRussell
Sun Aug 11, 2019 4:42 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

That's not to rule out a proper compiler later on - it won't be terribly difficult to do but will be annoying having to support x86/x64 and ARM. You would have to support both 32-bits and 64-bits ARM too, at least for as long as the Raspberry Pi is 32-bits. With PCs as fast as they are now I don't ...
by RichardRussell
Sun Aug 11, 2019 1:14 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

memory is cheap and fast. Memory is cheap and plentiful, but even on modern CPUs the fastest memory (the Level 1 cache) is still relatively small: 32 Kbytes on this Core i7 laptop, which is comparable with the total amounts of RAM in a 1980s home computer! So keeping the memory footprint of an inte...
by RichardRussell
Sun Aug 11, 2019 12:00 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

The EVAL() function doesn't use an interpreter, but it uses the compiler at runtime to compile a BASIC expression on demand, but the EVAL() function itself is only compiled once per program invocation. If one replaces the words 'compiler' and 'compiled' with 'tokenizer' and 'tokenized' then that ex...
by RichardRussell
Sat Aug 10, 2019 9:26 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

Liberty BASIC isn't technically an interpreter. It compiles to an object model that executes on top of a bytecoded dynamic translator (similar to Java). The interpreter/compiler distinction lost its 'binary' nature decades ago, and these days it is best considered to be a continuous spectrum with '...
by RichardRussell
Sat Aug 10, 2019 7:51 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

Are the 3D problems with Raspbian Buster in general or just when running on the Pi 4B? Only when running on the RPi 4. The bug/omission is in the V3D driver, which is only used on the RPi 4; on the RPi 3 the VC4 driver is used instead and that doesn't suffer from the same issue. Indeed the fix for ...
by RichardRussell
Sat Aug 10, 2019 9:31 am
Forum: Raspbian
Topic: Buster bug report thread
Replies: 232
Views: 32820

Re: Buster bug report thread

Is there a forecast for when this V3D driver fix will be incorporated in Buster? Is it possible that it may be available sooner as a separate install of mesa? Currently this issue causes BBC BASIC not to work correctly, and other applications are almost certainly affected.
by RichardRussell
Sat Aug 10, 2019 9:04 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 553
Views: 36955

Re: Introduction to BBC BASIC

From the comments, it appears that this is the goto for BASIC on the Pi. I haven't been able to locate it in the Pi's repositories. It's downloadable as this Zip file . You can find more details here . But if there's no other way, a little help in getting it installed would be greatly appreciated! ...

Go to advanced search