by acqq · 12y ago · 0 comments
Once you have Lua with the tons of the packages in different files with the package managers and stuff you lose the benefit of having a small-size-of-the-executable language. I understand that the language author doesn't want to be a part of that.
luapower/lib.lua
luapower/additional-files-for-lib/stuff.lua
Instead of completely encapsulating each package in its own directory: luapower/lib/lib.lua
luapower/lib/stuff.lua
So instead of being able to just cd to luapower and git clone repo, you need to use a silly wrapper script that overlays the repos with each other. All of this presumably because the author wanted to type `require "lib.lua"' instead of `require "lib/lib.lua"'For anyone interested in creating a new language, make your equivalent of `require "lib_directory"' do the equivalent of `require "lib_directory/init.lua"' or `require "libname_directory/libname.lua"' so we don't have this issue.
Then the "getting started" would be
"download luajit
choose/download wanted packages along with their listed dependencies
unzip all over the same directory
(optional) rebuild binaries
(optional) zip all modules to modules.zip. <== new
run a demo: luajit ..._demo.lua
This will give you an instantly portable luajit distro with only a few small files!"
Java also has JAR files which are actually ZIPs.