{"id":15642847,"url":"https://github.com/neopallium/slua","last_synced_at":"2025-04-30T10:05:14.688Z","repository":{"id":869838,"uuid":"609408","full_name":"Neopallium/slua","owner":"Neopallium","description":"Static lua compiler - Compile Lua code into C code.","archived":false,"fork":false,"pushed_at":"2012-09-17T08:42:28.000Z","size":640,"stargazers_count":70,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-25T06:43:23.934Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Neopallium.png","metadata":{"files":{"readme":"README","changelog":"HISTORY","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-04-14T01:15:03.000Z","updated_at":"2025-02-17T19:01:46.000Z","dependencies_parsed_at":"2022-07-31T11:48:06.882Z","dependency_job_id":null,"html_url":"https://github.com/Neopallium/slua","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neopallium%2Fslua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neopallium%2Fslua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neopallium%2Fslua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neopallium%2Fslua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neopallium","download_url":"https://codeload.github.com/Neopallium/slua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242635331,"owners_count":20161437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T11:57:47.979Z","updated_at":"2025-03-09T02:30:38.800Z","avatar_url":"https://github.com/Neopallium.png","language":"C","readme":"README for slua\n\n=== Requires ===\n\n=== Compile ===\n * mkdir build\n * cd build\n for Release build:\n * cmake .. -DCMAKE_BUILD_TYPE=Release\n for Debug build:\n * cmake .. -DCMAKE_BUILD_TYPE=Debug\n * make\n\n=== Install ===\n * make install\n\n=== Patches to lua/src ===\n * Emergency Garbage Collector: http://lua-users.org/wiki/EmergencyGarbageCollector\n * LuaCoco-1.1.6: http://luajit.org/coco.html + (x86_64 support added)\n * a few hooks where added to support static compiled functions.\n\n=== Programs ===\n * slua: This command can be used to run Lua script.  It doesn't have JIT support!\n * sluac: This command compiles Lua scripts into C code which calls lua vm ops functions.\n * slua-compiler: This is a bash script that wraps sluac to compile Lua scripts into standalone executables or loadable modules.\n\n=== Libraries ===\n -- static \u0026 dynamic libraries for linking into host app.\n * libslua_static.a \u0026 libslua.so\n\n -- Used for compling Lua scripts to standalone executables.\n * liblua_main.a\n\n=== Using slua ===\n'sluac' alone can only compile Lua scripts to Lua bytecode or C code.  A wrapper script called 'slua-compiler' is provided that wraps 'sluac' and gcc.\n\nCompile standalone Lua script:\nslua-compiler script.lua\noutputs: ./script\n\nCompile Lua script as a module:\nslua-compiler -lua-module script.lua\noutputs: ./script.so\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneopallium%2Fslua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneopallium%2Fslua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneopallium%2Fslua/lists"}