All BASIC

Message Boards => Scripting Languages => Topic started by: John on January 08, 2017, 09:46:33 AM

Title: Script BASIC Windows 32 bit
Post by: John on January 08, 2017, 09:46:33 AM
I'm in the final process of releasing a Script BASIC Windows 32 bit Inno packaged install. I will be updating this thread as I build the install image giving you a preview of what to expect. Your feedback is appreciated!

IDE/Debugger

Script BASIC has traditionally been distributed as an embeddable scripting engine API. Examples of its use are provided by the console variation called scriba and a multi-thread web server variation called sbhttpd. With this release for Windows, a GUI IDE/Debugger will take center stage as an interactive development interface. Scriba and a Windows mode versions I call sbwin.exe will also be included as runtime language resources as well as libscriba.dll. (shared object variation of scriba) I will expand on more of the IDE/Debugger's features in an upcoming post to this thread.

(http://www.allbasic.info/forum/index.php?action=dlattach;topic=455.0;attach=1119;image)

Extension Modules





Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on January 09, 2017, 09:11:50 AM
You had my attention at "Inno Install"

Of course I'll install (and comment)
Title: Re: Script BASIC Windows 32 bit
Post by: John on January 09, 2017, 09:26:31 AM
Thanks for willing to help get the release tested. All that is left to do is assemble a set of examples for the extension modules and expand more on the IDE/Debugger and IUP dialog editor.
Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on January 10, 2017, 04:29:41 PM
I look forward to it. 8)
Title: Re: Script BASIC Windows 32 bit
Post by: John on January 11, 2017, 07:24:08 PM
I think I'm going to post a pre-release without examples and documentation tor testing purposes. I should have something up on the forum soon.

Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on January 15, 2017, 04:10:13 AM
 ;D
Title: Re: Script BASIC Windows 32 bit
Post by: John on February 06, 2017, 05:56:51 PM
I had asked Mike Lobanovsky (FBSL author) if he would have a peek at the Script BASIC Inno install setup file I created before releasing it to general beta.

Quote from: Mike
I tested the installer under my XP, Vista, Win7 and Win10 and it ran smooth in both install and uninstall modes everywhere.

Theming did look native under all Windows versions for both IUP examples and the VB IDE.

Mike made some suggestions (functional / cosmetic) I plan to incorporate before posting the Script BASIC Windows 32 bit install.

I hope to have something to play with very soon.

FYI:   Everything other then DYC, DLLC, COM and the Script BASIC IDE/Debugger were compiled on Windows 10 using TDM-GCC32.


Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on February 07, 2017, 09:41:15 AM
Install on my Win 7 SP1 was smooth, seamless and slick.

Users do need to remember to set the file associations for opening .SB files (use OpenWith to set the association) - at the moment, the default icon for these files is C:\Windows\System32\SHELL32.dll[0] unless you use sbide.exe

For convenience, there are the two SB icons (lifted from a previous release) attached below for users to associate with the filetype, or you could use:

C:\Windows\System32\wscript.exe [1 | 2 | 3 ] (the script icons for vbscript, javascript etc.) I might rebuild and package these icons up separately, in case anyone wants to use them.

