title: Is there a sandboxable compiled programming language simililar to lua
body: <p>I'm working on a crowd simulator. The idea is people walking around a city in 2D. Think gray rectangles for the buildings and colored dots for the people. Now I want these people to be programmable by other people, without giving them access to the core back end.<br>
  I also don't want them to be able to use anything other than the methods I provide for them. Meaning no file access, internet access, RNG, nothing.<br>
  They will receive get events like "You have just been instructed to go to X" or "You have arrived at P" and such.<br>
  The script should then allow them to do things like move_forward or how_many_people_are_in_front_of me and such.<br>
  Now I have found out that Lua and python are both thousands of times slower than compiled languages (I figured it would be in order of magnitude of 10s times slower), which is way to slow for my simulation.<br>
  So heres my question: Is there a programming language that is FOSS, allows me to restrict system access (sandboxing) the entire language to limit the amount of information the script has by only allowing it to use my provided functions, that is reasonably fast, something like &lt;10x slower than Java, where I can send events to objects inside that language with which I can load in new Classes/Objects on the fly.</p>