TurboScript
TurboScript copied to clipboard
'object = null' instead 'delete object' for deallocation
object = null
is standard way to signalize for GC to forcing delete object by reference in js.
Thats a cool idea. 👍
What is the philosophy for memory management?
My opinion is to keep things simple and only support manual memory management initially (i.e. malloc/free) and if a module doesn't do any malloc/free operations there would be no cost to the module.
Same philosophy here. MVP only support manual memory management. There is another possible optimization, we can auto free allocated memory if it's not referencing outside of a function and the instance is a local variable.
On Wed 12. Apr 2017 at 4:18 PM, Wink Saville [email protected] wrote:
What is the philosophy for memory management?
My opinion is to keep things simple and only support manual memory management initially (i.e. malloc/free) and if a module doesn't do any malloc/free operations there would be no cost to the module.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/01alchemist/TurboScript/issues/22#issuecomment-293591613, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMGZud4HuiQlfOVYko0RyUp_iH3oNy2ks5rvN0sgaJpZM4MrbFx .
Has there been any progress in this direction? Unfortunately I'm not too good at parser stuffs, but I think it should not be too difficult
It is doable. I will try it next week.
Great!