Farai Aschwanden wrote: > Hmm true for file opening. Adding paths needs the OS module, but you're > right. > > I like the way Brian just sent before. I dont know any language that > restricts its usage (would be neat feature for certain projects).
Check PLT-Scheme for example. Neko also seems securable. An of course LPC (search for DGD). The endless loop thing can be solved by multithreading and killing any threads that run to long.
That's not really a solution, pthreads can't be reliably killed. You'd still need a different abstraction that guarantees that you can kill threads in a reasonable amount of time.
You may want to take a look at embedding SpiderMonkey. It's designed to meet all of the given constraints (for the browser environment), and it's a language that's well known and easily learned (JavaScript).