Author Topic: ScriptBasic 2.2 Release  (Read 14095 times)

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
ScriptBasic 2.2 Release
« on: November 01, 2012, 10:38:01 AM »
I'm working on getting a 2.2 release of ScriptBasic out to the user base before the end of the year. This release will include fixes, enhancements and new extension modules since the SB 2.1 beta release done by Peter Verhas in 2006.



ScriptBasic IUP binding running on Windows 7 64 bit in 32 bit mode.
« Last Edit: November 01, 2012, 08:55:42 PM by support »
Script BASIC Project Manager

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #1 on: November 04, 2012, 10:21:46 AM »
I was able to compile Armando's (AIR) SQLite3 extension module on Windows for the 2.2 release.

Code: [Select]
import sqlite.bas

db = sqlite::open("testsql")

sqlite::execute(db,"create table demo (someval integer, sometxt text);")
sqlite::execute(db,"insert into demo values (123,'hello');")
sqlite::execute(db, "INSERT INTO demo VALUES (234, 'cruel');")
sqlite::execute(db, "INSERT INTO demo VALUES (345, 'world');")

stmt = sqlite::query(db,"SELECT * FROM demo")

while (sqlite::row(stmt) = sqlite::SQLITE3_ROW)
  if sqlite::fetchhash(stmt,column) then
    print column{"someval"},"\t-\t",column{"sometxt"},"\n"
  end if
wend

sqlite::close(db)

C:\scriptbasic\test>scriba t_sqlite3.sb
123     -       hello
234     -       cruel
345     -       world

C:\scriptbasic\test>
Script BASIC Project Manager

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #2 on: November 04, 2012, 08:01:52 PM »
I wrote a remote console debugger client in ScriptBasic to test the bug fixes I made to the sdbg.dll internal preprocessor.

Code: [Select]
' ScriptBasic Remote Console Debugger

OPEN "127.0.0.1:6647" FOR SOCKET AS #1

WHILE NOT EOF(1)
  LINE INPUT #1, dbgs
  IF dbgs = ".\r\n" THEN
    PRINT "-> "
    LINE INPUT dbgc
    PRINT #1, dbgc
    IF CHOMP(dbgc) = "q" THEN GOTO Done
  ELSE
    PRINT dbgs
  END IF
WEND

Done:
PRINT "Debug session closed.\n"



debugtest.sb
Code: [Select]
a = 1
b = "JRS"
PRINT a,"\n"
PRINT b,"\n"
PRINTNL
« Last Edit: November 04, 2012, 09:55:44 PM by support »
Script BASIC Project Manager

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
ScriptBasic 2.2 beta release available
« Reply #3 on: November 10, 2012, 08:59:26 AM »
I have put together a ScriptBasic 2.2 beta release for Windows 32 bit. I'm still working on the event (callback) interface for the IUP extension module and hope to have something to share in the next beta release.

Unzip this in your C:\ directory and edit your system path to include C:\scriptbasic\bin.

Please give it a try and let me know if you find something that isn't working as it should.

ScriptBasic 2.2 BETA for Windows 32 attached
« Last Edit: November 23, 2012, 01:00:49 PM by support »
Script BASIC Project Manager

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #4 on: November 11, 2012, 08:35:27 AM »
Did you download the DLL Pack that Armando (AIR) built that should go in your system32 (WinXP) that the GD extension dynamically links to? (see readme in zip) It's been a few years since Armando assembled these so you may want to check and see if newer versions of these DLLs exist.

« Last Edit: November 11, 2012, 08:37:47 AM by support »
Script BASIC Project Manager

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #5 on: November 11, 2012, 12:56:15 PM »
Quote
Just now while looking for libgd2.dll, there are lots of warnings about this file being unstable and easy to hack.

I using Microsoft Security Essentials with no reports of issues. What are you using?

I really don't see any use for the GD extension module unless you need to create custom .png files on the fly while using the webserver.

The IUP CD (Canvas Draw) with OpenGL will be the desktop graphics engine of choice.

I do appreciate your feedback and research!



« Last Edit: November 11, 2012, 05:52:29 PM by support »
Script BASIC Project Manager

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #6 on: November 22, 2012, 03:33:31 PM »
The Mini-XML extension module AIR wrote is looking promising. I was able to get it to compile on Windows but it errors on LoadDoc() at the moment. I'm hoping Armando finds some time to get it working under Windows.

As soon as I get the GetChild() and attribute functions written along with a bit of error trapping, I'll release my SBXML module for others to play with.

