Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

javascript vs lua

Name: Anonymous 2012-01-24 20:47

let's say i might be working on something ``secret'' and i want to embed a scripting language that isn't too off the wall for end users. i hear luajit is kinda fast and v8 is really fast and speed would be quite nice since user scripts might be called hundreds of thousands of times in short timeframes

i've heard javascript has better semantics and is generally more pleasant to use, but i want /prog/'s opinion so i don't fuck up and regret it later

Name: Anonymous 2012-01-26 8:00

>>24
Are we talking about the same language? Lua isn't as nice to program in as ruby/python because of how minimal it is but it has very simple and sane semantics. Javascript on the other hand with its mess of undefined/false/zero values, different comparison operators, often unintuitive coercions, control structures not making a new scope so you have to use this abomination:

for(i=0;i<something;i++){
  function(localvar){
    ...
  }(i)
}


etc. has horrible semantics.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List