06-08-2025, 07:31 AM
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.
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.