We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small Basic super slow ??
#13
Yes it is, SB is slow especially arrays and even more so 2D arrays.  There are LD alternatives for arrays, but SB is slow for the reasons described and comparisons with 'normal' typed languages with indexed arrays are somewhat pointless.  

SB arrays are Primitive indexed and valued maps which are often recursively internally converted to a string representation and back, stuff like A[X]=Y is converted to A="X=Y;" - try printing the values of your 2D arrays to see what this looks like for them.  I am explaining why it is slow - it is so that it can have the simplistic features it has originally designed for total programming beginners as an alternative to things like Scratch.

But... with care, it can do good things and certainly train good programming habits - however if speed is the primary objective, then ANY 'normal' language will be more appropriate, even something like Python which is widely used but very slow compared to native C (super fast compared to SB) but has fantastic libraries not written in Python is speed is important.
Reply


Messages In This Thread
Small Basic super slow ?? - by Elzaimer - 06-04-2025, 08:39 PM
RE: Small Basic super slow ?? - by martmen - 06-05-2025, 12:46 AM
RE: Small Basic super slow ?? - by litdev - 06-05-2025, 03:38 PM
RE: Small Basic super slow ?? - by Elzaimer - 06-05-2025, 05:44 PM
RE: Small Basic super slow ?? - by litdev - 06-05-2025, 07:04 PM
RE: Small Basic super slow ?? - by z-s - 06-06-2025, 03:14 AM
RE: Small Basic super slow ?? - by litdev - 06-07-2025, 03:05 PM
RE: Small Basic super slow ?? - by litdev - 06-07-2025, 03:48 PM
RE: Small Basic super slow ?? - by Elzaimer - 06-07-2025, 07:32 PM
RE: Small Basic super slow ?? - by litdev - 06-08-2025, 07:31 AM
RE: Small Basic super slow ?? - by litdev - 06-08-2025, 10:35 AM
RE: Small Basic super slow ?? - by z-s - 06-08-2025, 02:42 PM
RE: Small Basic super slow ?? - by litdev - 06-08-2025, 03:29 PM
RE: Small Basic super slow ?? - by litdev - 06-08-2025, 04:04 PM
RE: Small Basic super slow ?? - by Elzaimer - 06-08-2025, 08:21 PM
RE: Small Basic super slow ?? - by litdev - 06-09-2025, 08:45 AM
RE: Small Basic super slow ?? - by Elzaimer - 06-10-2025, 04:33 PM
RE: Small Basic super slow ?? - by litdev - 06-10-2025, 05:10 PM
RE: Small Basic super slow ?? - by Elzaimer - 06-10-2025, 07:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)