Yep, I recommend Lua for everyone who like JavaScript since they are
very similar. Lua in contrast even more flexible and completely
prototype-based. It allows to control different structures of the
language (e.g. change the environment of a function dynamically). There
was a bug in bugzilla (don't remember the number, need to search) which
statements that other scripting languages should be supported as
alternative.
In Firefox there is Python binding, where you can use Python as default
scripting language. I've heard (IIRC, Brendan Eich mentioned) VM for
debugging CoffeeScript will be also implemented in Firefox.
You have another way -- the same as Coffee used -- just write your own
Lua's compiler and execute it directly from browser :P (the same I did
e.g. in my recent project -- just use <script type="text/coffeescript">
... </script>)
P.S.: Today Lua is actively used for scripting most of the popular games
(WoW I've heard is also scripted on Lua, though I don't play the WarCraft).
Dmitry.
On 11.02.2011 17:24, Adrian Olaru wrote:
I'm just wondering, why don't we have by now a Lua alternative to
JavaScript in the browsers?
I found Lua to be a good scripting language that has a lot of things
in common with JavaScript. Don't get me wrong, I like coding in
JavaScript but the language it's not perfect. And yet it still is the
only language of the web, although small, fast scripting languages
such as Lua exists for some time now.
Just a thought. :)
Cheers,
Adrian
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]