February 19, 2020, 02:23:38 AM

Author Topic: 0.12.17 released  (Read 1572 times)

Offline chrisws

  • Jr. Member
  • **
  • Posts: 22
Re: 0.12.17 released
« Reply #15 on: December 25, 2019, 09:41:40 PM »
There seems to be no "sleep" function in the SB, to give other processes cpu time.
There are two different sleep type functions, delay and pause
https://smallbasic.github.io/reference/806.html
https://smallbasic.github.io/reference/809.html

It would be nice (useful) if there were a C-emitter to be able to create an optimized final native code. Interpreted (outright interpreted) basic is good for fast prototyping, and a subsequent on-demand compiler could make the final code run fast.
There are already other BASIC projects that do this.

Offline k1

  • Jr. Member
  • **
  • Posts: 7
Re: 0.12.17 released
« Reply #16 on: December 26, 2019, 12:11:13 PM »
There are two different sleep type functions, delay and pause
Ok, 'delay' does the trick.
Quote
There are already other BASIC projects that do this.
Unfortunately I know not of any such project (i.e. in this list none fit my req. : https://www.thefreecountry.com/compilers/basic.shtml ).
Also, other projects may have other quirks.. I like SB for its elegance.

Another question: Can I use (system) DLLs with SB?

Offline chrisws

  • Jr. Member
  • **
  • Posts: 22
Re: 0.12.17 released
« Reply #17 on: December 27, 2019, 05:55:36 AM »
There are two different sleep type functions, delay and pause
Ok, 'delay' does the trick.
Quote
There are already other BASIC projects that do this.
Unfortunately I know not of any such project (i.e. in this list none fit my req. : https://www.thefreecountry.com/compilers/basic.shtml ).
Also, other projects may have other quirks.. I like SB for its elegance.

Another question: Can I use (system) DLLs with SB?

Thanks for the link - what about something like bacon?

You could use DLL's via the module mechanism.
Take a look here for some examples: https://github.com/smallbasic/smallbasic.plugins
This is assuming the module DLL can call some other DLL.

Offline Aurel

  • Jr. Member
  • **
  • Posts: 63
Re: 0.12.17 released
« Reply #18 on: December 28, 2019, 08:16:38 AM »
I added link on my site for smallBasic
https://aurelsoft.ucoz.com/news/question/2014-09-03-2

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: 0.12.17 released
« Reply #19 on: January 03, 2020, 10:54:46 PM »
I thought I should finally release the old/new/updated FLTK version...........

The editor(sbasici.exe) is sophisticated and appropriate. Thank you! I have one question. In the pull-down menu(View/Text Color), colours can be selected for different types of texts. My question is that there is no 'Line Numbers" in the menu. If bright colours can be selected for line numbers in dark themes, users will be more convenient.

Offline chrisws

  • Jr. Member
  • **
  • Posts: 22
Re: 0.12.17 released
« Reply #20 on: January 08, 2020, 09:15:06 PM »
I thought I should finally release the old/new/updated FLTK version...........

The editor(sbasici.exe) is sophisticated and appropriate. Thank you! I have one question. In the pull-down menu(View/Text Color), colours can be selected for different types of texts. My question is that there is no 'Line Numbers" in the menu. If bright colours can be selected for line numbers in dark themes, users will be more convenient.

The line number column color is set by the built-in themes, but there's no menu item to set this individually. I can add this to the next update. Thanks for the suggestion.

Cheers,
Chris



Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: 0.12.17 released
« Reply #21 on: January 09, 2020, 11:16:19 PM »
I thought I should finally release the old/new/updated FLTK version...........

The editor(sbasici.exe) is sophisticated and appropriate. Thank you! I have one question. In the pull-down menu(View/Text Color), colours can be selected for different types of texts. My question is that there is no 'Line Numbers" in the menu. If bright colours can be selected for line numbers in dark themes, users will be more convenient.

The line number column color is set by the built-in themes, but there's no menu item to set this individually. I can add this to the next update. Thanks for the suggestion.

Cheers,
Chris

It will be a very useful feature in the next release. Thanks a lot. You are so professional and responsible.

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: 0.12.17 released
« Reply #22 on: January 17, 2020, 02:15:09 AM »
I have enough time to try the new editor(sbasici.exe) carefully today and I want to report a bug in the new editor. I describe it as 'slow motion' bug. Some examples are run very slowly. For example, gold.bas, particles.bas, space.bas, bonkers.bas, etc. The operating systems are 32-bit Win XP and 64-bit Win 10.

Offline Aurel

  • Jr. Member
  • **
  • Posts: 63
Re: 0.12.17 released
« Reply #23 on: January 17, 2020, 07:32:08 AM »
I don't see how this be connected with editor .
Is same thing also with my editor ??

Offline bplus

  • Jr. Member
  • **
  • Posts: 73
  • Beauty is a light in the heart.
Re: 0.12.17 released
« Reply #24 on: January 17, 2020, 03:36:57 PM »
Speed hit when using new editor also reported in reply #1

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: 0.12.17 released
« Reply #25 on: January 18, 2020, 01:40:19 AM »

Is same thing also with my editor ??

The problem does not happen in your editor. :)

Offline Aurel

  • Jr. Member
  • **
  • Posts: 63
Re: 0.12.17 released
« Reply #26 on: January 18, 2020, 01:43:41 PM »
Then OK  :D

Offline round157

  • Sr. Member
  • ****
  • Posts: 254
Re: 0.12.17 released
« Reply #27 on: February 05, 2020, 12:14:55 AM »
Today I have time to look into SmallBASIC and the default editor(sbasici.exe) again. An Export option is in the File menu. This option does not make an EXE file for the source code. How an EXE file be made? Thanks.


Offline bplus

  • Jr. Member
  • **
  • Posts: 73
  • Beauty is a light in the heart.
Re: 0.12.17 released
« Reply #28 on: February 06, 2020, 03:52:19 PM »
Hi Chris,

I was testing stuff in version sbasicg64.exe v12.17 and tried Debug. Windows 10-64 popped up some kind of Firewall protection complaint; it was so complicated I just closed the thing. After that my letter keys and spacebar didn't print anything in Editor. I tried all sorts of things including downloading again new zip packs for v 12.17 and renaming sbasicg64.exe something else. All failed to get letters to print in Editor. Fooling around some more, I learned when shift key was engaged or caps lock on the letters would print but all caps of course. So WTH?

PS seem to have all proper privileges in Windows Properties details and security and everything else seems to work including arrow keys, page keys, backspace and delete and on-line access to samples. Things are working OK in new Editor but I had to toggle resize window for letter printing there. Runs too sluggish to work in. Ha! watch the Hexagonal Minesweeper game from here  :P watch each cell take a fraction of second to PAINT, YIKES!
https://www.syntaxbomb.com/index.php/topic,7059.msg34054.html#msg34054

Fortunately for me, sbasicg64.exe v12.13 from another folder is still working fine and I got as far as I could with Hexagonal Minesweeper. I don't remember having so much trouble with stack from regular Minesweeper after you fixed it's size. Maybe it's not the stack but something happens when sweeping lot's of zero cells and it happens more often when there is a bigger field = potentially bigger sweeps.

Offline chrisws

  • Jr. Member
  • **
  • Posts: 22
Re: 0.12.17 released
« Reply #29 on: February 07, 2020, 10:27:53 AM »
Today I have time to look into SmallBASIC and the default editor(sbasici.exe) again. An Export option is in the File menu. This option does not make an EXE file for the source code. How an EXE file be made? Thanks.
The export option is for running the program in android. Sorry there is no option to make an EXE.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal