Im using the lua.vm.js javascript library in order to get some lua code to execute in javascript. The code works fine(its a very simple lua example) but I cant get any variables declared in Lua into my javascript context.  The REPL from the project a...
Considering the following requirementes:   Must be supported on Windows.  Preferably works also on other platforms. Must support multi threading.  By that I mean that the engine can work in parallel in multiple threads. Readability is important. Lic...
In Lua, is there an equivalent of Javascript's apply() function?...
I'm a JavaScript developer who's learning Lua. I'm stuck with a problem of getting a function's arity in the Lua language.  In JavaScript, it's simple:  function test (a, b) {} console.log(test.length) // 2   How is it possible to...
I am writing a graphics application in Java. Eventually I would like to build in a scripting language so things are programmable. Which language library do you recommend?  Likely suspects are:   Rhino (JavaScript) JRuby (Ruby) Jython (Python)   Less...
I've read the following QAs and all of them examine using prototypical inheritance to simulate classical inheritance.  Good Example of JavaScript's Prototype-Based Inheritance  javascript inheritance  Using inheritance patterns in JavaScript...
I want to define a behavior on Javascript objects that kicks in when the referenced attribute/method doesn't exist. In Lua you can do this with metatables and the __index & __newindex methods.   --Lua code o = setmetatable({},{__index=functio...
I'd like to provide end-user scripting (that would run server-side) in an application. I've been reading around, and found that sandboxing is much more of a problem than I thought.  I don't really care what the language is. LUA, Python, J...
Lua is small and can be easily embedded. The current JavaScript VMs are quite big and hard to integrate into existing applications. So wouldn't it be possible to compile JavaScript to Lua or Lua bytecode? Especially for the constraints in mobile...
I am going to work on my new project where client has demanded to use 'Lua' if possible, I have never used it before and by searching on it I found it is fast compare to javascript and getting popular nowadays.  As I am very confused I had n...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.