Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Support

Pages: 1 2 3 [4] 5 6 ... 59
46
What's New / Re: Script BASIC Windows 32 bit - Download Available
« on: March 02, 2017, 08:22:22 PM »
Hopefully others will give Script BASIC a try and share their experience. You can lead a horse to water ...



47
What's New / Re: Script BASIC Windows 32 bit - Download Available
« on: March 01, 2017, 12:34:05 PM »
Quote
And yet SB is the only one of the lot that does what I want it to do in both a straightforward AND a timely manner.

There has been few if any projects I have done that required using a compiler rather than an interpreter. If I have a CPU intensive function, I just write a C extension module and use it seamlessly with SB.

48
What's New / Re: Script BASIC Windows 32 bit - Download Available
« on: February 28, 2017, 08:59:44 AM »
I released Script BASIC for Windows 32 bit  on Valentines day. No one other than you showed any love. I think I'll focus my efforts on IoT and Linux instead. The problem when there are over 100 variations of BASIC.



49
What's New / Re: Script BASIC Windows 32 bit - Download Available
« on: February 26, 2017, 04:26:00 PM »
I'm going to wait until I can see what the interest level for Script BASIC on Windows is. With Microsoft putting all their efforts into the cloud, Windows may not be the best use of my time.

50
What's New / Re: Script BASIC Windows 64 bit ?
« on: February 25, 2017, 06:35:52 PM »
I haven't had a chance to do much with the 32-bit install yet (real life intrudes) but it is both blisteringly fast, and a very easy install. I have seen no problems at all with what little I have done.

Good to hear and at least it's something.

Quote
Given that I am running windows 7 Pro 64-bit on a moderately scaled workstation:

I think that I would only bother with a 64-bit version if it were available for the other operating systems, and if there were some genuine advantage to a 64-bit version - such as speed, extended precision maths, storage etc. Game writers might have more to say about that, though. I'm not sure what advantages might be available with a 64-bit install.

Going forward, I can see backward compatability with 32-bit processors going the way 16-bit support in Windows has been dropped (and woe betide anyone who actually has 8-bit software for a PC  ??? ) - and at that time, I guess a 64-bit version will be necessary.

I already have a 64 bit version of Script BASIC built. I just don't have it in an Inno install file format.

Quote
While I would like to install a 64-bit version, right now, the 32-bit version of SB is perfectly sufficient. (mind you, all of my development is using 32-bit software - VB6, mainly).

If it wasn't for Dave Zimmer's work with COM / VB6 with Script BASIC, I probably wouldn't have created the Windows 32 bit Inno install version and kept my focus on Linux.

Quote
My bottom line: I believe that a 64-bit SB install will be necessary at some point, so now is probably a good time to get started - before it becomes the only version acceptable under Windows 11, 12 or whatever. No rush.

See above.

51
What's New / Re: Script BASIC Windows 64 bit ?
« on: February 25, 2017, 02:25:36 PM »
I was thinking of putting together a Windows 64 bit Script BASIC Inno install but I haven't received any feedback on the 32 bit version I have already posted. Would you put forth the effort if you were me?

52
What's New / Re: Script BASIC Windows 32 bit - Thread Start Options
« on: February 20, 2017, 05:06:33 PM »
You can start a SB thread in two ways. The first method gives you the option to run a script from a string and just load the script without running it.

sbt_2ways.sb
Code: Script BASIC
  1. IMPORT sbt.sbi
  2.  
  3. ' Thread 1
  4. sb1 = SB_New()
  5. SB_Configure sb1, "C:/Windows/SCRIBA.INI"
  6. SB_Load sb1, "hellothread.sb"
  7. SB_Run sb1, ""
  8.  
  9. ' Thread 2
  10. sb2 = SB_ThreadStart("hellothread.sb",undef,"C:/Windows/SCRIBA.INI")
  11.  
  12. SB_Destroy(sb2)
  13. SB_Destroy(sb1)
  14.  

hellothread.sb
Code: Script BASIC
  1. PRINT "Hello world from a thread\n"
  2.  


C:\ScriptBASIC\examples>scriba sbt_2ways.sb
Hello world from a thread
Hello world from a thread

C:\ScriptBASIC\examples>


53
What's New / Re: Script BASIC Windows 32 bit - IUP Threading
« on: February 17, 2017, 11:12:52 PM »
I was able to use SBT and run multiple IUP GUI threads.

