FLTK

deb installs under '/usr'

Hi Chris,

smallbasic_0.10.6_i386.deb installs SB under '/usr' instead of '/usr/local'. I guess it should be better '/usr/local', do you agree?

Regards!

sbasici fltk segmentation fault under Linux

Hi Chris,

I've successfully compiled smallbasic_0.10.6 under a Linux machine with fltk 2.0 libraries and a 2.6.29.1 kernel but as I run the 'sbasici' bin file it gives a segmentation fault message.

I'd like to get this file not only for myself but for TinyCoreLinux users. TCL is a small distro --descendant from DamnSmallLinux-- which uses a fltk desktop. I think SB would be great for this system.

If you've got the time tell me what you think please. Thanks!

fractal_fern.bas


CLS
iii=0
RANDOMIZE TIMER
'x = 60
'y = 60
WHILE iii<100000
r = RND
IF (r <= .01) THEN
a = 0: b = 0: c = 0: d = .16: e = 0: f = 0
ELSEIF r > .01 AND r <= .86 THEN
a = .85: b = .04: c = -.04: d = .85: e = 0: f = 1.6
ELSEIF r > .86 AND r <= .93 THEN
a = .2: b = -.26: c = .23: d = .22: e = 0: f = 1.6
ELSE
a = -.15: b = .28: c = .26: d = .24: e = 0: f = .44
END IF
newx = (a * x) + (b * y) + e
newy = (c * x) + (d * y) + f
x = newx
y = newy
PSET x*50+150, y*50, 2

A new file uploaded

Hi! ;)

I converted a simple code of fractal_fern to SBfltk and uploaded it to code library/graphics.

Very small code, but still it produces so real/natural effect.

Merry Christmas to everyone

SmallBASIC version 0.10.6 has been released

SmallBASIC version 0.10.6 is now available for both Linux and Windows.

The changes include:
- Fix for Matrix inversion bug
- Fix for Scientific notation bug
- Updated editor tool-bar
- Implemented a new log window which can also be used as the output window when working with text only programs.

Please report any bugs you happen to find. Enjoy !

<pre> ... </pre> Preformatted tag

Hi Chris,

Preformatted tag is great for preserving code text format. Is it possible SmallBasic accepts this at sourceforge? I could forget about all those non-breaking spaces...

Regards,

EXIT from nested FOR

Hi all! How could SB break just an innermost nested FOR loop? Let's take a glance at this

for i=1 to 30 step 2
 for j=1 to 30 step 3
  if i == j then
   print i," equals ",j
  else
   exit for ' EXIT breaks the whole FOR loop
  endif
 next
next

I need EXIT to break the innermost loop only. Thank you! SB it's a great tool indeed.

Video tutorial and presentation for SmallBASIC in German language

Questions, possible bugs

I'm using FLTK SmallBasic 0.10.5 on Windows Vista (Home Premium edition).

The following small program

a=[2,3;-1,4]
b=inverse(a)
? b

? 4.0/11

yields the following output:

[0.3.63636e+008,-0.2.72727e+008;0.09.09091e+007,0.1.81818e+008]

0.3.63636e+008

There seems to be an extra decimal point entered into these numbers. Is this a bug or something I don't understand?

The some queries.

1. Is it possible to select and copy from the output window? I have been struggling to do this.

2. Where is the log file to which logprint prints? How is this file accessed?

SmallBASIC version 0.10.5 has been released

SmallBASIC version 0.10.5 is now available for both Linux and Windows.

Please report any bugs you happen to find. Enjoy !

Syndicate content