Skip to content

Instantly share code, notes, and snippets.

View tringuyenhoaiphuong's full-sized avatar

tringuyenhoaiphuong

View GitHub Profile
@tringuyenhoaiphuong
tringuyenhoaiphuong / lujlu.lua
Created March 31, 2023 04:31 — forked from meepen/lujlu.lua
LuaJit VM in Lua. Comes with fully operational bytecode interpreter. License is: contact me before using it commercially. - Now runs itself inside itself and itself inside itself inside itself
local bytecodes = {}
local BC, run_function = {}
local VARG_CONST = {}
local lujlu_mt_funcs
local lujlu_cache = setmetatable({}, {__mode = "k"})
local lujlu_identifier_mt = {
__tostring = function(self)
return tostring(lujlu_cache[self].data)
end,