SB ScriptBasic Introduction to ScriptBasic There are more people writing programs in BASIC than the...
-
Upload
shon-blankenship -
Category
Documents
-
view
223 -
download
0
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/1.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/2.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/3.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/4.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/5.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/6.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/7.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/8.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/9.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/10.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/11.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/12.jpg)
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.](https://reader036.fdocuments.net/reader036/viewer/2022082413/56649e615503460f94b5d192/html5/thumbnails/13.jpg)
S B
Thank you for listening