Gravatar

Re: i like lua

On Sunday 30 November 2008, Petite Abeille wrote:
> On Nov 30, 2008, at 10:22 PM, joris verrips wrote:
> > ok i will but would be amazed if everything runs well after that.
>
> Get a copy of Roberto Ierusalimschy's "Programming in Lua" (aka PiL):

and don't hesitate to ask anything here.  even if sometimes the themes delve 
into deep technical details, this community is notoriously open to help 
anybody at any level.

:-)

--

-- 
Javier
Simon Lundström | 1 Dec 11:51
Picon
Gravatar

luarocks not finding pcre for lrexlib-pcre on OS X

Hello,

I'm trying to install lrexlib-pcre via luarocks on Mac OS X where I have 
installed pcre via MacPorts. MacPorts puts its files in /opt/local so 
luarocks doesn't find pcre.h. That should be solved by setting PCRE_DIR 
to /opt/local/include/ but it doesn't.

bash-3.2# file /opt/local/include/pcre.h
/opt/local/include/pcre.h: ASCII c program text
bash-3.2# export PCRE_DIR=/opt/local/include/
bash-3.2# luarocks install lrexlib-pcre
Installing 
http://luarocks.luaforge.net/rocks/lrexlib-pcre-2.3.0-1.src.rock...
Archive: 
/tmp/luarocks-rock-lrexlib-pcre-2.3.0-1-1335/lrexlib-pcre-2.3.0-1.src.rock
   inflating: lrexlib-pcre-2.3.0-1.rockspec
  extracting: lrexlib-2.3.0.zip

Error: Could not find expected file pcre.h for PCRE -- you may have to 
install PCRE in your system and/or set the PCRE_DIR variable

Thanks,
- Simon

pan shizhu | 1 Dec 15:22
Picon

Re: i like lua


On Sunday 30 November 2008, Petite Abeille wrote:
>
> Get a copy of Roberto Ierusalimschy's "Programming in Lua" (aka PiL):

I think the best approach is to read PiL and the Manual simultaneously. They talk Lua from very different point of view and both are very helpful.

--
Pan, Shi Zhu
Gavin Wraith | 1 Dec 15:49

Re: i like lua

In message <438c11350812010622u174ba20cx8e3b86fe3282d36 <at> mail.gmail.com>
you wrote:

> I think the best approach is to read PiL and the Manual simultaneously. They
> talk Lua from very different point of view and both are very helpful.

Agreed. Just in case it might be helpful to a newcomer, let me mention
http://www.wra1th.plus.com/lua/book/contents.html . Although it was
written for a particular dialect of Lua on a particular platform, some
newcomers, especially those who have met BBC Basic, may find one or two
points useful.

--

-- 
Gavin Wraith (gavin <at> wra1th.plus.com)
Home page: http://www.wra1th.plus.com/

Evan DeMond | 1 Dec 15:52
Picon

Re: i like lua

Everything mentioned above are great resources, but to learn any language, you'll also just need to write lots of programs in it. =) I find that I never really master the finer points of a language until I run into problems that those features would help me solve. (For me, it was metatables...)

Good luck and don't be afraid to ask the list about stuff!

Evan

Ralph Hempel | 1 Dec 16:07

Re: i like lua

joris verrips wrote:
> i like lua but need some help to learn it well. is there anybody in 
> amsterdam who would like to help me out?
> joris verrips j.verrips <at> planet.nl

You can also buy yourself a LEGO MINDSTORMS NXT and load pbLua
on it for a fun way to explore Lua with LEGO robotics!

<http://www.hempeldesigngroup.com/lego/pblua>

There's an active LEGO MINDSTORMS community in Amsterdam and
a bit of googling will help you locate them...

Ralph

Jeff Pohlmeyer | 1 Dec 16:14
Picon

Re: i like lua

On Sun, Nov 30, 2008 at 2:04 PM, joris verrips <j.verrips <at> planet.nl> wrote:

> i like lua but need some help to learn it well.

Another handy link:
  http://lua-users.org/wiki/TutorialDirectory

 - Jeff

Stefan Sandberg | 1 Dec 16:25
Picon

Re: Mumbai: we will not be divided

This list is not a political canvas.