iup_3buttonsboot.sb
Code: Script BASIC
  1. IMPORT sbt.sbi
  2. IMPORT iup.sbi
  3.  
  4. sb1 = SB_ThreadStart("iup_3buttons_1.sb",undef,"C:/Windows/SCRIBA.INI")
  5. SB_msSleep(2500)
  6. sb2 = SB_ThreadStart("iup_3buttons_2.sb",undef,"C:/Windows/SCRIBA.INI")
  7.  
  8. LINE INPUT wait
  9.  
  10. Iup::Close()
  11.  
  12. SB_Destroy(sb1)
  13. SB_Destroy(sb2)
  14.  

iup_3buttons_1
Code: Script BASIC
  1. ' IUP Button / Event Example
  2.  
  3. IMPORT iup.sbi
  4.  
  5. SUB Btn1_clicked
  6.   PRINT "Thread 1 - Button 1\n"
  7. END SUB
  8.  
  9. SUB Btn2_clicked
  10.   PRINT "Thread 1 - Button 2\n"
  11. END SUB
  12.  
  13. SUB Btn3_clicked
  14.   PRINT "Thread 1 - Button 3\n"
  15. END SUB
  16.  
  17. SUB Win_exit
  18.   Iup::ExitLoop = TRUE
  19. END SUB
  20.  
  21. Iup::Open()
  22. win = Iup::Create("dialog")
  23. Iup::SetAttributes(win, "TITLE=\"IUP Thread 1\", SIZE=300x")
  24. horzbox = Iup::Create("hbox")
  25. Iup::SetAttributes(horzbox, "GAP=5")
  26. btn1 = Iup::Create("button")
  27. Iup::SetAttributes(btn1, "TITLE=Button1, EXPAND=HORIZONTAL")
  28. btn2 = Iup::Create("button")
  29. Iup::SetAttributes(btn2, "TITLE=Button2, EXPAND=HORIZONTAL")
  30. btn3 = Iup::Create("button")
  31. Iup::SetAttributes(btn3, "TITLE=Button3, EXPAND=HORIZONTAL")
  32. Iup::Append(horzbox, btn1)
  33. Iup::Append(horzbox, btn2)
  34. Iup::Append(horzbox, btn3)
  35. Iup::Append(win, horzbox)
  36. Iup::SetCallback(win,"CLOSE_CB",ADDRESS(Win_exit()))
  37. Iup::SetCallback(btn1,"ACTION",ADDRESS(Btn1_clicked()))
  38. Iup::SetCallback(btn2,"ACTION",ADDRESS(Btn2_clicked()))
  39. Iup::SetCallback(btn3,"ACTION",ADDRESS(Btn3_clicked()))
  40. Iup::Show(win)
  41. Iup::MainLoop()
  42.  

iup_3buttons_2
Code: Script BASIC
  1. ' IUP Button / Event Example
  2.  
  3. IMPORT iup.sbi
  4.  
  5. SUB Btn1_clicked
  6.   PRINT "Thread 2 - Button 1\n"
  7. END SUB
  8.  
  9. SUB Btn2_clicked
  10.   PRINT "Thread 2 - Button 2\n"
  11. END SUB
  12.  
  13. SUB Btn3_clicked
  14.   PRINT "Thread 2 - Button 3\n"
  15. END SUB
  16.  
  17. SUB Win_exit
  18.   Iup::ExitLoop = TRUE
  19. END SUB
  20.  
  21. Iup::Open()
  22. win = Iup::Create("dialog")
  23. Iup::SetAttributes(win, "TITLE=\"IUP Thread 2\", SIZE=300x")
  24. horzbox = Iup::Create("hbox")
  25. Iup::SetAttributes(horzbox, "GAP=5")
  26. btn1 = Iup::Create("button")
  27. Iup::SetAttributes(btn1, "TITLE=Button1, EXPAND=HORIZONTAL")
  28. btn2 = Iup::Create("button")
  29. Iup::SetAttributes(btn2, "TITLE=Button2, EXPAND=HORIZONTAL")
  30. btn3 = Iup::Create("button")
  31. Iup::SetAttributes(btn3, "TITLE=Button3, EXPAND=HORIZONTAL")
  32. Iup::Append(horzbox, btn1)
  33. Iup::Append(horzbox, btn2)
  34. Iup::Append(horzbox, btn3)
  35. Iup::Append(win, horzbox)
  36. Iup::SetCallback(win,"CLOSE_CB",ADDRESS(Win_exit()))
  37. Iup::SetCallback(btn1,"ACTION",ADDRESS(Btn1_clicked()))
  38. Iup::SetCallback(btn2,"ACTION",ADDRESS(Btn2_clicked()))
  39. Iup::SetCallback(btn3,"ACTION",ADDRESS(Btn3_clicked()))
  40. Iup::Show(win)
  41. Iup::MainLoop()
  42.  


