Go to advanced search

by RichardRussell
Mon Feb 06, 2017 2:12 pm
Forum: Other programming languages
Topic: BBC BASIC for Android
Replies: 42
Views: 7114

Re: BBC BASIC for Android

Must say I am surprised that anyone is paying money for any kind of BASIC today. Well done. This may also surprise you, but I've had some customers tell me that they chose my product specifically because they had to pay (a little) for it, because they know it gives them a legally-backed guarantee o...
by RichardRussell
Mon Feb 06, 2017 1:50 pm
Forum: Other programming languages
Topic: BBC BASIC for Android
Replies: 42
Views: 7114

Re: BBC BASIC for Android

If any GPL libraries are linked in BBC BASIC, then I'm afraid that you must offer the source to anyone who asks. I'm perfectly well aware of that, and I'm somewhat surprised that you think it necessary to draw it to the attention of somebody with my experience, standing and background. BBC BASIC fo...
by RichardRussell
Sun Feb 05, 2017 9:45 pm
Forum: Other programming languages
Topic: BBC BASIC for Android
Replies: 42
Views: 7114

Re: BBC BASIC for Android

Why is it closed source by the way? Presumably it is built on Open Source stuff, compilers, SDL, etc. Well, one reason is that most of the code base is shared with a paid-for commercial product: BBC BASIC for Windows . I've been marketing versions of BBC BASIC that you actually have to pay for (sho...
by RichardRussell
Sun Feb 05, 2017 9:10 pm
Forum: Other programming languages
Topic: BBC BASIC for Android
Replies: 42
Views: 7114

Re: BBC BASIC for Android

See https://wiki.debian.org/HowToPackageForDebian Thank you very much for that. I looked into this approach a while ago, and at that time it appeared that including source code was a requirement for this kind of packaging. Has that changed (or was what I read mistaken)? If there are missing depende...
by RichardRussell
Sun Feb 05, 2017 7:32 pm
Forum: Other programming languages
Topic: BBC BASIC for Android
Replies: 42
Views: 7114

Re: BBC BASIC for Android

It's a bit cheeky asking us for help on how to package it. Don't you think? Why? Is this an inappropriate forum? Where would be a better place to ask? Why not make something on a Raspian that works for you. Zip it and distribute it. With some instructions as to unzip and run it. Job done. If that w...
by RichardRussell
Sun Feb 05, 2017 6:04 pm
Forum: Other programming languages
Topic: BBC BASIC for Android
Replies: 42
Views: 7114

Re: BBC BASIC for Android

yes please to the Raspbian version. I'll look into it, but I have a question. If I do succeed in developing a SDL2-based version of BBC BASIC for the RPi, how can I package and distribute it? For Windows I supply a .zip file that contains everything needed; the end-user just has to extract it to a ...
by RichardRussell
Wed Feb 01, 2017 5:10 pm
Forum: Other programming languages
Topic: BBC BASIC for Android
Replies: 42
Views: 7114

BBC BASIC for Android

This is not directly Raspberry Pi related, but it could become so in the future (see below) and it may well be of interest. The latest release of the Android edition of BBCSDL (my cross-platform implementation of BBC BASIC built on SDL 2.0) now runs on ARM-based as well as x86-based phones and table...
by RichardRussell
Sat Jan 21, 2017 6:57 pm
Forum: Other programming languages
Topic: Porting ARM BASIC to the Raspberry Pi via SDL 2.0
Replies: 89
Views: 21753

Re: Porting ARM BASIC to the Raspberry Pi via SDL 2.0

It is precisely the last language I would use for teaching. Sorry, I missed this comment at the time so my reply is very late, but I would want to point out that BBC BASIC is one of only a few languages that are officially recommended for teaching in schools (in the UK). Take for example the Oxford...
by RichardRussell
Sat Sep 03, 2016 8:23 pm
Forum: Other programming languages
Topic: Porting ARM BASIC to the Raspberry Pi via SDL 2.0
Replies: 89
Views: 21753

