Go to advanced search

by DavidS
Sat Jul 20, 2019 2:22 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 435
Views: 17491

Re: Introduction to BBC BASIC

ScriptBasic wrote:
Sat Jul 20, 2019 12:11 am
Are there any array size or indecie limitations with BBC BASIC / Brandy?

I wouldn't use a BASIC that had a 64KB string length limitation.
No limits for BBC BASIC V/VI. Only limitted by available memory. I guess technically you could not exceed 2GB arrays, though that is not much of a limit.
by DavidS
Sat Jul 20, 2019 2:18 am
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 186
Views: 4436

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

Then allow for extra optimizations to be applied only to portions of the code that it makes good since to so do with, as specified by the programmer. GCC can do that now. The programmer may specify that a function is either "hot" or "cold". The branch prediction stuff for cold is interesting. Not q...
by DavidS
Fri Jul 19, 2019 10:16 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 186
Views: 4436

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

For saving electricity we could do a better balancing act than current compilers. Selective optimization, based on what is going to make the most difference. And have a means for the programmer to specify where extra optimizations should be used. For the rest of the code just do some simple optimiza...
by DavidS
Fri Jul 19, 2019 10:08 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 186
Views: 4436

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

For majesty one should look to C++ and Java. After the digital apocalypse when all programs are written using deep-learning convolutional neural networks, the C++ and Java programming languages will replace the museum exhibits of ornate silver and porcelain tea sets which are presently used to demo...
by DavidS
Fri Jul 19, 2019 9:57 pm
Forum: RISCOS
Topic: Your Pi Zero config
Replies: 2
Views: 75

Re: Your Pi Zero config

Is GPU size important for something? How do you watch YT videos? Convert them to MPEG 2 + It can do 720p max with no acceleration anywhere or it goes more? What is your recommended config.txt? Is there CZ QWERTY keyboard? Not Czech just (QWERTZ)? For the keyboard look in configure under keyboard . ...
by DavidS
Fri Jul 19, 2019 9:47 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1224
Views: 40936

Re: ScriptBasic

@ScriptBasic:
Could I get that git url for the main ScriptBasic source?

Or am I going to have to load up a JS browser to extract the url?
by DavidS
Fri Jul 19, 2019 9:44 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 435
Views: 17491

Re: Introduction to BBC BASIC

I couldn't write programs without structures, private variables, indirect function calls, long strings and all the other language enhancements that my versions have. I think both Richard and David are aware of my Basalt (BASIC Alternative keywords) module with all those extensions and more for ARM ...
by DavidS
Fri Jul 19, 2019 4:12 am
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 53
Views: 1322

Re: Comparing Interpreted Language Speed.

What, no screen shot of this momentous occasion ? You can, frankly, away an' run up ma humph. Even if I did know how to take screenshots on RISC OS, I was just running in the full-screen console thing. There's no GUI to do anything to, and no other tasks around to grab a picture. You have to even c...
by DavidS
Fri Jul 19, 2019 3:48 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1224
Views: 40936

Re: ScriptBasic

2. Must support POSIX standards That may take some extra work. UnixLib on RISC OS is not exactly complete (it is only designed to aid in porting software). Though I have decided it is worthwhile to get going on the RISC OS target. I have already got the SDL dev libraries installed, as well as the t...
by DavidS
Thu Jul 18, 2019 10:20 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 435
Views: 17491

Re: Introduction to BBC BASIC

Very nice Richard. I agree with much of what you say. I have been pushing for Structures in BBC BASIC V/VI for a long time. I have also been pushing for an OpenGL module for RISC OS that exports an SWI interface so we can use it from the likes of BBC BASIC. Indirection of procedures has long been in...
by DavidS
Thu Jul 18, 2019 10:10 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1224
Views: 40936

Re: ScriptBasic

Is there by any chance an archive of the current source? If not that is ok.

Also should I join the allbasic forums if I decide to take this up?
by DavidS
Thu Jul 18, 2019 10:06 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1224
Views: 40936

Re: ScriptBasic

Let me know when you get ScriptBasic going on your RPi. I will push the Brandy extension module source to the sandbox. David, Before we kick this off I want to be up front and say this is your baby going forward. I will setup a project in the sandbox and make you the maintainer. If you're good with...
by DavidS
Thu Jul 18, 2019 3:59 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 53
Views: 1322

Re: Comparing Interpreted Language Speed.

