September 18, 2021, 06:23:25

Author Topic: 12.23  (Read 569 times)

Offline chrisws

  • Full Member
  • ***
  • Posts: 117
    • SmallBASIC
12.23
« on: August 31, 2021, 11:17:45 »
Version 12.23 is ready to go.

Thanks everyone for suggestions and bug reports. Hopefully these have been mostly covered.

https://github.com/smallbasic/SmallBASIC/releases/tag/v12.23

I've also released AppImages for the SDL and FLTK versions for linux.

There are also a handful of new programs in the examples folder.

The version number jump was due to a couple of android only releases.
« Last Edit: August 31, 2021, 11:20:22 by chrisws »

Offline bplus

  • Full Member
  • ***
  • Posts: 221
Re: 12.23
« Reply #1 on: September 01, 2021, 22:52:57 »
Can the Modules programs be run with the g version of sb?

Does import know to look in same folder as sb?

Does it know to drop the lib prefixes from the dll's.
« Last Edit: September 02, 2021, 01:31:08 by bplus »

Offline chrisws

  • Full Member
  • ***
  • Posts: 117
    • SmallBASIC
Re: 12.23
« Reply #2 on: September 02, 2021, 10:39:58 »
Hi MGA!

> Can the Modules programs be run with the g version of sb?

For the non-gui modules clipboard and web-sockets - yes. For the other modules - maybe, but I've only really tested these with the console version (sbasic).
The -m option seems to require the full path with sbasicg.exe

> Does import know to look in same folder as sb?
The import line uses the module path (-m option argument) or the SBASICPATH environment variable.

> Does it know to drop the lib prefixes from the dll's.
Yes!

Hope this helps.

Offline bplus

  • Full Member
  • ***
  • Posts: 221
Re: 12.23
« Reply #3 on: September 02, 2021, 17:17:15 »
For kicks I tried a drag drop of Calculator.bas onto sbasicg.exe and I was told I needed nuklear.sbu file.

Surely sbasicg.exe should be able to find files in it's own folder?

Offline Aurel

  • Sr. Member
  • ****
  • Posts: 349
Re: 12.23
« Reply #4 on: September 03, 2021, 12:20:22 »
Quote
Surely sbasicg.exe should be able to find files in it's own folder?

Yes it should if use windows api fn GetCurrentDirectory
like this :

GetCurrentDir 256,strptr cdPath32
(Y)

Offline jsalai

  • Jr. Member
  • **
  • Posts: 41
Re: 12.23
« Reply #5 on: September 03, 2021, 20:25:00 »
Just installed the Android version.
The keyboard hide/show works fine, so now with some care (inserting some "pause"s and/or "screen-saves/restores") we can easily use the whole screen for graphics!
It takes a few minutes to implement in a heavy program!

Good job, and thanks!

As I use the the SDL version for programming and testing it would be great if the prog would "flag" when those events (up/down) happen.... Just kidding :)
« Last Edit: September 03, 2021, 20:38:37 by jsalai »
I won't belong to any organization that would have me as a member.
[Groucho Marx]

Offline chrisws

  • Full Member
  • ***
  • Posts: 117
    • SmallBASIC
Re: 12.23
« Reply #6 on: September 05, 2021, 10:54:48 »
For kicks I tried a drag drop of Calculator.bas onto sbasicg.exe and I was told I needed nuklear.sbu file.

Surely sbasicg.exe should be able to find files in it's own folder?

In the current version, the module argument (-m path) needs to be explicitly passed to enable module support.

This avoids hurting runtime performance by only loading DLLs when required.

Offline bplus

  • Full Member
  • ***
  • Posts: 221
Re: 12.23
« Reply #7 on: September 05, 2021, 15:51:56 »
For kicks I tried a drag drop of Calculator.bas onto sbasicg.exe and I was told I needed nuklear.sbu file.

Surely sbasicg.exe should be able to find files in it's own folder?

In the current version, the module argument (-m path) needs to be explicitly passed to enable module support.

This avoids hurting runtime performance by only loading DLLs when required.

I haven't typed command line stuff regularly since DOS days of old, now I am so rusty it is agonizing. Maybe that's my problem but couldn't IMPORT take a path with the name of import. Oh let me check...

Offline bplus

  • Full Member
  • ***
  • Posts: 221
Re: 12.23
« Reply #8 on: September 05, 2021, 16:02:10 »
Code: [Select]
import \Users\marka\Downloads\smallbasic_12.23\12_23\nuklear as nk    'try adding path
Dang! the path added to import got me past the missing nuklear.sbu error but now this: see attached

Does that mean nuklear really didn't load or is there an error in program?
« Last Edit: September 05, 2021, 16:04:55 by bplus »

Offline johnno56

  • Jr. Member
  • **
  • Posts: 49
  • Logic is the beginning of Wisdom.
Re: 12.23
« Reply #9 on: September 05, 2021, 21:55:24 »
Chris,

Thank you for version 12.23   :D

I like the FLTK appimage. In particular the themes. Any more themes? Are the 'hard coded'? If not how can they be made? Just curious.

But, most importantly, will there be a Klingon version? Nuqneh Qapla ... lol
Nah... Kidding... Great job... (Ok... maybe a 'lite' version in Vulcan?)
May your journey be free of incident.

Live long and prosper.

Offline chrisws

  • Full Member
  • ***
  • Posts: 117
    • SmallBASIC
Re: 12.23
« Reply #10 on: September 06, 2021, 11:34:41 »
Code: [Select]
import \Users\marka\Downloads\smallbasic_12.23\12_23\nuklear as nk    'try adding path
Dang! the path added to import got me past the missing nuklear.sbu error but now this: see attached

Does that mean nuklear really didn't load or is there an error in program?

That seems reasonable, but I'd need to make another update to support loading modules like that.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal