Closed TheBizzle closed 4 years ago
I did a quick review here and there are only a couple remaining unimplemented optimizations that I see. Updated our wiki page as well.
I went ahead and completed the last two, so we can close this and not worry about compiler optimization parity for a while!
The NetLogo Web compiler does not yet reproduce any of the desktop compiler's optimizations. This has two negative effects:
I think that item (2) is honestly the bigger problem right now. Sure, I welcome any speedup that NetLogo Web gets, but (2) causes legitimate problems. First of all, it means that some of our language tests cannot be run, because the tests error when they detect divergent RNG states. Secondly, it means that
random-seed
does not always guarantee reproducible results between desktop NetLogo and NLW, which is unpleasant, and it's not easy for users to predict when divergence will occur and when it won't.