SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the...

13
S B ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

Transcript of SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the...

Page 1: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B

ScriptBasic

Introduction to ScriptBasicThere are more people writing

programs in BASIC than the number of people capable

programming.

Page 2: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Contents

• Why a new basic interpreter?• Design goals, major features• Implementation

we do not speak in this presentation about the language or the usage of ScriptBasic

Page 3: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Why a new BASIC interpreter?

• There are many languages…• There are many BASIC compilers

and interpreters• even free…

• but ...

Page 4: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Design goals

• we needed an interpreter that– is BASIC (do you remember the motto?)– GNU GPL– Modular and extendable– Compiled byte code– Multithread, memory safe– Portable– Embeddable

Page 5: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Design goals

• is BASIC (do you remember the motto?)– Microsoft claims that there are

8,000,000 people programming VisualBasic

– BASIC is the fastest to learn language

Page 6: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Design goals

• GNU GPL– This is what we truly believe.– GNU GPL open source is the method

to provide quality and– quality for us is more than profit.

Page 7: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Design goals

• Modular and extendable– It is not a BASIC interpreter, rather a

general purpose line oriented language interpreter.

– Can be used as an interpreter generating tool for other languages.

– Anyone programming C can easily extend the language,

– or write external modules (.dll on Win32 or .so on UNIX)

Page 8: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Design goals

• Compiled byte code– This is essential for fast multiple

execution of small scripts, like CGI scripts.

– Internal code is relocatable, single, continuous memory space,

– can be saved onto disk and loaded and executed without compilation.

Page 9: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Design goals

• Multithread, memory safe– ScriptBasic is not multithread, but it is

thread safe.– Separate powerful memory

management with proved no memory leaking.

– No need to restart process from time to time.

Page 10: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Design goals

• Portable– It runs on Win32 (NT or Win95) and

on UNIX– The language supports the common

UNIX/NT constructs– OS specific functions can be provided

via external modules

Page 11: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Design goals

• Embeddable– Can be used as an embedded

interpreter in any tool.– Clean interfaces.– Possibility of variations.

To embed it should be 1 day project for experienced programmer.

Page 12: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B Implementation

• Pure C code with WIN32 ifdefs.• Windows NT, Tru64 UNIX, Linux gcc• More than 100 commands and functions• Standalone command line version• Automatic cache, and save byte code

and execute without the source• CGI module with upload feature• Full English documentation

Page 13: SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the number of people capable programming.

S B

Thank you for listening