Yogesh wrote:
> Hi,
>
> I just signed an urgent message calling for unity following the 
> attacks in Mumbai. Read the email below - Thanks
>
> --------------------------
>
> Dear friends across India and the world,
>
> We're all feeling the shock of the awful attacks in Mumbai. All our 
> hearts go out to the victims and their families.
>
> The attacks were aimed at our people, our prosperity and our peace. 
> But their top target was something else: our unity. If these attacks 
> cause us to turn on each other in hatred and conflict, the terrorists 
> will have won. They know that hatred and chaos feed on division. As 
> radical extremists, their only hope of winning is by turning the rest 
> of us against each other.
>
> Let's deny them that victory. We're launching a message to extremists 
> on all sides and all our political leaders, one that will soon be 
> published in newspapers across India and Pakistan. The message is that 
> these tactics have failed, that we're more united than ever, united in 
> our love and support to each other, determined to work together 
> against terror and call on our leaders to do the same. If millions of 
> people sign it, our message will be unmistakable, click below to sign 
> it and please forward this email widely:
>
> http://www.avaaz.org/en/india_undivided/98.php/?cl_tf_sign=1
>
> It's time to speak out, let's do it together.
>
> Thanks
> --------------------------------
>
> OPENTRACK
>
> --
> www.chotanarad.com
>
> You are receiving this email because someone sent it to you via the 
> "tell-a-friend" tool at Avaaz.org. Avaaz retains no information about 
> individuals contacted through this tool. Avaaz will not send you 
> further messages without your consent--although your friends could, of 
> course, send you another message. 

KHMan | 1 Dec 16:33
Picon

Re: [Q] simple translator from Lua to Java Script and PHP

David Manura wrote:
> On Thu, Nov 13, 2008 at 6:51 PM, Fabien wrote:
>> A more challenging approach would be to try to keep the generated code as
>> structurally similar as possible to the original Lua input. Of course, the
>> more "tricky primitives" you rule out (setfenv, setmetatable, coroutine.*,
>> ...), the easier it is to achieve structural integrity;...
>> A more interesting approach would be a gracefully degrading one: as your
>> program start to introduce usage of trickier primitives, you "degrade" to
>> more faithful but less readable translation schemes.
> 
> Some observations...
> [snip]
> 
> Now, the effort to reimplement Lua in Lua[1] is interesting here.  If
> you want to reimplement Lua in some language X (e.g. JavaScript), it
> can be sufficient to write a translator that translates code to X from
> the subset of Lua that the Lua-in-Lua code uses because then you can
> use that translator to convert Lua-in-Lua to X. [snip]

A rather belated comment... There was a project by a Japanese 
developer that implemented the VM portion in Lua... not sure if 
it's listed in the wiki, but it popped up on the list before.

Anyway, regarding Yueliang (ref [1]), it's being hacked on a very 
casual basis, and a back-end (VM) is unlikely for now because I 
haven't found an application that is useful enough to apply it to. 
Effort on Yueliang's front end portions were prompted by 
LuaSrcDiet. The possibility of Lua on Lua or Lua on JavaScript 
haven't been as appealing because I have no immediate use for 
those things for now. I am currently just aiming for a native code 
generator with copious documentation. Just FYI in case anyone is 
waiting for progress or anything like that.

> [snip]
> [1] http://yueliang.luaforge.net/
> [2] http://lua-users.org/wiki/StringLibraryInLua
> [3] http://lua-users.org/wiki/LuaInterpreterInLua
> [4] http://lua-users.org/wiki/LuaToCee
> [5] http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
> [6] http://math2.org/eulermb/pod/EulerMB/Coroutine.html
> [7] http://code.google.com/p/mochalua/

--

-- 
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Jerome Vuarand | 1 Dec 19:10
Picon
Gravatar

Re: Unidecode - US-ASCII transliterations of Unicode text

2007/8/30 PA <petite.abeille <at> gmail.com>:
>
> http://dev.alt.textdrive.com/browser/HTTP/Unidecode.lua
> http://dev.alt.textdrive.com/browser/HTTP/Unidecode
>
>
> A frivolous port of Sean M. Burke's Text::Unidecode:
>
> http://interglacial.com/~sburke/tpj/as_html/tpj22.html
> http://search.cpan.org/~sburke/Text-Unidecode-0.04/lib/Text/Unidecode.pm

I just used this Unidecode module in a small project, and it has been
very useful. However since it has many files and I didn't find how to
download them at once from Trac, I used the nanoki tarball to get it.
Is the module available somewhere separately ? And if not would you
consider releasing it in its own tarball ?


Gmane