This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LeCanardNoir's profile picture

collectgarbage(),... it's possible to have it in secure way with limitation ?

Started by LeCanardNoir, 28 March 2013 - 03:36 PM
LeCanardNoir #1
Posted 28 March 2013 - 04:36 PM
I read a topic on the collectgarbage() lua basic function, and i read a post talking about some secure failure in server.

Cool,… now we know what could be the problem, can we by pass it. To make the enjoy of computercraft programming at it maximum possibility. ????

I'm not a software ingeneer but like learn more avery day.


so thank all the job you do buddy's i love it :D/>
immibis #2
Posted 28 March 2013 - 05:37 PM
What would you be able to do if collectgarbage() was added that you can't do now?
theoriginalbit #3
Posted 28 March 2013 - 06:04 PM
I have never really found a use for invoking the gc myself. ever. I've normally found most languages to do it regular enough as it is. and I'm pretty sure LuaJ would be the same case.
Xfel #4
Posted 28 March 2013 - 09:03 PM
In the original lua implementation, collectgarbage is useful if you have some greater task. In LuaJ, it doesn't do anything, as it uses the Java gc.
theoriginalbit #5
Posted 28 March 2013 - 09:05 PM
In the original lua implementation, collectgarbage is useful if you have some greater task.
"Greater task" as in?
Cloudy #6
Posted 28 March 2013 - 10:28 PM
No, I can't think of a valid use for having it which outweighs the performance/security concerns.