sb scriptbasic introduction to scriptbasic there are more people writing programs in basic than the...
TRANSCRIPT
S B
ScriptBasic
Introduction to ScriptBasicThere 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
S B Why a new BASIC interpreter?
• There are many languages…• There are many BASIC compilers
and interpreters• even free…
• but ...
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
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
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.
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)
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.
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.
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
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.
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
S B
Thank you for listening