Posted 29 September 2012 - 10:04 PM
I'm a minecraft fan (naturally, else I'd be lost) and a coder. I am considering coding neural networks in ComputerCraft but before I do I need to know what the limitations are. I've not coded in Lua in anger before and have skim read the syntax/compiler documentation. I imagine there are additional limitations placed on it given that it's running within a virtual machine (Lua construct) within a virtual machine (MC) within a virtual machine (Java). I've not had any MC mod experience.
Are the following possible:
Are the following possible:
- Threads (coroutines in Lua but they amount to the same thing)
- Passing functions by reference (Lua does it, does CC?)
- Double floating point maths
- OOP, (meta methods and meta tables in Lua - I think)
- Is the memory limited?
- Is storage memory limited (when writing ?
- What's the largest a file can be on a disk?
- Is it possible to do file IO outside of minecraft without going to the net? (I'd imagine not)
- Can you coerce garbage collection?
- Does Lua sit in its own thread or does it run synchronously within Minecraft?
- How is error handling / crash handling performed?
- How do you debug? Write to console?