Re: Porting ARM BASIC to the Raspberry Pi via SDL 2.0

I can only imagine the work needed to simulate all the SWI Calls, especialy the WIMP calls that a vast amount of BBC BACIS V code uses on RISC OS. That is not at all the objective: this will be an implementation of the BBC BASIC programming language, not a RISC OS emulator! As I mentioned in my ori...
by RichardRussell
Sat Sep 03, 2016 5:09 pm
Forum: Other programming languages
Topic: Porting ARM BASIC to the Raspberry Pi via SDL 2.0
Replies: 89
Views: 21753

Porting ARM BASIC to the Raspberry Pi via SDL 2.0

As many of you will know, I have recently ported my x86 (IA-32) version of BBC BASIC to Linux , Mac OS-X and Android by means of the SDL (Simple DirectMedia Layer) cross-platform library. To achieve this I have written, in C, an almost complete emulation of the BBC VDU drivers ('oswrch'), including ...
by RichardRussell
Fri Feb 07, 2014 1:08 pm
Forum: RISCOS
Topic: BBC Basic compilable?
Replies: 33
Views: 11819

Re: BBC Basic compilable?

I am not sure about BB4W, Richard, but ARM BASIC does more pre-processing than that. The tokenisation is usually done on file saving [1], but at runtime it removes unwanted spaces, REMs and blank lines. BB4W does the same when compiling (by default; it's configurable). The model is rather different...
by RichardRussell
Fri Feb 07, 2014 9:36 am
Forum: RISCOS
Topic: BBC Basic compilable?
Replies: 33
Views: 11819

Re: BBC Basic compilable?

A pure interpreter would always interpret each line as it came to it (with a performance hit to boot). BBC BASIC is a little better than that in that (at least) it "tokenises" recognised keywords before they're run - so that when interpreting a line it doesn't have to deal with a five character key...
by RichardRussell
Tue Feb 04, 2014 11:06 pm
Forum: RISCOS
Topic: BBC Basic compilable?
Replies: 33
Views: 11819

Re: BBC Basic compilable?

No-one has mentioned the reason that BBC Basic is effectively not a compilable language: it has the "EVAL" statement Indeed so. The assembler also poses difficulties for a would-be compiler - you can't 'pre assemble' at compile time because the 'source code' may well be dependent on values calculat...
by RichardRussell
Thu Jan 03, 2013 10:34 pm
Forum: RISCOS
Topic: BBC Basic compilable?
Replies: 33
Views: 11819

Re: BBC Basic compilable?

The usual criticism is that it allows the user to write 'Spaghetti' code But so does C (both C and BASIC have a GOTO statement), yet C doesn't tend to attract the same criticism! In both languages it's entirely up to the programmer whether he chooses to write structured code or not. In fact you can...
by RichardRussell
Wed Jan 02, 2013 12:57 pm
Forum: RISCOS
Topic: BBC Basic compilable?
Replies: 33
Views: 11819

Re: BBC Basic compilable?

I personally cannot understand the apparent loathing with which BASIC appears to be regarded in programming circles It depends on what you mean by "programming circles". As far as the teaching of programming is concerned, BBC BASIC is recommended by the OCR examining board for their GCSE qualificat...
by RichardRussell
Sat Dec 29, 2012 3:16 pm
Forum: RISCOS
Topic: BBC Basic compilable?
Replies: 33
Views: 11819

Re: BBC Basic compilable?

code assembled or compiled to executable code should always run faster than the interpreted alternative Of course that is (mostly) true, but it's comparatively rare for it to be important. Commonly the overall speed of a program is determined by its I/O, for example graphics rendering may be the li...
by RichardRussell
Sat Dec 29, 2012 9:55 am
Forum: RISCOS
Topic: BBC Basic compilable?
Replies: 33
Views: 11819

Re: BBC Basic compilable?

As an afterword, remember that there are other versions of BBC BASIC for many machines - do a search. Programs written with these will only be compatible at the very simplest level. If you run Jonathan Harston's BASICplus the compatibility with (in particular) BBC BASIC for Windows is greatly impro...
by RichardRussell
Sat Dec 29, 2012 9:44 am
Forum: RISCOS
Topic: BBC Basic compilable?
Replies: 33
Views: 11819

Re: BBC Basic compilable?

Just as a clarification of terminology, 'compiling' in the sense that the OP uses it doesn't necessarily mean converting BASIC to machine code. He refers explicitly to being "compiled to standalone executables" and of course it's perfectly possible to create a 'standalone executable' whilst still be...
by RichardRussell
Thu Nov 15, 2012 11:29 pm
Forum: RISCOS
Topic: BBC BASIC & Rosetta Code
Replies: 21
Views: 4787

Re: BBC BASIC & Rosetta Code

Mainly, developers include libraries within their applications That's not necessarily such a bad idea, because it guarantees that the version of the library used by the application is the one with which it was developed and tested. On the other hand it means that if a bug in a library has subsequen...
by RichardRussell
Thu Nov 15, 2012 11:41 am
Forum: RISCOS
Topic: BBC BASIC & Rosetta Code
Replies: 21
Views: 4787

Re: BBC BASIC & Rosetta Code

You cannot count the keyword code, because that is a shared resource To create a 'shared resource' in Windows one would have to make it a DLL. From time to time I've been asked whether it would be possible to compile BBC BASIC code to a DLL, but it would be difficult to meet the requirement of bein...
by RichardRussell
Wed Nov 14, 2012 10:54 pm
Forum: RISCOS
Topic: BBC BASIC & Rosetta Code
Replies: 21
Views: 4787

Re: BBC BASIC & Rosetta Code

A keyword written in machine code can be an order of magnitude or more faster and smaller than the equivalent BASIC code Faster I would of course believe, but smaller? In my experience tokenised and crunched BASIC code is usually more compact than the equivalent machine code. But either way I don't...
by RichardRussell
Sun Nov 11, 2012 11:06 pm
Forum: RISCOS
Topic: BBC BASIC & Rosetta Code
Replies: 21
Views: 4787

Re: BBC BASIC & Rosetta Code

To be brief, Basalt has dozens of function keywords I guess that's one of the main reasons why I'm not enthusiastic about it. One of the great strengths of BBC BASIC is that it isn't bloated like so many BASIC dialects are; only the essential and most commonly used functions are built into the core...
by RichardRussell
Sun Nov 11, 2012 5:54 pm
Forum: RISCOS
Topic: BBC BASIC & Rosetta Code
Replies: 21
Views: 4787

Re: BBC BASIC & Rosetta Code

I have not seen a Rosetta task using interrupts yet - could you suggest one?
These BB4W solutions use timer interrupts:
http://rosettacode.org/wiki/Atomic_updates#BBC_BASIC
http://rosettacode.org/wiki/Events#BBC_BASIC
http://rosettacode.org/wiki/Metered_con ... #BBC_BASIC

Richard.
by RichardRussell
Sun Nov 11, 2012 5:38 pm
Forum: RISCOS
Topic: BBC BASIC & Rosetta Code
Replies: 21
Views: 4787

Re: BBC BASIC & Rosetta Code

You have missed a category: 4. Those that can be adapted to work with ARM BASIC with Basalt extensions. I simplified the list in other ways too. For example those solutions that can be adapted to run under Brandy but not ARM BASIC (e.g. because of the use of long strings) or ARM BASIC but not Brand...
by RichardRussell
Sat Nov 10, 2012 11:49 pm
Forum: RISCOS
Topic: BBC BASIC & Rosetta Code
Replies: 21
Views: 4787

Re: BBC BASIC & Rosetta Code

Any BB4W extensions used in Rosetta code make them non-BBC Basic and it is those examples that should be labelled as something other than BBC Basic! Completely untrue. The 'Wilson' and 'Russell' branches of BBC BASIC are equally deserving of being called BBC BASIC! The specification was after all d...

Go to advanced search