Go to advanced search

by RichardRussell
Tue Jul 02, 2019 9:09 am
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

Because windows in SpecBAS are not SDL surfaces and may be hidden Well, OK, to be able to clip writes to a hidden window (whilst allowing concurrent writes to a visible window) you would either have to treat that as a special case (I imagine it's uncommon) or make each window a separate SDL surface...
by RichardRussell
Tue Jul 02, 2019 12:39 am
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

I support multiple windows (within the SDL surface, I only use one of those) so clipping has to be done manually - also there's the clipping commands which allow you to set your own custom clipping region. I don't see why either of those has any impact on whether SDL does the clipping or you do. In...
by RichardRussell
Mon Jul 01, 2019 10:48 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

Literally the only thing I use SDL for under Linux is to get a pointer to the window surface which I then draw to by writing to that pointer (with offsets, natch). Clipping is performed by SpecBAS, not SDL. This is SDL 1.2, right? So whether clippng is done by your code or by SDL it's being done by...
by RichardRussell
Mon Jul 01, 2019 8:56 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

it is difficult to find a BBC BASIC Program that does not use OS_Byte.. You keep asserting something which is manifestly untrue. I told you that I had written thousands of BBC BASIC programs, none of which use OS_Byte. None of the BBC BASIC example programs supplied with BBC BASIC for SDL 2.0 use O...
by RichardRussell
Mon Jul 01, 2019 3:25 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

the VDU stream is a means of making OS calls. All BASIC I/O statements and functions are "a means of making OS calls", even INPUT and PRINT! You have to draw the line somewhere and accept that some of them are sufficiently fundamental that they become 'part of' the language. Without that level of c...
by RichardRussell
Mon Jul 01, 2019 1:40 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

RISC OS does support SDL2. I don't think so, it's not mentioned in the list of supported platforms (SDL 1.2 may support RISC OS, but that's not relevant here). To run 'my' BBC BASIC under RISC OS (on a Raspberry Pi) it would be easier to bypass SDL2 completely and interface the interpreter directly...
by RichardRussell
Mon Jul 01, 2019 9:01 am
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

I also left BBC BASIC V off of the list of support for clipping graphics output. Again BBC BASIC V does not support this, it needs to call the OS to do this. Surely VDU 24... (set graphics viewport) works in BBC BASIC V? Or are you considering VDU to be an 'OS call' like SYS? The VDU statement is i...
by RichardRussell
Mon Jul 01, 2019 8:32 am
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

Some OS's That Store the Filetype as seperate Metadata in the FS: How many of those OSes are in common use today? None of the popular desktop or mobile OSes in 2019 routinely store the file type as metadata, they either rely on the 'extension' or on a signature in the file itself. So I would ask yo...
by RichardRussell
Mon Jul 01, 2019 8:18 am
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

Do you implement any subset of OS_Byte (also heavily used by many many BASIC Programs). What do these "many" BASIC programs use the OS_Byte API for? I would expect that anything a program 'commonly' needs to do would be provided as a native BASIC statement or function, for example I believe INKEY w...
by RichardRussell
Mon Jul 01, 2019 6:57 am
Forum: Other programming languages
Topic: SB-GFX
Replies: 26
Views: 1549

Re: SB-GFX

My goal with the SDL_gfx extension module is to provide a core set of graphic extensions to give a GUI interface to user projects. If you're looking for a gaming engine, this isn't it. The performance benefits of GPU acceleration apply just as much to the kind of graphics that your examples show, a...
by RichardRussell
Sun Jun 30, 2019 11:53 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

Going somewhat against what I was saying in my previous post, but I'm not seeing BASIC anywhere on that list... :D I don't know where you are looking but Visual BASIC .NET is currently at number 5, having risen above C# in the latest list, with Visual BASIC at number 19. As has been noted before, t...
by RichardRussell
Sun Jun 30, 2019 11:40 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

Is VDU commands still the primary graphics interface or have you gone your own direction? If by "VDU commands" you mean the 'VDU stream' mechanism which operates behind the scenes to communicate graphics commands from the interpreter to the 'OS' then that is very much still used, and will continue ...
by RichardRussell
Sun Jun 30, 2019 10:12 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

I thought BBC BASIC 4 SDL ran on Linux. Yes, but crucially not only on Linux so it wouldn't be appropriate for a cross-platform language like BBC BASIC for SDL 2.0 to incorporate a feature specific to just one OS. The whole point is that it should present the BASIC program with a consistent environ...
by RichardRussell
Sun Jun 30, 2019 9:25 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

Mostly it was the same as the earlier BBC BASIC on the BBC MICRO. The addition of a WHILE loop, CASE statement, multi-line IF...ENDIF clause, passing arrays to functions and making them LOCAL, whole-array arithmetic (including the dot-product), the SWAP statement, the SYS statement to call OS funct...
by RichardRussell
Sun Jun 30, 2019 9:12 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

Though those two versions of BBC BASIC are not quite the same The interpreters are (at least, BBC BASIC for Windows and the 32-bit x86 editions of BBC BASIC for SDL 2.0 share identical code). The differences lie in areas which would be considered part of the OS on the BBC Micro or in RISC OS, but f...
by RichardRussell
Sun Jun 30, 2019 4:44 pm
Forum: Other programming languages
Topic: SB-GFX
Replies: 26
Views: 1549

Re: SB-GFX

Very small or almost no effort. Well, that's probably true if you continue to use surfaces as your rendering target (which is all there was in SDL 1.2 and is still supported in SDL 2.0). But if you do that you can't take advantage of the hardware (GPU) acceleration which is arguably the main benefi...
by RichardRussell
Sun Jun 30, 2019 4:36 pm
Forum: Other programming languages
Topic: Searching for BASIC
Replies: 126
Views: 7040

Re: Searching for BASIC

I would like to see a BASIC that has the structure and syntax of ARM BASIC and adds support for structured data types BBC BASIC for Windows and BBC BASIC for SDL 2.0 fit the bill as regards data structures, as I'm sure you know: DIM myStruct{a, b&, c%, d%%, e#, f$, g(1), h&(2), i%(3), j%%(4), k#(5)...
by RichardRussell
Sun Jun 30, 2019 9:36 am
Forum: Other programming languages
Topic: SB-GFX
Replies: 26
Views: 1549

Re: SB-GFX

For those still interested in a graphics solution for ScriptBasic the SDL GFX extension module might work for you. (64K pallet, alpha channel and frame rate control for animation) So what is this using under the hood? Is it SDL_gfx ? That (or rather SDL2_gfx ) is what BBC BASIC for SDL 2.0 uses for...
by RichardRussell
Wed Jun 26, 2019 4:07 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 68131

Re: ScriptBasic

ScriptBasic wrote:
Wed Jun 26, 2019 3:08 pm
If you don't want to mess with a C compiler, you can still create a standalone executable.
Oh, right, so when is the 'C' approach preferable?
by RichardRussell
Wed Jun 26, 2019 10:50 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 68131

Re: ScriptBasic

this is achieved through creating a C file which then needs to be compiled. Odd. BBC BASIC (for Windows) makes its 'executables' in the same way: it binds a copy of the run-time-engine and a compressed version of the BASIC program (and any libraries and resources it needs) into a single file. But i...
by RichardRussell
Tue Jun 25, 2019 9:57 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 43743

Re: Introduction to BBC BASIC

I've today tried running BBC BASIC under the new Raspbian Buster OS (on a RPi 3B). On a quick test, everything seems to be working as expected; I note that the version of SDL2 at the repository is 2.0.9 compared with 2.0.5 with Raspbian Stretch. Hopefully that augurs well for it running on the new R...
by RichardRussell
Mon Jun 24, 2019 4:14 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 579
Views: 43743

Re: Introduction to BBC BASIC

I have released version 1.04a 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 The VDU 23,24,n| command updates the 'character spacing adjustment' w...
by RichardRussell
Sat Jun 22, 2019 9:18 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 68131

Re: ScriptBasic

If I though ScriptBasic was anything other than the best traditional BASIC on the planet, I would never have invested 15 years of my time into it. I make no judgement on how 'good' it is (anyway, I am biassed!) but surely by no stretch of the imagination can it be called a 'traditional' BASIC? It's...
by RichardRussell
Fri Jun 21, 2019 9:17 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 68131

Re: ScriptBasic

My observation is that "true" open source projects have an author who takes his responsibility for correctness seriously. Mine too. I find the ScriptBasic setup difficult to fathom: AIUI the original author has lost all interest in developing it but won't transfer the scriptbasic.com domain to anyb...
by RichardRussell
Thu Jun 20, 2019 8:40 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 68131

Re: ScriptBasic

High level languages should be cross platform. Agree 100%. The only RPI-specific library supplied with BBC BASIC is gpiolib.bbc , everything else is totally cross-platform including 2D and 3D graphics, sound, music, shader programming, socket access (TCP and UDP), fonts, dialog boxes etc, making it...

Go to advanced search