As ever, the programs execute with little appreciable delay - and the IDE (which I haven't played with yet) loads immediately (compared with 5-10 seconds for VB6 on the same machine).
Title: Re: Script BASIC Windows 32 bit
Post by: John on February 07, 2017, 10:06:44 AM
SB scripts can run in the console (scriba.exe) or as a Windows program with no console / redirection support (sbwin.exe) and via the IDE.
Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on February 07, 2017, 11:37:39 AM
In order to kick off public discussion:

I have run test programs in both console and windows modes - both run both seamlessly and with no appreciable delays - they make the Windows Scripting Host look like an ox-cart by comparison (don't get me started on the snail-drawn sled that is VBA for Office!)

The IDE provides a basic toolset - not that I ever use much more than a highlighting editor, and I cannot see much that it needs in addition. It is currently a one file-one-window interface.

While the IDE runs on double-click of a file, it does not actually load the file that it was launched with - requiring the IDE to be run and then a SB file to be opened. This may or may not be a bad thing.



Such tools as "insert file at cursor" are superfluous in this day and age, and things like "insert resource as binary data" are better handled by external programs.

The tools for my wishlist (which might well be external to the IDE, in any case) would include:

A Project Manager - to place resource files, internal dependencies, documentation/help and language (localisation) files within a standard project folder. Some metadata and automatic versioning would be nice.

A Project Packager - to package up a project with its internal dependencies for delivery as a ZIP/TAR-GZIP.

Title: Re: Script BASIC Windows 32 bit
Post by: John on February 07, 2017, 12:14:46 PM
The Script BASIC IDE/Debugger is written in VB6 which should make it easier for others to expand on it. Jumping back on board with VB6 (and its user based enhancements) was fun and refreshing.
Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on February 07, 2017, 12:21:49 PM
Wow.

In a way, it's a shame that it wasn't written in SB (just kidding).
Title: Re: Script BASIC Windows 32 bit
Post by: John on February 07, 2017, 01:47:11 PM
Quote
In a way, it's a shame that it wasn't written in SB (just kidding).

Only the UI is VB6. The IDE is a GUI wrapper for the existing Script BASIC debug preprocessor and language as a shared object. Peter Verhas started sdbg as sccket based GUI front end which I redid as a remote console mode debugger.
Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on February 07, 2017, 03:18:48 PM
Interesting.
Title: Re: Script BASIC Windows 32 bit
Post by: John on February 07, 2017, 07:32:15 PM
Quote
It is currently a one file-one-window interface.

When Script BASIC runs a script, any IMPORT (only add once)  or INCLUDE files are combined into one file to run or debug. The debugger will point to the first executable line in the main script.

I use UltraEdit for all my Script BASIC coding and use the Script BASIC IDE for debugging or testing concepts.
Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on February 08, 2017, 05:25:30 AM
Which is fair enough.

My comment about one-file-one-window was aimed more toward the folks who are used to having several files open at the same time (such as the main program and several #INCLUDEs).

I normally edit my source code in ConText, but when working with Arduino code, the IDE is an MDI container, allowing tab-switching between main program code and #INCLUDEs. I didn't want anyone to assume an Arduino-type interface.

I do prefer this interface.
Title: Re: Script BASIC Windows 32 bit
Post by: Mike Lobanovsky on February 08, 2017, 11:41:33 AM
I didn't want anyone to assume an Arduino-type interface.

In fact, a multi-tabbed MDI or SDI editing interface is very handy. I tend to split all my scripts in Eclecta (FBSL's stock IDE) into the main project file -- typically the one with the Main() function or the Events loop -- and a number of includes that would group the other functions logically according to their purpose in the application, pretty much like a Visual Studio would. That's what UltraEdit is designed to do too. UE is a great tool but it being a powerful all-purpose text editor seems a little bit of an overkill for a BASIC IDE.

Alternatively, a usable IDE might have splitters to divide the viewport into 2 or 4 distinct areas scrollable to their own portions within a long script, which would minimize time and effort to scroll the script back and forth while editing its portions. The most advanced setups would even allow the user to load different files into the different sub-windows of the split viewport. But still I find the multi-tabbed IDEs to be the most intuitive and easy to handle of all.
Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on February 08, 2017, 02:23:29 PM
I haven't used FBSL, but that sounds very much like the story with many IDEs by the time they reach full maturity.

Like you, Mike, my programs tend to be composed of lots of reusable chunks of code that are arranged by purpose.

With some big, multi purpose code, I will even use #IF NOT([variable]) to exclude sub-functions that don't need to be included.

I do like the idea of mutiple windows into a large file, but I have never used it (and don't know wheter I ever would, now that my habits are pretty set).
Title: Re: Script BASIC Windows 32 bit
Post by: John on February 08, 2017, 05:43:30 PM
The next release of the Script BASIC IDE/Debugger will be done with IUP so it's cross platform. I can't see anything special to VB6. It was just what Dave was comfortable writting his UI code in. I will also be including the IUP dialog editor integrated into the new IDE.
Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on February 09, 2017, 03:15:57 AM
*big Thumbsup*
Title: Re: Script BASIC Windows 32 bit
Post by: John on February 10, 2017, 01:04:35 AM
All I have to do now is create the README file and I should be ready to post a public beta of Script BASIC Windows 32 bit packaged  with the Inno installer. (SBWin32_Setup.exe)



Title: Re: Script BASIC Windows 32 bit - Download Available
Post by: John on February 14, 2017, 02:40:28 PM
I have finally assembled an Inno install for Script BASIC for Windows 32 bit with extension modules and their dependencies included. This is my first public release in this format and would appreciate any feedback you're willing to offer to make Script BASIC even better for everyone.

If you plan on using the MySQL extension module or use the SBHTTPD proxy web server, I highly recommend installing the 32 bit version of the XAMPP (https://www.apachefriends.org/index.html) package (and any of the other free packages they offer) for your local  database and Apache web server environment.

Script BASIC Examples and Source (http://www.allbasic.info/forum/index.php?topic=424.0)


Download Attached
Title: Re: Script BASIC Windows 32 bit - Crystal Ball
Post by: John on September 30, 2018, 08:51:12 PM
The next Script BASIC Windows 32 Inno release will come with some name changes.

The console interpreter scriba.exe will become sb.exe. The Windows version of the interpreter will be named sbw.exe. The sbhttpd.exe web server will be named sbs.exe.

I'm going to include source using AIR's make for gcc. Peter Verhas's build system will be for primary SB developers only.

I'm also looking at an embeddable version of the multi-threaded http web server.
Title: Re: Script BASIC Windows 32 bit
Post by: AlyssonR on October 01, 2018, 09:40:30 AM
That all sounds to be good stuff.

Thankyou.
Title: Re: Script BASIC Windows 32 bit
Post by: AIR on October 01, 2018, 03:46:37 PM
I like the idea of renaming the binaries.  Good Call!

Re: Inno - Are you using the base Inno, or do you use Inno Script Studio (I use Studio at work to package - wait for it - old PowerBuilder apps from the mid 90's, and for a ton of other stuff)?  It really is one of the most underrated pieces of SW on the Win platform, especially from a Sysadmin perspective.

AIR.

Title: Re: Script BASIC Windows 32 bit
Post by: John on October 01, 2018, 05:16:56 PM
I'm just using base Inno and use UE to build the script.

The current Windows distribution is using TDMGCC and your make. (slightly modified)