{"id":25162660,"url":"https://github.com/samyeyo/luadyn","last_synced_at":"2026-05-08T15:41:25.292Z","repository":{"id":276461775,"uuid":"929358351","full_name":"samyeyo/luadyn","owner":"samyeyo","description":"Lua 5.4 interpreter and binary modules without dependency on lua54.dll","archived":false,"fork":false,"pushed_at":"2025-02-08T11:14:05.000Z","size":364,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T12:21:52.703Z","etag":null,"topics":["lua","static","windows"],"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/samyeyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-08T11:10:21.000Z","updated_at":"2025-02-08T11:14:24.000Z","dependencies_parsed_at":"2025-02-08T12:31:58.479Z","dependency_job_id":null,"html_url":"https://github.com/samyeyo/luadyn","commit_stats":null,"previous_names":["samyeyo/luadyn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyeyo%2Fluadyn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyeyo%2Fluadyn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyeyo%2Fluadyn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyeyo%2Fluadyn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samyeyo","download_url":"https://codeload.github.com/samyeyo/luadyn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247015786,"owners_count":20869600,"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":["lua","static","windows"],"created_at":"2025-02-09T03:17:09.090Z","updated_at":"2026-05-08T15:41:20.265Z","avatar_url":"https://github.com/samyeyo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Luadyn 🚀\n\n**Luadyn** is a lightweight project that enables the use of Lua 5.4 interpreter on Windows platform without dependency on the `lua54.dll` library.\n\nLuadyn achieves this by dynamically linking Lua functions at runtime for binary modules, providing greater flexibility and portability for Lua-based projects.\nWhether you're embedding Lua in an application or distributing Lua modules, Luadyn simplifies the process by removing the need for the external `lua54.dll` library, while still being able to use binary modules, making your deployments cleaner and more self-contained.\n\n---\n\n## Features\n\n- **No Dependency on Lua 5.4 Shared Library**: Luadyn eliminates the need for the `lua54.dll` library.\n- **Lua binary modules support**: Lua binary modules are dynamically linked at runtime to the interpreter, providing flexibility and reducing the overhead of static linking (binary modules must be linked to `luadyn.lib` instead of `lua54.lib`)\n- **Portable**: Luadyn makes it easier to distribute Lua-based applications or modules without worrying about external dependencies.\n- **Compatible with Lua 5.4**: Fully compatible with Lua 5.4, ensuring you can leverage the latest features of the language.\n\n---\n\n## How It Works\n\nLuadyn dynamically loads the Lua interpreter associated C functions at runtime, bypassing the need for the Lua 5.4 dynamic library. This is achieved through Windows-specific dynamic linking mechanisms. The Lua interpreter must be compiled with the `/DLUA_BUILD_AS_DLL` flag to export its functions.\n\nBy abstracting the dynamic linking process, Luadyn provides a seamless experience for running Lua scripts and modules in environments where the Lua shared library is not available.\n\n---\n\n## Installation\n\nTo use Luadyn, simply clone this repository and build the project in a `Visual Studio Native Tools Command Prompt` console :\n\n```bash\ngit clone https://github.com/yourusername/luadyn.git\ncd luadyn\nnmake\n```\n\nThe build process will generate the Lua interpreter (in the `.\\bin` folder) and the library `luadyn.lib` (in the `.\\lib` folder) to be linked to Lua binary modules instead of `lua54.lib`\n\n---\n\n### Loading Lua Binary Modules\n\nLuadyn allows you to load Lua binary modules (e.g.`.dll` files) without the need of `lua54.dll`. Just link your binary module with  `luadyn.lib` instead of `lua54.lib`. \nTo test Luadyn, you can  use the sample `calc.dll` module that can be compiled using :\n\n```bash\nnmake test\n```\n\nThen, enter the following command to use this module :\n\n```bash\nbin\\lua -e \"calc = require('calc'); print(calc.add(5, 5))\"\n```\n\nIf it outputs `10.0`, the binary module have been successfully loaded without the `lua54.dll` library.\n\n---\n\n## Why Use Luadyn?\n\n- **Simplified Deployment**: Distribute Lua applications without worrying about `lua54.dll` dependencies.\n- **Flexibility**: Dynamically link Lua at runtime, making it easier to adapt to different environments.\n- **Lightweight**: Luadyn is designed to be minimal and efficient, adding no unnecessary overhead to your projects.\n\n---\n\n## License\n\nLuadyn is released under the [MIT License](LICENSE). Feel free to use, modify, and distribute it as needed.\n\n---\n\n## Acknowledgments\n\n- Thanks to Patrick Rapin for its work, on wich Luadyn is based (https://lua-users.org/wiki/EasyManualLibraryLoad)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyeyo%2Fluadyn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyeyo%2Fluadyn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyeyo%2Fluadyn/lists"}