Luastatic

Dev tools

build tool

SHOW HN2015

44points
13comments
#658of 2,565 in 2015
Top 26%of 2015 by points

How HN took it

CuriousMostly questions and neutral comments

3 positive, 7 neutral or asking, 0 mixed, 0 critical, out of 10 comments about the project. Thread score +0.24.

Performance: 2 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Small output binaries compared to alternatives

    From 1 comment
    • Pretty good size: 214K (on amd64 Linux): ``` $ ls -lhd hello -rwxr-xr-x 1 admin admin 214K Oct 26 09:53 hello $ ldd hello linux-vdso.so.1 (0x00007fff5f5ff000) libm.so.6 =>…
      motiejus on HN

Requests

  • LuaJIT support

    From 1 comment
    • LuaJIT will be supported in the future. I will take a look at Terra.
      ers35 on HN
  • LuaRocks integration

    From 1 comment
    • Lua binary modules are supported by referencing the path to the module's static library and any dependent libraries. Used packages are not automatically pulled in. LuaRocks…
      ers35 on HN

Questions

  • Why luac output cannot be linked into a static library

    From 1 comment
    • That's a neat trick! Is there any reason you can't do this with luac? I tried the equivalent to what you're doing with luac, but gcc complains that "member libmylib.a(luafunc.o)…
      0x01 on HN

Alternatives named

  • LuaJIT bundling with ar and gcc

    From 1 comment
    • You can do this in Luajit with the following trick: ``` for f in *.lua; do luajit -b $f `basename $f .lua`.o done ar rcus libmylib.a *.o gcc -o myexe main-stub.c…
      camperman on HN
  • squish

    From 1 comment
    • For multiple lua files, you can first bundle them into a single lua file using squish.[0] [0]: https://github.com/LuaDist/squish
      larme on HN
  • Luvi

    From 1 comment
    • Also check: Bundle [1], using LuaJIT Luvi [2], which is also able to generate a single file executable and you can include static resources. [1] https://luapower.com/bundle [2]…
      fasteo on HN
  • PyInstaller

    From 1 comment
    • Similar project for Python: http://www.pyinstaller.org/ Works with multiple source files and supports widely used Python modules out of the box.
      unmole on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/10449383)