Is it so that after all this time and debate we still don't have an execution time for the Big Fibo code BBC BASIC on RISC OS? I keep coming across hints that somebody has actually managed to get it to run. So far I have not seen any results posted. Did I miss it? Sorry about that, I thought I had ...
by DavidS
Thu Jul 18, 2019 3:51 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 435
Views: 17491

Re: Introduction to BBC BASIC

Give it a try and see for yourself. Whatever isn"t fast enough, create a C extension module for it. Can not do. I do not currently have the SDL 1.2 development libraries for RISC OS on my system, so a no go on compiling ScriptBasic. Perhaps we should give this thread back to RichardRussells BBC BAS...
by DavidS
Thu Jul 18, 2019 3:44 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1224
Views: 40936

Re: ScriptBasic

The Brandy extension module is only the graphics portion of the language. You are still using ScriptBasic The Brandy extension module is a wrapper for a generic shared object I created that can be used by any language. I did a few BaCon examples. I would like to see the Brandy and SDL_gfx work toge...
by DavidS
Thu Jul 18, 2019 3:37 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 186
Views: 4436

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

The best thing to do if you only have a C compiler is to use it to create a higher level language, or domain specific language, then use that to solve your actual problem. Enter, Javascript, Python even BASIC... All third generation languages (including C), so none is any higer level than C. You an...
by DavidS
Thu Jul 18, 2019 3:31 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 186
Views: 4436

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

Hey, what is the problem with name mangling in C++? One almost never has to even look at mangled names in C++. No more so than one ever has to look at the assembler code it produces. The problem is that it was a kludge to deal with two issues of the time. The two issues are the fact that C-Front tr...
by DavidS
Thu Jul 18, 2019 3:11 am
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 186
Views: 4436

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

I have a few older books on C++, back when it was a good language, before STL existed (none of the books mention templates at all). Unfortunately C++ took a terrible turn to extreme feature creap. I have nothing against the C++ that was C with classes and overloading for operators and functions. Tha...
by DavidS
Thu Jul 18, 2019 3:01 am
Forum: Off topic discussion
Topic: 1TB microSD Card is real!
Replies: 16
Views: 445

Re: 1TB microSD Card is real!

Interesting. I have yet to find a use for more than a third of a 64GB card (still 40GB free), so may be a bit before that finds a use here.
by DavidS
Thu Jul 18, 2019 2:38 am
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 53
Views: 1322

Re: Comparing Interpreted Language Speed.

Well just comment out that assignment and make sure that the next slot is large enough for the required DIM's. Um, both you and Soruk use the term next slot , and I have no idea what it could mean. Slots are where you put interface cards in my world. Can you please explain? I've used RISC OS for a ...
by DavidS
Thu Jul 18, 2019 2:30 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1224
Views: 40936

Re: ScriptBasic

About the BrandyBASIC extensions to ScriptBasic, do they support tokenized BBC BASIC V code (like normal Brandy BASIC does)? Also what features are missing (if you know).
by DavidS
Thu Jul 18, 2019 2:28 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 435
Views: 17491

Re: Introduction to BBC BASIC

ScriptBasic wrote:
Thu Jul 18, 2019 12:53 am
I could bring back the Brandy extension module and you could include it in your comparisons of BBC BASIC like variations.
Sounds good to me. Is ScriptBasic generally fast?
by DavidS
Wed Jul 17, 2019 10:38 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 435
Views: 17491

Re: Introduction to BBC BASIC

If I decide to start a BBC BASIC to BBC BASIC Performance Comparison how many will contrbute for the 4 versions of BBC BASIC? My versions of BBC BASIC have never been particularly fast. I have concentrated on expanding the capabilities of the language, with speed a lower priority. Recently my effor...
by DavidS
Wed Jul 17, 2019 7:08 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 435
Views: 17491

Re: Introduction to BBC BASIC

Who cares which retro BASIC is fastest? Let's just be thankful there are those with enough spare time on their hands to keep them running. It is all in good fun. The only one that really matters on speed (because of its use) is BBC BASIC VI (and BBC BASIC V). Those are already pretty fast. It is al...
by DavidS
Wed Jul 17, 2019 7:01 pm
Forum: C/C++
Topic: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?
Replies: 186
Views: 4436

Re: I dont get it... Why is everyone from science schools so obsessed with Perl and Python when we got C?

Heater wrote:
Tue Jul 16, 2019 7:13 pm
Suggest upgrade to C++

:)
Correction :) :
Corrected wrote: Suggest downgrade to C++

:)
:)

Go to advanced search