{"id":21071586,"url":"https://github.com/esrrhs/fakelua","last_synced_at":"2025-05-16T05:31:37.628Z","repository":{"id":41369580,"uuid":"329184073","full_name":"esrrhs/fakelua","owner":"esrrhs","description":"FakeLua is a dialect of Lua that compiles Lua into native code at runtime.","archived":false,"fork":false,"pushed_at":"2025-04-30T08:39:26.000Z","size":1546,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T09:44:02.578Z","etag":null,"topics":["jit","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/esrrhs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-01-13T03:35:29.000Z","updated_at":"2025-04-30T08:39:29.000Z","dependencies_parsed_at":"2023-12-21T04:41:14.424Z","dependency_job_id":"326cd344-dc8b-406c-bb6b-5c9e309de224","html_url":"https://github.com/esrrhs/fakelua","commit_stats":{"total_commits":150,"total_committers":3,"mean_commits":50.0,"dds":"0.053333333333333344","last_synced_commit":"38ea322d49d1520d4f7a7615f65be0899724ff30"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esrrhs%2Ffakelua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esrrhs%2Ffakelua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esrrhs%2Ffakelua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esrrhs%2Ffakelua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esrrhs","download_url":"https://codeload.github.com/esrrhs/fakelua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254474215,"owners_count":22077243,"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":["jit","lua","luajit"],"created_at":"2024-11-19T18:53:40.817Z","updated_at":"2025-05-16T05:31:37.610Z","avatar_url":"https://github.com/esrrhs.png","language":"C++","readme":"# FakeLua(Work in process)\n[\u003cimg src=\"https://img.shields.io/github/license/esrrhs/fakelua\"\u003e](https://github.com/esrrhs/fakelua)\n[\u003cimg src=\"https://img.shields.io/github/languages/top/esrrhs/fakelua\"\u003e](https://github.com/esrrhs/fakelua)\n[\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/esrrhs/fakelua/build.yml?branch=master\"\u003e](https://github.com/esrrhs/fakelua/actions)\n[![codecov](https://codecov.io/gh/esrrhs/fakelua/graph/badge.svg?token=9ZCUH1Q632)](https://codecov.io/gh/esrrhs/fakelua)\n\nFakeLua is a dialect of Lua that compiles code into native machine code at runtime using Just-In-Time (JIT) compilation, providing a streamlined language structure and improved performance.\n\n# Features:\n* Compiles with C++23\n* Builds on Linux and MinGW\n* Supports Lua 5.4 syntax\n* Uses Flex and Bison for lexing and parsing\n* Compiles to native code using GCC JIT\n* Supports GDB for debugging Lua source code\n\n# Differences from Lua:\n* No global variables, only global constants\n* No garbage collection (GC); uses a memory pool instead\n* No coroutines, threads, userdata, or metatables\n* Tables are exclusively hash tables, not array tables\n* String concatenation supports all data types\n* No closures, as they are slow and complex to implement\n\n\n# Directory structure\n* [include](./include) header file\n* [src](./src) source code\n* [test](./test) test code\n* [benchmark](./benchmark) benchmark code\n* [cmd](./cmd) command line tool\n* [cmake](./cmake) cmake toolchain\n\n# Build\n### Linux\n* Dependent: install gcc-13 with jit, cmake, flex, bison. install Lua for test.\n* Build: \n```shell\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n### Mingw\n* Dependent: install [MSYS2](https://www.msys2.org). install [mingw-w64-x86_64-libgccjit](https://packages.msys2.org/package/mingw-w64-x86_64-libgccjit), [mingw-w64-x86_64-lua](https://packages.msys2.org/package/mingw-w64-x86_64-lua). install CLion.\n* open project with CLion, set mingw toolchains. and build.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesrrhs%2Ffakelua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesrrhs%2Ffakelua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesrrhs%2Ffakelua/lists"}