{"id":15722532,"url":"https://github.com/indiesoftby/defold-lua51","last_synced_at":"2025-05-13T03:43:51.670Z","repository":{"id":199055393,"uuid":"701735283","full_name":"indiesoftby/defold-lua51","owner":"indiesoftby","description":"Enables the vanilla Lua 5.1 interpreter instead of LuaJIT on desktop platforms. ","archived":false,"fork":false,"pushed_at":"2023-10-08T10:21:32.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-01T06:17:02.598Z","etag":null,"topics":["defold","defold-game-engine","defold-module","lua","luajit"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/indiesoftby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-07T12:13:43.000Z","updated_at":"2024-12-07T12:08:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffc37e8e-531f-4610-ba9c-ed788ebccca7","html_url":"https://github.com/indiesoftby/defold-lua51","commit_stats":null,"previous_names":["indiesoftby/defold-lua51"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiesoftby%2Fdefold-lua51","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiesoftby%2Fdefold-lua51/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiesoftby%2Fdefold-lua51/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiesoftby%2Fdefold-lua51/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indiesoftby","download_url":"https://codeload.github.com/indiesoftby/defold-lua51/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253870822,"owners_count":21976610,"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":["defold","defold-game-engine","defold-module","lua","luajit"],"created_at":"2024-10-03T22:08:19.746Z","updated_at":"2025-05-13T03:43:51.643Z","avatar_url":"https://github.com/indiesoftby.png","language":"C","readme":"# Lua 5.1 for Defold\n\nA quick way to replace LuaJIT with Lua 5.1 (PUC Rio version, i.e. interpreted) on desktop platforms to run the game as on the Defold HTML5 platform.\n\n## Explanation\n\nDefold aims to keep Lua the same across all platforms, but it currently has a few minor discrepancies in Lua language version between platforms:\n\n| Platform        | Lua version         | JIT Enabled |\n|-----------------|---------------------|-------------|\n| Windows         | LuaJIT 2.1.0-beta3  | Yes         |\n| macOS           | LuaJIT 2.1.0-beta3  | Yes         |\n| Linux           | LuaJIT 2.1.0-beta3  | Yes         |\n| Android         | LuaJIT 2.1.0-beta3  | Yes         |\n| iOS             | LuaJIT 2.1.0-beta3  | No          |\n| Nintendo Switch | LuaJIT 2.1.0-beta3  | No          |\n| **HTML5**       | **Lua 5.1.4**       | N/A         |\n\nThere is a HUGE performance gap between Lua and LuaJIT. If your primary target development platform is HTML5, it's important to see the actual performance of Lua as if it were running on HTML5 while developing on a PC/Mac/Linux computer.\n\n## Usage\n\nAdd this project as a [Defold library dependency](http://www.defold.com/manuals/libraries/). Open your `game.project` file and in the dependencies field under project add:\n\nhttps://github.com/indiesoftby/defold-lua51/archive/main.zip\n\nCheck:\n\n```lua\nif jit then\n    -- LuaJIT!\nelse\n    -- Lua 5.1!\nend\n```\n\n## Credits\n\nThis project is licensed under the terms of the MIT license. The implementation is extracted from the [lmprof](https://github.com/defold/extension-lmprof) extension.\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Programming Language"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findiesoftby%2Fdefold-lua51","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findiesoftby%2Fdefold-lua51","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findiesoftby%2Fdefold-lua51/lists"}