Search found 45 matches

by Elvashi
Wed Sep 29, 2010 2:01 pm
Forum: Support and Development
Topic: Question about distribution.
Replies: 28
Views: 5346

Re: Question about distribution.

Yeah, and there's also the problem of the choice of integer and floating point used to compile Lua. But since we're in a controlled environment here, using the luac that matches the Lua library [SNIP] You did notice the part about it being idiosyncratic to compilation settings and compiler , didn't...
by Elvashi
Wed Sep 29, 2010 12:44 pm
Forum: Support and Development
Topic: Question about distribution.
Replies: 28
Views: 5346

Re: Question about distribution.

Maybe the easiest thing to do is to compile Lua scripts with luac. [...] There is a complete lundump.c written by Luiz Henrique de Figueiredo , one of the Lua authors, that does byte-swapping so compiled scripts can be run on any platform despite endian mismatches between it and the compiled script...
by Elvashi
Sun Aug 22, 2010 5:38 am
Forum: General
Topic: LÖVE-Party First Movements
Replies: 4
Views: 1154

Re: LÖVE-Party First Movements

FelipeBudinich wanted me to stick this up here, so...done! ^_^
by Elvashi
Sat Jul 17, 2010 5:25 pm
Forum: Support and Development
Topic: Compiling Lua Project from Source
Replies: 13
Views: 1914

Re: Compiling Lua Project from Source

Along with that, you could always create an external library then import it from Lua. That wouldn't really offer much improvement, you still need to ship the binary module with your game (and they can't be placed in lovechives, nor should they.), and you'd still have to provide versions for every p...
by Elvashi
Sun Jul 11, 2010 12:41 pm
Forum: Support and Development
Topic: Distributing your games (making a .love file)
Replies: 270
Views: 350251

Re: Distributing your games (making a .love file)

What'd be cool is something that could read LOVE Lua files and then transforming them into pure machine code, which would solve the iPhone licensing problem. However, this would be impossibly hard work. Last I heard, Apple themselves solved the iPhone licensing problem by revising the license; they...
by Elvashi
Fri Jul 02, 2010 7:38 am
Forum: Libraries and Tools
Topic: Hourglass - Basic Timer Library v0.7!
Replies: 14
Views: 3984

Re: Hourglass - small timer library

I'd suggest using the functions in love.timer.*, rather than os.*. other than that, looks fine.
by Elvashi
Fri Jun 25, 2010 6:33 am
Forum: Support and Development
Topic: Profiler
Replies: 14
Views: 3545

Re: Profiler

While leaks are something of a non-issue in Lua, for once I'm actually going have to agree with Luiji, Love needs a profiler. if it has one, then it needs to be more widely mentioned. Guessing at what is and isn't performant is largely a fool's game, but we don't really have the tools to easily do o...
by Elvashi
Thu Jun 24, 2010 6:20 am
Forum: Support and Development
Topic: Placing Math functions into globals...
Replies: 19
Views: 1469

Re: Placing Math functions into globals...

Okay, so global shortenings have no performance advantage or disadvantage. Shortening "love.graphics.foo" to the global "foo" avoids two lookups, one in _G (for 'love'), and one in love (for 'graphics'), replacing them with just one global look-up (for 'foo'). its still slower than making foo a loc...
by Elvashi
Thu Jun 24, 2010 6:17 am
Forum: General
Topic: Using LuaGL with LÖVE
Replies: 18
Views: 4791

Re: Using LuaGL with LÖVE

@ Pekka The problem is that native library loading in Love is something of an elephant in the room . No one wants to talk about it, since both sides suck, so we try not to bring it up. You can't really take the side that it should be disabled, since its too damned useful; We can't integrate everythi...
by Elvashi
Thu Jun 24, 2010 3:22 am
Forum: Support and Development
Topic: Placing Math functions into globals...
Replies: 19
Views: 1469

Re: Placing Math functions into globals...

*Deep breath* 1. Locals can be defined outside of functions and within a file. Locals can be defined inside a function. and everything is a function. as far as lua is concerned, the entire file is one big function(...) (that is, varadic) 2. By defining a global to direct to a global function, you a...