Script BASIC Project Manager

Kirkkaf

  • Newbie
  • *
  • Posts: 4
Re: ScriptBasic 2.2 Release
« Reply #7 on: November 23, 2012, 12:08:25 PM »
Hi guys,

I have been reading through alot of posts on this forum and I am not 100% sure on the latest release of ScriptBasic. I guess 2.2 is the latest version due to this being the latest thread, however I am unable to locate the download for this version.

I have also noticed the previous versions from 2.1 to 3.0 now to 2.2, if 2.2 has been released can you point me to the download?

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #8 on: November 23, 2012, 12:25:26 PM »
The beta 2.2 release can be found as an attachment to post #3 of this thread. (first test release, Build 3 is coming soon)

ScriptBasic 2.1 is the current official release. (all platforms) (using MS VC7 for Windows)

ScriptBasic 3.0 was a effort to standardize on gcc on all platforms using TDM-GCC-MinGW. Peter Verhas expressed his concerned about using the 3.0 version and what was being offered didn't justify a major revision number change. At this point the 3.0 is an indicator that SB was compiled with gcc on Windows and not Microsoft Visual C/C++.

Script BASIC Project Manager

Kirkkaf

  • Newbie
  • *
  • Posts: 4
Re: ScriptBasic 2.2 Release
« Reply #9 on: November 23, 2012, 12:30:41 PM »
Thank you. I can't believe I over looked that.

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #10 on: November 24, 2012, 10:41:22 AM »
Update

I have been working on the Windows version of the Mini-XML extension module that works fine under Linux and OSX. I was able to get  the module to compile with AIR's help but it would crash trying to load the XML file. I hit the wall and sent my effort over to Armando to debug As it turns out VC10 corrupts trying to load the tree but AIR was able to compile the same code with TDM-GCC-MinGW32 and it worked. (using the VC10 version of scriba)

Once we know what is causing VC10 to be transparently unhappy, we can send a bug report over to the Mini-XML maintainers.

 
Script BASIC Project Manager

Airr

  • ScriptBasic Developer
  • *****
  • Posts: 9
Re: ScriptBasic 2.2 Release
« Reply #11 on: November 24, 2012, 08:54:33 PM »
The problem seems to be how VC10 compiles the MODULE, not Mini-XML.

I used an older MODULE, compiled with MinGW with Mini-XML compiled with VC10 and it works fine.

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #12 on: November 24, 2012, 09:12:27 PM »
Not sure I understand. I hacked the makefile.vc7 for the mxml extension module to get it to compile. (wasn't using the SB standard .jim/.jam correctly and missing a NTLIBS: def.)

Can you send me or post with an attachment of a VC10 compilable mxml code set?

Script BASIC Project Manager

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #13 on: November 26, 2012, 07:56:43 PM »
We gave it our best shot but Microsoft's Visual C/C++ is too unstable with ANSI/ISO C code. What works in one version of VC doesn't in another.

I'm going with Armando advice and stick with gcc across the board.

Here is the Mini-XML extension module example I have been trying to get working with VC10 now working when compiled with TDM-gcc-MinGW32.

C:\scriptbasic\test>scriba testmxml.sb
name = Belgian Waffles
price = $5.95
description = two of our famous Belgian Waffles with plenty of real maple syrup
calories = 650
name = Strawberry Belgian Waffles
price = $7.95
description = light Belgian waffles covered with strawberries and whipped cream
calories = 900
name = Berry-Berry Belgian Waffles
price = $8.95
description = light Belgian waffles covered with an assortment of fresh berries and whipped cream
calories = 900
name = French Toast
price = $4.50
description = thick slices made from our homemade sourdough bread
calories = 600
name = Homestyle Breakfast
price = $6.95
description = two eggs, bacon or sausage, toast, and our ever-popular hash browns
calories = 950

C:\scriptbasic\test>
Script BASIC Project Manager

support

  • Administrator
  • *****
  • Posts: 859
    • Script BASIC Open Source Project
Re: ScriptBasic 2.2 Release
« Reply #14 on: December 01, 2012, 09:07:50 PM »
AIR must be busy with real life adventures and hasn't responded with a SB setup that will work with TDM-GCC-MinGW32/64. I used the interface.c from the MinGW-gcc version (SB 3.0) and replaced the VC10 one that was crashing. It seems there is something weird with the version of the mxml extension (Linux) I was trying get working. I will include the mxml VC10 version in the next build.

Script BASIC Project Manager