Search found 211 matches

by Xgoff
Mon Mar 03, 2014 6:04 pm
Forum: General
Topic: What techniques that everyone should know?
Replies: 75
Views: 22818

Re: What techniques that everyone should know?

actually, it could be an issue. the 'n' field was (unfortunately) reintroduced to some extent in 5.2 via table.pack :( I would have made it return two values instead (the array + len). I do that all the time. yeah, i wondered myself why they never did that... especially since none of the other non-...
by Xgoff
Mon Mar 03, 2014 5:01 pm
Forum: General
Topic: Compiling With Lua 5.2 Compatibility
Replies: 9
Views: 4939

Re: Compiling With Lua 5.2 Compatibility

just keep in mind that it is far from complete compatibility
by Xgoff
Mon Mar 03, 2014 4:58 pm
Forum: General
Topic: What techniques that everyone should know?
Replies: 75
Views: 22818

Re: What techniques that everyone should know?

This is really clever, I like it, with the exception that something that is array-like wouldn't fit in here. That is to say, if you keep 'n' as the length of the array as a member of the table, then isArray is false. As far as I know, table.getn and table.setn were deprecated in Lua 5.1 and removed...
by Xgoff
Sun Feb 02, 2014 4:28 pm
Forum: General
Topic: AMD mantle?
Replies: 3
Views: 1242

Re: AMD mantle?

i would doubt it; having to maintain gpu-specific optimizations is a lot of work for something like love which is typically cpu-limited anyway
by Xgoff
Tue Nov 12, 2013 7:04 pm
Forum: Support and Development
Topic: Project organisation + Strictness of Lua
Replies: 10
Views: 3269

Re: Project organisation + Strictness of Lua

It also annoys me how functions can be called out of functions. Example of what I would like: function myFunction() print("Lol") end function main() myFunction() end myFunction() -- ERROR i'm going to be "that guy" and mention that technically myFunction is actually being called...
by Xgoff
Wed Oct 30, 2013 6:28 pm
Forum: General
Topic: Graphic tablet
Replies: 6
Views: 3347

Re: Graphic tablet

Hello, Are any of you doing the graphics with a tablet? I find the mouse to be terrible except for pixel art. But most of the time when I draw with a pen/pencil I am almost always satisfied with the results. I used to have a scanner that I had on loan, but now I have to return it. So I was thinking...
by Xgoff
Tue Oct 22, 2013 5:51 pm
Forum: General
Topic: [Lib] Microscope - Create visuals of Lua values
Replies: 5
Views: 2335

Re: [Lib] Microscope - Create visuals of Lua values

that's pretty neat. i did something similar for luajit's -jv dumps but idk what happened to it

shows that graphviz could do some better layout organization lol
by Xgoff
Sat Oct 12, 2013 7:53 pm
Forum: Support and Development
Topic: FPS Question
Replies: 31
Views: 9353

Re: FPS Question

too lazy to check the thread to see if this has already been mentioned, but if you value your sanity, DON'T use fps as a measure of your app's performance; it's non-linear, so you'll start freaking out when it drops like a brick when in reality this isn't doing nearly as much harm as you think. the ...
by Xgoff
Sat Oct 12, 2013 7:24 pm
Forum: Support and Development
Topic: Vector Rotation
Replies: 3
Views: 3088

Re: Vector Rotation

precision issues? (seems kind of excessive though...)
by Xgoff
Sat Oct 12, 2013 6:25 pm
Forum: Support and Development
Topic: table.pack and LOVE
Replies: 33
Views: 11768

Re: table.pack and LOVE

Well, a simple alternative would be to not expose string.match in the first place (set it to nil before executing the protected code, and restore it on exit). I'm already doing that for string.rep. Thanks for the feedback! sure, but then you'll have to deal with people who need patterns for somethi...