123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|591|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> Thin Basic

Fri, 10 Apr 2009, 08:49
Hotshot
Here the link for Thin Basic

www.thinbasic.com/index.php?option=com_frontpage&Itemid=1

It is very interesting and it is free to download.
Fri, 10 Apr 2009, 09:14
Jayenkai
As an interpreter, it loads scripts amazingly fast.
Double click on a .tBasic file, and blammo.. Proggy running.
Nice!

The "Compiler" cheats in the same way that most interpreters would.
The calculator example script compiles to a 374Kb exe file.
You double click that, and it decompresses the interpreter, a couple of DLLs and the script. Then runs it all.
It's not that bad, I suppose.

Calculator Example

I'll have a play with it, and see if I can make any funstuffs.

-=-=-
''Load, Next List!''
Fri, 10 Apr 2009, 09:29
JL235
does it place all the stuff somewhere on your disk, or is the decompression all hidden?
Fri, 10 Apr 2009, 10:19
Jayenkai
Hidden to the folder where you clicked it.. Then deletes it afterwards.

-=-=-
''Load, Next List!''
Fri, 10 Apr 2009, 13:48
dna
How does this compare to B3D, Purebasic or Freebasic?

-=-=-
DNA
Fri, 10 Apr 2009, 14:49
Jayenkai
Dunno yet, not got around to testing it, but it's mostly aimed at folk who want to make quick scripts..
Like, say you need a proggy that accepts a quick formula and draws a graph, or if you want to have a proggy to rename your files, or search through files, or something to that effect..
ie, anything that we'd normally load up Blitz, and shove a bit of code to test with..
That kind of thing.
You can now do it with this, and very quickly (via double clicking the script in explorer) have it open and run as if it were an exe.

It's rather handy in that respect. Nice and fast at loading, then running.. almost without any apparent loading!
Basically means that instead of 100+ 720Kb "little" exe's, you'd have 100+ clickable runnable scripts.

-=-=-
''Load, Next List!''
Fri, 10 Apr 2009, 17:12
Jayenkai
Had another rummage through the examples.
Some pretty useful stuff in there, from ftp, to zip, to windows control, registry editing, and even some nice OpenGL examples (TBGL directory)
Does mod playing, too.

..
And text to speech, using Microsoft's doohickey.. (used to be called Agents.. I think it's just Text-to-speech, nowadays!)


Quite powerful stuff. And, I should add a "check idiot's code before you blindly run things" type warning, too. Because.. It's quite powerful stuff!!


At the speed it runs, and with the power it has, I can easily see myself making good use of it in the future.

For games. Maybe not, you know me! But for tools. More than likely!

-=-=-
''Load, Next List!''
Fri, 10 Apr 2009, 18:05
erosolmi
Hi all. I'm one of the authors of thinBasic programming language. For those interested in what thinBasic can do as a programming language I've prepares few applications and created for each a bundled executable. All application source code are available with thinBasic installation. Some will be released soon with the next version.

Have fun.
Eros

thinBasic Examples





Fri, 10 Apr 2009, 20:21
JL235
The extraction thing is a big issue for me, Ruby2EXE always did the same thing and I hated it.

I highly doubt I will ever be using it, but the site looks nice and of what little I looked at it looks like a very tidy basic language.
Sat, 11 Apr 2009, 01:32
erosolmi
And because games are fun, here it is an old thinBasic script about a Robot Duel game.


thinBasic Robot duel

Have fun.
Eros

PS: all examples are available as thinBasic sources to be used as basis for addition implementation.
Sat, 11 Apr 2009, 01:35
JL235
Erosolmi, I notice on the site it says
No compilation, no intermediate code, just plain text script files analyzed and executed on the fly.

Are there any plans for adding intermediate bytecode compilation and can the interpreter be embedded in other applications?
Sat, 11 Apr 2009, 01:42
erosolmi
Letting thinBasic been used as script engine by other application is not that difficult but it is not in our plans for the moment

Instead thinBasic has special module called Oxygen developed by Charles Pegge that implements a JIT compiler directly into scripts. Mainly if the application has some parts that need to have some burst, you can create script functions, put them into a string, pass to the Oxygen that will compile it into machine code. Than you can execute that functions directly as native machine code. And the nice thing is that you can program oxygen into ASM or Basic like or a mixed of the the 2. More info can be found in dedicated forum at the below url

Oxygen will be included into next thinBasic version 1.7.8.0 that we are developing. If interested I can post the url where you can download.

Ciao
Eros

community.thinbasic.com/index.php?board=175.0
Sat, 11 Apr 2009, 11:40
erosolmi
As final info, some videos of old thinBasic scripts made few years ago when thinBasic was at the very initial stage.
Videos are almost all about using TBGL module, OpenGl module for thinBasic.


www.youtube.com/results?search_type=&search_query=thinbasic&aq=f