Go to advanced search

by John Spikowski
Thu Jul 25, 2019 3:32 am
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1764
Views: 94473

Re: Project Digital Apocalypse Not Now

Here is the ScriptBasic modified @ejolson anagram. (tail -n 10000) flen = FILELEN("tail.dat") OPEN "tail.dat" FOR INPUT AS #1 fraw = INPUT(flen, 1) SPLITA fraw BY "\n" TO wa CLOSE(1) a1 = ASC("a") - 1 a2 = ASC("0") n0 = 0 FOR i = 0 TO UBOUND(wa) SPLITA STRING(27, "0") BY "" TO v0 j = 0 2065: IF j >=...
by John Spikowski
Wed Jul 24, 2019 10:50 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1764
Views: 94473

Re: Project Digital Apocalypse Not Now

We look forward to your ScriptBasic solution.
I was hoping @ejolson was going to use ScriptBasic for his example due to his associative array comment.
by John Spikowski
Wed Jul 24, 2019 5:27 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1764
Views: 94473

Re: Project Digital Apocalypse Not Now

This challenge seems to favor languages with built in functions like sort , islower, ...

The same bias was shown with fibo and languages with BIGINT support.

Let's rename this thread "Obscure challenges with the goal to define Infinity".
by John Spikowski
Tue Jul 23, 2019 4:31 pm
Forum: General programming discussion
Topic: Liberation through Computer Literacy
Replies: 1764
Views: 94473

Re: Project Digital Apocalypse Not Now

Heater,

And you gave up crossword puzzles for this?
by John Spikowski
Tue Jul 23, 2019 3:49 am
Forum: Other programming languages
Topic: UKB Extension Module
Replies: 4
Views: 1517

Re: UKB Extension Module

UKB 3D Graph ' 3D Graph Demo IMPORT ukb.bas CONST SDLK_ESCAPE = 27 UKB::OPEN "ScriptBasic UKB 3D Graph - Raspberry Pi" t1 = UKB::TIME() UKB::MODE 31 UKB::ORIGIN 800, 600 xlow = -10 xhigh = 10 ylow = -10 yhigh = 10 depth = 10 xscale = 30 yscale = 12 c = -4000 FOR x = xlow TO xhigh UKB::MOVE xscale *...
by John Spikowski
Tue Jul 23, 2019 3:42 am
Forum: Other programming languages
Topic: UKB Extension Module
Replies: 4
Views: 1517

Re: UKB Extension Module

UKB UFO ' UFO IMPORT ukb.bas UKB::OPEN "ScriptBasic UKB UFO - Raspberry PI" t1 = UKB::TIME() UKB::MODE 31 UKB::ORIGIN 800, 600 xs = 2 ys = 2 UKB::GCOL 0, 14 UKB::OFF a = 700 b = A * A c = 600 FOR x = 0 TO a STEP xs s = x * x p = SQR(b - s) FOR i = -p TO p STEP 6 * ys r = SQR(s + i * i) / a q = (r -...
by John Spikowski
Tue Jul 23, 2019 3:34 am
Forum: Other programming languages
Topic: UKB Extension Module
Replies: 4
Views: 1517

Re: UKB Extension Module

Attached is the UKB extension module for those that would like to try BBC / Brandy graphic based programs with ScriptBasic.

ukb.so - Install this in your ScriptBasic modules directory.

ukb.bas - Install this in your ScriptBasic include directory.

SDL 1.2 is a required dependency.
by John Spikowski
Tue Jul 23, 2019 1:29 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

I'm confused when you say pathname issues. What is so strange about RISC OS that doesn't fit the Linux or Windows pathing structure? You need no dependencies to compile scriba . Look at the Makefile setup creates and extract out the part that builds scriba. We had to add a gcc option for ARM so Scri...
by John Spikowski
Tue Jul 23, 2019 12:12 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

David,

Can you post your open issues with getting scriba to compile on RISC OS? I may be able to offer suggestions if I knew what the issues are.

Were you able to get ScriptBasic to compile on Raspbian?
by John Spikowski
Mon Jul 22, 2019 7:33 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

