Skip to content

Instantly share code, notes, and snippets.

@daurnimator
Created November 24, 2013 13:52
Show Gist options
  • Save daurnimator/7627513 to your computer and use it in GitHub Desktop.
Save daurnimator/7627513 to your computer and use it in GitHub Desktop.

Moonshine questions

https://github.com/gamesys/moonshine/

What is your table representation?

  • Weak tables?
  • non-string keys?
  • ES6 maps?
  • issues with 'hasOwnProperty'?

Multiple VMs?

  • Marshalling?

Globals?

  • noconflict?

Benchmarks?

Multiple return values

Browser Compatability?

  • IE?
  • Fallback to flash?

Source Maps

  • Use of normal chrome debugger

Code size

  • Dead code elimination?

"Browser Library"

  • Storage via localStorage?
  • Events?

Lua Standard library

  • Can probably write most function in lua itself...

    • coroutine.wrap
  • date stuff looks needlessly complex?

  • patterns: Just translate the original processing code to js; it's not complex.

  • dofile is just loadfile()()

  • select: just use slice??

  • xpcall error in error handler?

  • debug library: why not implemented?

  • table.getn doesn't just use length operator?

Lua 5.2?

Error compatability: rethrowing over js lua barrier?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment