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-27 2:30

>>63

once you start using all of lua's features, it gets a little insane. you can write some functions, start mapping tables, mapping iterators, composing iterators with functions, using coroutines to abstract complex algorithms as iterators, have multiple algorithms passing values back and forth to each other, using composed functions to apply filters to their inputs and outputs. The ease of functional programming is there, but there is also the convenient data entry. And it's fast, which is nice. The lack of static typing makes things hairy once it gets large though. More time is spent debugging and testing. But it can be nice for doing some quick table crunching. Although it doesn't come close to perl for text processing.

Name: Anonymous 2012-01-27 2:30

>>64

eh, you should learn more about lua.

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