I would run ScriptBasic in single threaded mode and forgo the thread support. I'm not a big emulation fan.
by John Spikowski
Mon Jul 22, 2019 5:12 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

There is no porting of ScriptBaic code between platforms. The same code runs everywhere.
by John Spikowski
Mon Jul 22, 2019 5:04 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

I hope ScriptBasic becomes a general purpose core BASIC that can morph into what you need. While I agree that to be true. I must add that there will also be features of ARM BASIC that will not be present that are very to RISC OS programmers. Whatever is missing you can add to your UKB extension modu...
by John Spikowski
Mon Jul 22, 2019 4:02 pm
Forum: General programming discussion
Topic: Comparing Interpreted Language Speed.
Replies: 57
Views: 6662

Re: Comparing Interpreted Language Speed.

Can't wait to see how ScriptBasic compares on RISC OS.

Thanks @scruss for your efforts!
by John Spikowski
Mon Jul 22, 2019 3:29 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

If you can get ScriptBasic to run on RISC OS, you will have a full featured BASIC without the limitations you have with your UK BASIC family of interpreters.

ScriptBasic was born and raised in Budapest, Hungary.
by John Spikowski
Mon Jul 22, 2019 4:28 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

I'm curious how ScriptBasic will compare performance wise and code compatiblity with BBC BASIC on RISC OS.
by John Spikowski
Mon Jul 22, 2019 3:52 am
Forum: Other programming languages
Topic: UKB Extension Module
Replies: 4
Views: 1517

UKB Extension Module

The UKB extension module is a fork of the Brandy graphics primitives library. If you would like to take a maintainer role in this extension module please let me know. ' Fern IMPORT ukb.bas UKB::OPEN "ScriptBasic UKB Fern" t1 = UKB::TIME() UKB::MODE 31 UKB::ORIGIN 200, 100 UKB::OFF UKB::GCOL 0, 10 x ...
by John Spikowski
Mon Jul 22, 2019 2:40 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

I hope that John gets someone to do the Raspian side of things.
I might reintroduce the extension module as UKB and see if anyone wants to run with it. I personally have no interest in UK style BASIC graphics library.
by John Spikowski
Mon Jul 22, 2019 2:24 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

Does Python run on RISC OS?
Oh and one more really important thing about RISC OS Pi: press Ctrl-F12 to get a command window, and then type BASIC scriba.  If you are as old as I am, that will bring tears to your eyes.
by John Spikowski
Mon Jul 22, 2019 1:41 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

ScriptBasic core has good a chance of running on RISC OS from what I'm hearing from David.

My C BASIC wrapped extension modules may be an issue if gcc pre-processor support isn't available. The native C source can be generated with gcc -E.
by John Spikowski
Sun Jul 21, 2019 11:41 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

But even so, ScriptBasic is never going to run under RISC OS. Because, other reasons..
NEVER is a silly word I don't take seriously.
by John Spikowski
Sun Jul 21, 2019 11:31 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

Once again you can run setup without added dependencies and it will build what you need.

MySQL, cURL, ODBC, .. are all optional extensions that come with the standard ScriptBasic distribution.
by John Spikowski
Sun Jul 21, 2019 11:16 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

To build scriba you don't need the dependencies for extension modules.

Run setup --help for info to control your build options.

The reason I suggested building on Raspbian first is you can grab sections of the generated Makefile to build what you want on RISC OS.
by John Spikowski
Sun Jul 21, 2019 10:54 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 582
Views: 49083

Re: Introduction to BBC BASIC

David, It seems you have no interest in Raspbian so I've given up hope you would be the guy to give the Brandy extension module a refresh for RPi users. It will be interesting to see if you can get ScriptBasic running on RISC OS. ScriptBasic runs great on ReactOS if a Windows alternative excites you.
by John Spikowski
Sun Jul 21, 2019 9:48 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 582
Views: 49083

Re: Introduction to BBC BASIC

Amazon needs to sponsor an archival bank for software that will evaporate if permanent storage isn't found.
by John Spikowski
Sun Jul 21, 2019 9:19 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1399
Views: 73541

Re: ScriptBasic

Works well for me. I'm not so picky when it comes to recreating the past.

Sitting on the edge of my chair waiting to see something happen.

Go to advanced search