PDA

View Full Version : thinbasic not knowing O2 any more?



ReneMiner
17-01-2025, 10:46
in the last time i use oxygen mostly "pure" but today i wanted to use the advantages of the both combined and started some studies and came to the samplefiles in thinbasic
just for check and inspiration.

But what happened? Does thinBasic not know any o2-functions any more? I tried to run dozens of o2-samples shipped with thinbasic. Thinbasic bugs out and suggests me to write

uses "oxygen"

on top of my script ??? its within every sample
o2_asmo is not recognized iin none of the samples
exceptions;
ConstData\constants.tBasic : here thinair complains end rawtext without beginning - but its there,
replacing it with quotes... -> o2_asmo is not recognized
OxygenAsDLL.tBasic: -> o2_Basic not recogized

None of the samples runs here :(
in many cases thinair has not enough knowledge. It should not be allowed to revoke the execution because of some bug it claims to have detected. Mostly that are bugs of the bug-detector
like it refuses to run any oxygen-programs that hold statements that are not 100% thinbasic-conform.
E.g.
Select whatever (works without a keyword "case")
If (no "then" follows)
only punctuations, delimiters, whitespace- but not any word-char in a line (not line continuation of a previous line in effect nor any unclosed open parens waitiing for its closure)
are comments, not a reason to error "Invalid delimiter"
it should not complain for

▛▀▀▀▀▀▀▀▀▀▀▀▀▜
▌ any unknown, ▌
▌ non-wordchar- ▌
▌ characters ▌
▙▄▄▄▄▄▄▄▄▄▄▄▄▟

but tolerate such as comments
or interpret it for example as unciode resources when new lines begin with unqiue numerals


123 ifreiueirukdodh jjjdso
124 pijfefhe33ßd-.öp -##======
125 ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
126 \m (
hey
i am \( bracky\)
bracket
the
multiliner
)



Hmm :( thinbasic needs a makeover

Is it possible to embed oxygenbasic to visual basic 6.0 ? is there any approach that permits to use the GUI designed in vb6 (since it's unmanaged) or can oxygen be used within any later visual-studio-edition to make use of its GUI-designer?

Important without the microsoftish-heavy-weight-.net-burden, without codelines theirs length forces users permanently to scroll from L.A. to N.Y. and back in order to read these.
I hate this kind of coding and prefer when Identifiers are not dozens of dot-concatenated verbs that only differ in 3 of 125 chars and where it requires to waste so much time
on repeatedly reading the variables names that are barely to remember or to differ only after examination of an area 2 or more screens left or right from the center.
I like much more those meaningful little syllables with 2 or 3 chars that to type takes a second and where a typo is to find on first sight.

ErosOlmi
18-01-2025, 14:06
Ciao,

RAWTEXT is deprecated and maybe can create problems in some scripts.
In future thinBasic versions I will remove completely.

On my computer most of the OxygenBasic scrips are working.
Can you attach here a not working script and I will have a look.

Ciao
Eros

Charles Pegge
22-01-2025, 19:10
Hi Eros & ReneMiner,

Here is the latest thinBasicOxygen.

It includes all the maintained o2 scripts in the examples folder. I think you will find a lot of the older scripts are now defunct.

Are you going for 64bit thinBasic?. If so, I can provide 64bit DLLs.

ErosOlmi
27-01-2025, 13:14
Thanks a lot Charles!
I will test this week as soon as I will have some time. Very high demanding week at work.

64bit ... me and Petr are considering how to move out from PowerBasic but so far we didn't find any way we like or way we get pleasure in programming.
thinBasic is a passion driven project, so we have to find pleasure in developing it.
Rust, C, C++, FreeBasic, PureBasic, ... for some reason PowerBasic was a drug!
Anyway, it is time to move on I think. Maybe FreeBasic is the closest way.

Charles Pegge
28-01-2025, 00:52
I enjoyed coding in FreeBasic, and used it to compile Oxygen from 2008 to 2018 when Oxygen became self-compiled. (My passion is self-sufficiency :) ) .FreeBasic has very strict typing which can get in the way, but a few lines of Assembler in the right places, resolves this problem.

Joe Caverly
28-01-2025, 01:45
Anyway, it is time to move on I think. Maybe FreeBasic is the closest way.

Just wondering if you have thought of 64-bit PureBasic (https://www.purebasic.com/).

It would be great to have a 64-bit PureBasic interpreter,
just as you have developed a 32-bit PowerBasic interpreter (thinBASIC).

I have written plugins for Take Command Console (https://jpsoft.com/) using PowerBASIC,
but had to switch to 64-bit PureBasic,
when Take Command Console became 64-bit only.

Yes, some things are done differently in PureBasic
than they were done in PowerBASIC,
but the PureBasic forum is a knowledge base (https://www.purebasic.fr/english/).

Joe

Michael Hartlef
28-01-2025, 19:17
The BASIC landscape for sure gets smaller and smaller each month. PowerBasic gone, the official Blitz Range of Basics after the death of M.S. defnitely gone, AppGameKit gone, SpiderBasic barely gets an update. PureBasic gets more but who knows for how long. Last Update to FreeBasic was at the End of 2023!!! Definitely a hard choice to make if you want a BASIC derivate to be base for ThinBasic.

Sure it would be great to run thinBasic on Linux and/or Macos but then you open a whole can of worms regarding support of cross platform APIs. Nevermind the distribution of TB on Macos.

Lionheart008
29-01-2025, 19:41
We are a dying species. There are hardly any new basic programmers.
Artificial intelligence replaces three quarters of today's programmers.
Today's basic programs should be open source and free. Be quick and easy to use regardless of platform. Who today still does this complex,
long-term work out of passion? In addition, the age of basic userss a problem today..
Freebasic is definitely a good choice, good forum, lots of wiki examples
and help, update 1.2.00 is coming soon
I needed for my hobby compiler three years during corona time. all without KI.

ErosOlmi
29-01-2025, 23:35
Just wondering if you have thought of 64-bit PureBasic (https://www.purebasic.com/).
I've purchased PureBasic many years ago. Its license is lifetime.
I've it installed in my dev computer

Tried many times to start something serious but I had no good feeling.
Language is great and powerful, community is great.

But for some reasons I cannot explain my feeling was not one of joy while I was programming with it.
Maybe the editor, maybe the dotted notation for variable type, ... do not know

ErosOlmi
29-01-2025, 23:38
The BASIC landscape for sure gets smaller and smaller each month. PowerBasic gone, the official Blitz Range of Basics after the death of M.S. defnitely gone, AppGameKit gone, SpiderBasic barely gets an update. PureBasic gets more but who knows for how long. Last Update to FreeBasic was at the End of 2023!!! Definitely a hard choice to make if you want a BASIC derivate to be base for ThinBasic.

Sure it would be great to run thinBasic on Linux and/or Macos but then you open a whole can of worms regarding support of cross platform APIs. Nevermind the distribution of TB on Macos.

Exactly.
A the moment my only motivation for changing direction is driven by 64bit development.