Search found 4 matches

by bs4h
Sun Dec 22, 2013 11:30 am
Forum: Support and Development
Topic: Bundling large libs?
Replies: 6
Views: 2577

Re: Bundling large libs?

Thanks a lot kikito, that was the perfect answer, You're right on lpeg dependency! Didn't pay attention. I've looked at JSON4Lua and it's totally fine. I want to rely on JSON only for loading game data (entity, map definitions, etc), for network I'll probably use a more "packed" format (th...
by bs4h
Sat Dec 21, 2013 3:15 pm
Forum: Support and Development
Topic: Bundling large libs?
Replies: 6
Views: 2577

Re: Bundling large libs?

There: % git clone --depth 1 https://github.com/harningt/luajson.git Cloning into 'luajson'... [snip] % cd luajson % PREFIX=../lib make install mkdir -p ../lib/share/lua/5.1 cp -p -r lua/* ../lib/share/lua/5.1 % cd ../lib % mv share/lua/5.1/* . % rm -rf share % ls json json.lua % cd .. % head -1 mai...
by bs4h
Sat Dec 21, 2013 2:54 pm
Forum: General
Topic: If you were to create a programming language...
Replies: 42
Views: 21765

Re: If you were to create a programming language...

Code: Select all

if i == (i or 2 or 4) then
How about this?

Code: Select all

if i in {1, 2, 4} then
Similar to Python's "in".
by bs4h
Sat Dec 21, 2013 2:39 pm
Forum: Support and Development
Topic: Bundling large libs?
Replies: 6
Views: 2577

Bundling large libs?

Hi all, couldn't figure out how to get Love to love bigger libraries in subdirectores. The one in question is LuaJSON ( https://github.com/harningt/luajson ). I want to keep external dependencies away from my own code, so I'd rather not put random stuff in the package's root folder. The problem pops...