• develephant

    Hi,

    I have a few questions, that probably have obvious answers, but here goes:

    1. Is the idea to have a compiled version of the available sources in the package distribution? Or is it just the .c and .h with available platform build scripts that the client handles?

    2. I'm using Drone.io to compile and backup my Linux64 sources . Drone also has a number of other tools (and I think you can apt-get), I'm a compiler newbie, but does any of this give me the means to compile for other platforms beside Linux32/64?

    The virtual machine is pre-installed with the following software:
    gcc
    clang
    ia32-libs
    make
    autoconf
    automake
    cmake
    scons
    libtool
    build-essential
    libssl-dev
    Please note that Virtual Machines run 64-bit Linux, however, ia32-libs are included if you want to compile for 32-bit.

    1. Which files do I need to prefix 'lib' to? I get an error during one of the build steps if it does not find a 'lib' prefix on the file. I was under the impression that you were not supposed to include anything but the name.

    2. Can I compile for 32bit OSX on Yosemite 64? If so, any good references?

    3. I have mgit installed in /usr/local/bin, which works great globally. But even if I drop the luapower-repos in there, it seems like I still need to pull luapower-repos in any project directory I'm in. Is there a way to install the luapower-repos somewhere (probably not /usr/local/bin) and specify a custom path for mgit to use? This would be for a development scenario.

    4. Am I asking too many questions?

    Thanks in advance.

    Cheers.

    posted in General Discussion read more
  • develephant

    Hi,

    Thanks for explaining the doc process. I'm still learning all the little details, and will rethink this a bit as well.

    Unqlite is more similar to Redis -- as a key/data store. Though much lighter in functionality. UnQLite can also emulate most MongoDB like functionality with its built in "Jx9" (basically JSON) internal scripting language. That is the part I'm trying to get working now, but having some trouble with a pointer error. So right now I only have the key store binded, with the transactions working as well. It's a continuation of a binding someone else started.

    SQlite is more similar to mySQL - SQL based. I still want to work on a SQLite package, but UnQLite ended up being a better option for me to learn FFI with.

    I've never touched C until luapower, and I've always wanted to learn more about FFI. You have succeeded at both, and now my mind is going crazy with ideas. Thanks for that. :p

    "Edit on Github" button is a good idea. I'll run through the process. I really enjoy documenting and distilling down ideas and workflows. My philosophy is "People are not programmers", so simple documentation allows your project to relate to more people and gain more traction, as most are just hacking about anyway, in my experience.

    Cheers.

    posted in General Discussion read more
  • develephant

    Hi,

    It's kind of a hybrid of wiki and docs. It does generate the docs from your repo, but not from your source, you write in markdown and can add a config to customize some of it. I've got one running here for a Luapower package I am almost done with. http://luapower-unqlite.readthedocs.org/ (work in progress).

    It's just an option, it also hooks directly to your repo pushes. If you add a link to your repo, you can have others edit it as well via GitHub. A straight wiki would be nice though. Just throwing out suggestions.

    Cheers.

    posted in General Discussion read more
  • develephant

    I've used https://readthedocs.org/ before, you can actually self-host the app, but the accounts are free, so it may not be worth the hassle.

    The other one I have used is mkdocs, for markdown, but I'm not sure how "community" oriented that one is as far as editing pages, etc.

    Readthedocs is basically a "documentation" wiki.

    Cheers.

    posted in General Discussion read more
  • develephant

    The only thing I don't like about GitHub wikis is you can't do much with page/topic/toc arrangement, which I think is important.

    Does the forum have wiki support? The closer, the better.

    Cheers.

    posted in General Discussion read more
  • develephant

    Hi,

    Have you considered a wiki for luapower? I would be more than happy to contribute to docs, tutorials, etc. as I am sure other users would as well.

    It also takes that burden of off you a bit. Anyway, just a suggestion.

    Cheers,

    posted in General Discussion read more
  • develephant

    Excellent. Thank you for the reply.

    Cheers.

    posted in General Discussion read more
  • develephant

    And...one more for now. the libev library would be awesome, but it looks a like a lot of source.

    Source:
    http://dist.schmorp.de/libev/

    Lua:
    https://github.com/brimworks/lua-ev

    posted in General Discussion read more
  • develephant

    Not sure how difficult it would be to get this one in, but it looks like an interesting lib. http://www.sfml-dev.org/download/csfml/

    Would need some FFI love of course.

    http://www.sfml-dev.org/documentation/2.3.2/modules.php

    Cheers.

    posted in General Discussion read more
  • develephant

    https://github.com/cesanta/meerkat could be interesting. Looks like just a .c and .h file.

    posted in General Discussion read more
  • develephant

    Hi,

    Is there a way to get a listing of the current packages, perhaps in a JSON output or something. Either via the LP site, or GitHub?

    I have some ideas to ease building the initial bundle. I created something similar for the Luvit 'Lit' repo that allows you to build the dependency file. It may take a second or two to load the data, it's not optimized.

    I suppose I could scrap the LP site, but I'd rather not. Thanks in advance.

    Cheers.

    posted in General Discussion read more
  • develephant

    I've been looking at compiling the binaries. I've got the files from the sqlite site, so I have a folder with:

    • sqlite3.c
    • sqlite3.h
    • sqlite3ext.h
    • shell.c

    I run gcc (Linux64) on it: gcc -c -O2 -fPIC sqlite3.c

    This generates a nice shiny sqlite3.o file.

    Next, I run it through some more gcc:

    gcc -shared -s -static-libgcc -L. -I. -o libsqlite3.so sqlite3.o

    And then an ar (after making sure to create the 'static' directory):

    ar rcs /opt/app/bin/linux64/static/libsqlite3.a *.o

    I then have a libsqlite3.a file in the 'static' folder. Does this mean that I now have a sqlite3 binary (at least for Linux64) ready to for my build.sh scripts?

    Thanks in advance.

    Cheers.

    posted in General Discussion read more
  • develephant

    Hi,

    I'm going to be spending some time with 'nw' this week. I'm still getting up to speed on the whole LP process, but as someone who has used Luvit and OpenResty to build server side applications for the last couple years (coronium.io is a free cloud stack in Lua), what you have here is nothing short of amazing. I will evangelize the project heavily once I am a little more comfortable with the process since I only just started last week.

    Anyway, I'll be posting some 'getting started' info on my blog. You've got an amazing tool here. I have a number of questions, but will start them as separate topics.

    Cheers.

    Chris | develephant.com | coronium.io | Follow

    posted in General Discussion read more
  • develephant

    Hi,

    I'm sure it's somewhere obvious, but is it possible to build for Linux? I have only seen the .exe and can't seem to find anything about making Linux binaries. Also, is it possible to build headless (non-ui) apps?

    More specifically, is there some way like Bundle that outputs for Linux?

    Thanks in advance.

    posted in General Discussion read more
Internal error.

Oops! Looks like something went wrong!