User: Password:
|
|
Subscribe / Log in / New account

GNOME debates Javascript bindings

GNOME debates Javascript bindings

Posted May 21, 2009 10:40 UTC (Thu) by nix (subscriber, #2304)
In reply to: GNOME debates Javascript bindings by elanthis
Parent article: GNOME debates Javascript bindings

Seconded. Also, to be honest, these days Lua probably has *more* people who know how to use it (to some degree) than JavaScript, thanks to Lua's use in major game platforms like WoW. And it's a pretty elegant language as these things go, like Scheme done right and usable by humans who don't think in parentheses.

lua's also got an excellently designed embedding API and FFI from Lua to the embedding host that makes JSC look baroque and SpiderMonkey look horrendous: in fact it's the first embedding API I've seen in years that I'd call pleasant to use. It was designed for embedding, and it shows.

Its only real problem is that some of its more recent features (e.g. modules) are only really documented in a dead-tree book (there's a publically-viewable reference manual, and a user guide for the previous version of lua, but a lot of Lua's power lies in nifty ways of using things, and *that* is only in the dead-tree book so far). Even here it beats JS, though, as all you have with JS is the standard, which is appallingly unreadable even by standards' standards, while the publically-available docs for lua are very well-written (as is the dead-tree book: recommended).


(Log in to post comments)

GNOME debates Javascript bindings

Posted May 21, 2009 12:19 UTC (Thu) by knobunc (subscriber, #4678) [Link]

What is the name of the book? It sounds interesting. Thanks.

GNOME debates Javascript bindings

Posted May 21, 2009 13:40 UTC (Thu) by djerius (subscriber, #4489) [Link]

Programming in Lua
Roberto Ierusalimschy

ISBN 85-903798-2-5

Lua and Javascript alternative: Squirrel

Posted May 21, 2009 19:31 UTC (Thu) by atai (subscriber, #10977) [Link]

People may also be interested in Squirrel, a script language currently used in games and other applications with internals like Lua (especially the embedding API) and a C/C++ like syntax which would make people familiar with C, C++ and Java (and Javascript) feel at home.

http://www.squirrel-lang.org/

GNOME debates Javascript bindings

Posted May 28, 2009 3:05 UTC (Thu) by deunan_knute (guest, #290) [Link]

> Also, to be honest, these days Lua probably has *more* people who know how
> to use it (to some degree) than JavaScript, thanks to Lua's use in major
> game platforms like WoW.

I won't argue Lua's inherent fitness for embedding, but what makes you think Lua has a greater userbase than JavaScript? A quick search for 'javascript programming' at amazon yields 2498 book results, whereas a search for 'lua programming' returns 138. the same search terms on google return 36,200,000 for javascript, 266,000 for lua.

GNOME debates Javascript bindings

Posted May 28, 2009 6:49 UTC (Thu) by nix (subscriber, #2304) [Link]

Wishful thinking? :)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds