Hi,
I been evaluating using Boo/Boojay as the entry language of choice for highly resource constrained embedded microcontrollers ( 8-bit)
The loop function is both often used and often critical performance for these types of applications
I am new to Python/Boo and while I can see the value of the range() function it's orders of magnitude slower than the tight equivalent loop
// print numbers from 0 until 9for i in range(0, 10):print(i)it is equivalent to
for (int i = 0; i < 10; i++)
What would the risks be to the language if I changed the byte-code generation of this pattern to be the same as what javac would produce either in boojay or as a bytecode peephole optimisation of the boojay generated bytecode.
Could you recommend a way to indicate this pattern could be safely optimised? maybe a special keyword ?
ie (something like)
for i in finalrange(0,10):print(i)