54
What's New / Script BASIC Windows 32 bit - Download Available
« on: February 14, 2017, 02:57:04 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 package (and any of the other free packages they offer) for your local  database and Apache web server environment.

Script BASIC Examples and Source


Note: Download is currently being rebuilt to add new features. Check Back Again Soon.

55
Download / Re: ScriptBasic 2.1 Linux
« on: February 13, 2017, 01:51:22 PM »
Thanks Peter!

Quote
Greetings, I made an AUR package for the Arch linux users,

I'm assuming this is a 64 bit Arch Linux distribution?

I will be posting soon a Script BASIC for Windows 32 bit Inno setup file for testing and feedback.

56
General Discussions / Re: ISAM - An appeal
« on: February 12, 2017, 07:11:05 PM »
Have you looked at the HASH extension module as a basis for your ISAM index engine?

Quote
The module uses the same hash algorithm as the ScriptBasic symbol table handling routine. This is routine comes from the page 436 of the dragon book.

The dragon book:
Aho-Sethi-Ulman : Compilers
     Principles, techniques, and Tools
Addison-Wesley Publishing Company 1986


57
General Discussions / Re: ISAM - An appeal
« on: December 19, 2016, 11:53:56 AM »
Sometimes you need to reassure yourself that you didn't make a bad decision. (BerkleyBD & PostgreSQL ext. modules)

Everything Oracle touches turns to crap. About the only thing I still use Oracle related is VirtualBox.




58
General Discussions / Re: ISAM - An appeal
« on: December 19, 2016, 09:44:49 AM »
I was hoping to get the BerkleyDB extension module running again but with it returning to a console prompt with a bdb::Open() call with no error or reason makes me think my decision to drop it was a good one. Same with PostgreSQL.

59
General Discussions / Re: ISAM - An appeal
« on: December 19, 2016, 01:44:56 AM »
It seems the trick to get it to compile is using the -ldb-6.2 not -ldb which seems to be a static version.

I'm trying to find a Script BASIC example script to test with but may need to start from scratch. On a positive note the bdb include file loaded without error.

60
General Discussions / Re: ISAM - An appeal
« on: December 18, 2016, 11:51:32 PM »
I got a little farther with the following change to interface.c for the BDB extension module.

Code: C
  1. //  X("bdb.limits.mp_size"    ,mp_size)
  2.   X("bdb.limits.mp_size"    ,set_cachesize)
  3.  


jrs@jrs-laptop:~/sb/source/extensions/bdb$ make -B
gcc -O2 -w -m64 -fPIC -DSTATIC_LINK=1 -c -o /home/jrs/sb/source/bin/mod/obj/bdb/s_interface.o interface.c
ar -r /home/jrs/sb/source/bin/mod/lib/bdb.a /home/jrs/sb/source/bin/mod/obj/bdb/s_interface.o
gcc -O2 -w -m64 -fPIC -c -o /home/jrs/sb/source/bin/mod/obj/bdb/interface.o interface.c
ld -shared -fPIC -o /home/jrs/sb/source/bin/mod/dll/bdb.so /home/jrs/sb/source/bin/mod/obj/bdb/interface.o /usr/lib/libdb.a
ld: /usr/lib/libdb.a(db_method.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libdb.a: error adding symbols: Bad value
makefile:13: recipe for target '/home/jrs/sb/source/bin/mod/dll/bdb.so' failed
make: *** [/home/jrs/sb/source/bin/mod/dll/bdb.so] Error 1
jrs@jrs-laptop:~/sb/source/extensions/bdb$


This looks to me that the BerkleyDB db_method  needs a Makefile change to work as a shared object.

I have spent as much time as I can on this and will leave it in AlyssonR's hands to unravel.

Pages: 1 2 3 [4] 5 6 ... 59