Title: Support recompile lualib with custom plugin? · Issue #1502 · TypeScriptToLua/TypeScriptToLua · GitHub
Open Graph Title: Support recompile lualib with custom plugin? · Issue #1502 · TypeScriptToLua/TypeScriptToLua
X Title: Support recompile lualib with custom plugin? · Issue #1502 · TypeScriptToLua/TypeScriptToLua
Description: Here is the case, I want to implement a proxy for array in luajit environment with __index and __newindex that read write data in another table. However, luajit which is lua5.1 doesn't support __len __ipair metamethod, and length operato...
Open Graph Description: Here is the case, I want to implement a proxy for array in luajit environment with __index and __newindex that read write data in another table. However, luajit which is lua5.1 doesn't support __le...
X Description: Here is the case, I want to implement a proxy for array in luajit environment with __index and __newindex that read write data in another table. However, luajit which is lua5.1 doesn't support ...
Opengraph URL: https://github.com/TypeScriptToLua/TypeScriptToLua/issues/1502
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support recompile lualib with custom plugin?","articleBody":"Here is the case, I want to implement a proxy for array in luajit environment with `__index` and `__newindex` that read write data in another table.\r\nHowever, luajit which is lua5.1 doesn't support `__len` `__ipair` metamethod, and length operator `#`, global `next` function, global `ipairs` function would return wrong result on proxy.\r\n\r\nThen I come up with an idea that write a printer plugin that print `#` `next` `ipairs` into some custom implementation, but this plugin would ignore code in lualib.\r\n\r\nI think the problem is, the plugin doesn't give user enough power to modify the compilation process, since lualib are already compiled before plugin taking over.","author":{"url":"https://github.com/pilaoda","@type":"Person","name":"pilaoda"},"datePublished":"2023-10-17T11:06:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1502/TypeScriptToLua/issues/1502"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:914d4331-d7dd-461d-df2f-8c56ca8b2b3c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBB8:34EAD6:155582F:1DF77B9:6970C53B |
| html-safe-nonce | 1ea47a6abbf2945699e940acffbeebabffd76781166eab4bb1e3b4294e1760bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkI4OjM0RUFENjoxNTU1ODJGOjFERjc3Qjk6Njk3MEM1M0IiLCJ2aXNpdG9yX2lkIjoiNjg3OTgyNDIxMTU5ODE2NTMwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76cf0f16d706961d4d56c9014112742af5cb847837d5253cbe086e2beb31fd05 |
| hovercard-subject-tag | issue:1947154755 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TypeScriptToLua/TypeScriptToLua/1502/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8c41d75956936e0b434d3b87acc0a44092e3aa4ef686956d3960d02939c7da4/TypeScriptToLua/TypeScriptToLua/issues/1502 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8c41d75956936e0b434d3b87acc0a44092e3aa4ef686956d3960d02939c7da4/TypeScriptToLua/TypeScriptToLua/issues/1502 |
| og:image:alt | Here is the case, I want to implement a proxy for array in luajit environment with __index and __newindex that read write data in another table. However, luajit which is lua5.1 doesn't support __le... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pilaoda |
| hostname | github.com |
| expected-hostname | github.com |
| None | bb43a7bc61aba1b91c3c5cf8e7d00342e1e77a0cfe55a141222dbd7f9782d26f |
| turbo-cache-control | no-preview |
| go-import | github.com/TypeScriptToLua/TypeScriptToLua git https://github.com/TypeScriptToLua/TypeScriptToLua.git |
| octolytics-dimension-user_id | 44121206 |
| octolytics-dimension-user_login | TypeScriptToLua |
| octolytics-dimension-repository_id | 115876595 |
| octolytics-dimension-repository_nwo | TypeScriptToLua/TypeScriptToLua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 115876595 |
| octolytics-dimension-repository_network_root_nwo | TypeScriptToLua/TypeScriptToLua |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 34817b01ad7cdf8b2beb35ea7b0e2a7609004eff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width