?

Log in

No account? Create an account
Passing the moon - Off in the distance
browse
my journal
links
May 2016
 

The Bellinghman
Date: 2010-03-23 11:02
Subject: Passing the moon
Security: Public
Good grief, Lua is a lightweight language. I just built it from source, and it took almost no time at all.

OK, now here's to see how happily it compiles within a project.
Post A Comment | 11 Comments | | Link






Just a random swede
User: vatine
Date: 2010-03-23 11:13 (UTC)
Subject: (no subject)
If build-time is the only metric for language-weight, then Go is an exceedingly light-weight language too.
Reply | Thread | Link



The Bellinghman
User: bellinghman
Date: 2010-03-23 12:02 (UTC)
Subject: (no subject)
I'll let that one cook a bit longer, I think.
Reply | Parent | Thread | Link



Just a random swede
User: vatine
Date: 2010-03-23 13:35 (UTC)
Subject: (no subject)
It is probably worth noting that "fast compilation" was one of the core criteria in designing Go and that the Go compiler is written in Go, so the fact that it's fast to compile isn't exactly surprising.
Reply | Parent | Thread | Link



The Bellinghman
User: bellinghman
Date: 2010-03-24 10:33 (UTC)
Subject: (no subject)
Maybe.

In this case, I'm looking for a language designed for exactly what Lua is targetted towards - embedding in a larger program. I already have an embedded language but, to be honest, it's pretty crap. In fact, it's distinctly weird, being designed by someone who was not a language designer, and who had no clue about how to design and implement an interpreter. Adding either floating point handling or the ability to define functions would take more time than embedding Lua would.

(It's better than nothing, and some users have done some impressive things with it.)
Reply | Parent | Thread | Link



Just a random swede
User: vatine
Date: 2010-03-24 14:56 (UTC)
Subject: (no subject)
Sounds like Lua is a perfect fit and from what I understand, embedding Lua is indeed a pretty common thing.
Reply | Parent | Thread | Link



Tony Finch
User: fanf
Date: 2010-03-23 11:52 (UTC)
Subject: (no subject)
Not using autoconf helps a lot :-)

I rather like Lua. If you end up using it heavily there's also LuaJIT which is blazingly fast :-)
Reply | Thread | Link



The Bellinghman
User: bellinghman
Date: 2010-03-23 12:02 (UTC)
Subject: (no subject)
I had noticed some posts from you about it.

The last time I embedded a scripting language, it was Perl 5. Porting the resulting code to unusual operating systems has been interesting, especially the Java <-> Perl bridge. (Well, IBM's i5/OS is relatively obscure, compared to the normal stamping grounds.) A language that compiles straight out of the box without warnings on the first couple of compilers I pointed at it is a nice change.
Reply | Parent | Thread | Link



Tony Finch
User: fanf
Date: 2010-03-23 12:08 (UTC)
Subject: (no subject)
Yes, one of core Lua's basic goals is a pure standard C implementation, which is why its standard library is so meagre - but then it's also designed to be embedded, so your app is the library.
Reply | Parent | Thread | Link



irishkate
User: irishkate
Date: 2010-03-23 12:03 (UTC)
Subject: (no subject)
I read that as "Lua is a lightweight luggage" and was totally confused.
Reply | Thread | Link



The Bellinghman
User: bellinghman
Date: 2010-03-23 12:08 (UTC)
Subject: (no subject)
And this is unusual in what way ...?

(Runs away before Kate can throw something hard.)
Reply | Parent | Thread | Link



irishkate
User: irishkate
Date: 2010-03-23 12:21 (UTC)
Subject: (no subject)
giggles and (since it is expected and I ALWAYS do what is expected of me) *reaches for a ball of wool and throws it*
Reply | Parent | Thread | Link