What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
hungnguyengia
Posts: 65
Joined: Jul 01, 2021 7:53

What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by hungnguyengia »

I'm confused. I readed some threads on the ThinBASIC forum but it's still not clear for me.
marcov
Posts: 3452
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by marcov »

They all end in -Basic. That is about it I think
fxm
Moderator
Posts: 12066
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by fxm »

ThinBasic is a Basic-like language interpreter and now pseudo-compiler. ThinBasic was born as a scripting language to automate jobs and to give the user a complete instrument for simple programming tasks, but then has quickly evolved into a fully featured programming language. Its syntax is fundamently Basic-like but it's easy to notice some C++ and VisualBasic for DOS influences. With ThinBasic the user may take a good control over the machine, create GUI or console programs, high-speed OpenGl games, task automations and CGI-web programming, and if the features of ThinBasic aren't enought, the user may access to the whole set of Windows API. The language has the familiar structures, commands and statements of Basic so it is easy to start with it, although you must take a little more to understand the inline C++ structures if you are not used to. ThinBasic has also all the major controls to build forms such as buttons, textboxes, listboxes, combos, etc. ThinBasic comes with ThinAir a good IDE but it does not have a form editor. Recently ThinBasic added the ThinBundle utility which generates stand-alone executables merging into one file the script and the needed DLLs. The resulting EXE has a small runtime overhead. Althought it is an interpreted language it is surprinsingly fast. Thinbasic is very well supported and constantly improved by its authors and now it may release on a solid community of enthusiasts. ThinBasic installation package has a lot of examples to learn from and a good tutorial.
OxygenBasic (O2H) is a Just-In-Time compiler assembler that compiles to x86 machine code, deployed in a single DLL. It is an extension of the O2 assembler. This implementation can be embedded in any application to provide high performance programmability. The compiler can also generate conventional executables and dynamic link libraries (DLL). Oxygen supports Object Oriented Programming with multiple inheritance and also single inheritance modes, user-defined operators and operator sets for use with complex numbers, matrices, vectors, sets and other specialised forms. It can also compile & execute strings of source code at run time with its built in 'compile()' function, opening new possibilities for functional programming. The built in function set is small, but contains the necessary tools to build class / function libraries to any scale. Oxygen Basic can read sufficient C syntax to deal with most C headers directly, eliminating the need to translate them into Basic. Oxygen Basic syntax is more similar di Visual Basic syntax with some C influences. Compiled EXEs are extremely fast and their size start from 6kb.
hungnguyengia
Posts: 65
Joined: Jul 01, 2021 7:53

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by hungnguyengia »

I think ThinBASIC is being reimplemented in FreeBASIC and it's able to interop with FreeBASIC (has FreeBASIC code in ThinBASIC source file):

https://www.thinbasic.com/community/con ... c-1-10-8-x
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by aurelVZAB »

No is not .
Last edited by aurelVZAB on Mar 13, 2023 8:12, edited 1 time in total.
RNBW
Posts: 264
Joined: Apr 11, 2015 11:06
Location: UK

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by RNBW »

When I try to download ThinBasic my current virus checker rejects it. This has also been the case with previous virus checkers.
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by aurelVZAB »

..and your virus checker is ?
..must be something based on Avira ..full of false positives
hungnguyengia
Posts: 65
Joined: Jul 01, 2021 7:53

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by hungnguyengia »

RNBW wrote:When I try to download ThinBasic my current virus checker rejects it. This has also been the case with previous virus checkers.
I only believe virustotal.
hungnguyengia
Posts: 65
Joined: Jul 01, 2021 7:53

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by hungnguyengia »

aurelVZAB wrote:No is not .
ThinBasic is not open source , it is written in PowerBasic and is almost clone of Powerbasic
Recently due the fact that Powerbasic is dead and only 32bit ..looks like author decide to try made it in FreeBasic.
OxygenBasic is at first written in FreeBasic..now is selfcompiled which means that is compiled using Oxygenbasic.
is now clear for you?
ThinBASIC originally written by PowerBASIC but this is no longer developed and 32 bit only, so ThinBASIC author decided to rewrite ThinBASIC in FreeBASIC but very slowly, first by adding the ability to interop with FreeBASIC by being able to have FreeBASIC code inside ThinBASIC source file.

OxygenBASIC originally written in FreeBASIC but now being self-hosted (able to compile itself) and it seems it could interop with ThinBASIC, too. OxygenBASIC seems to be able to call ThinBASIC functions according to a ThinBASIC forum thread. It seems the developer of OxygenBASIC is also a forum member of the ThinBASIC forum and it seems OxygenBASIC is very closely integrated with ThinBASIC, too.

Is my summary right?
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by aurelVZAB »

Not exactly.
by the way ..why all this investigation?
Last edited by aurelVZAB on Mar 13, 2023 8:13, edited 1 time in total.
Lost Zergling
Posts: 532
Joined: Dec 02, 2011 22:51
Location: France

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by Lost Zergling »

It seems to me that it is a good thing that there are also copyrighted Basics, till the licence is clear enought. It is a complementary offer useful for the popularization of the language. The concept of interoperability via automated compilation is interesting, it marks the recognition of the relevance of FreeBasic technical solutions, even thought reciprocity might not be possible. I take this post to remind that the terms of the license Cecill-C (lzle 'OpenWare' option) involve the persistence of opensource rights as well as exclusivity granted to fbc compiler.
RNBW
Posts: 264
Joined: Apr 11, 2015 11:06
Location: UK

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by RNBW »

aurelVZAB wrote:..and your virus checker is ?
..must be something based on Avira ..full of false positives
My virus checker is ESET. It is usually very reliable. DOESN'T have much in the way of false positives.
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by aurelVZAB »

OK i agree ESET is not bad
Last edited by aurelVZAB on Mar 13, 2023 8:13, edited 1 time in total.
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by aurelVZAB »

by the way ..why all this investigation?
yes ..curiosity ?
Lost Zergling
Posts: 532
Joined: Dec 02, 2011 22:51
Location: France

Re: What is the relationship between FreeBASIC, ThinBASIC and OxygenBASIC?

Post by Lost Zergling »

@aurelVZAB. I was talking, specifically, about my lzle project licence (you can find it in 'projects' topic, search LZLE) wich is saying 'must be compiled using FB'. The important point is not so the copyright itself but the right to use specifications. When you use copyrighted material not knowing the right to use, your right to use (licence) may be canceled at any moment, depending the decision the owner of the copyright. That is why a license specifying the exact using rights modality shall always be mentionned. Thus, the owner the copyrighted material must assume it is original work, meaning authors names. The GPL is a warranty you have the authorization from the author(s) (use and distribute), but is not the only licence. What we are talking here is compilers, an explicit licence shall be mentionned, and, obviously, mandatory and easy to find. GPL related is not implicit. I do not like downloading not knowing previously the licence terms : downloading can sometime be considered as an acceptance of the licence. It is like signing a blank paper, meaning you assume you will not have revendications on the knowledge related.
As long as you want to keep your freedom, it is sometime better not having a look to existing ideas.
Post Reply