[WIP] Objective-Scratch Library & Demo
This is a very early prototype/demo of my OOP library for scratch. Currently, only standard variables are supported, but I will be adding much more interesing data structures in the future, such as (multidimensional) arrays, linked lists and objects.
Have a look inside to see what's going on. I am only running a simple test program.
Variable names are mapped to "memory" locations using a hash table, which is also stored in the memory list.
- Now using memory management system suggested by @joefarebrother in https://scratch.mit.edu/discuss/topic/197431/?page=1#post-1963927
- Added simple benchmark. Conclusion: very slow (~5ms per library block).
- Fixed bug in hash algoritm (Damn zero indexing).