-
Normally lua relies on the finaliser of lua_State objects to call `luaF_close` to close upvalues for the deleted thread.
As JS doesn't have finalisers, we can't copy this behaviour.
Instead, we ha…
-
[this article](https://medium.com/@giann/why-we-rewrote-lua-in-js-a66529a8278d) is getting linked around, but I see that https://www.npmjs.com/package/fengari is still unclaimed - you should probably …
-
As mentioned in https://github.com/fengari-lua/fengari/issues/68#issuecomment-329382548
- JS libraries need access to `fengari` library
- JS libraries need access to global env
- How should…
-
# window.localStorage 的應用
http://mde.tw/vecp2018/lua/SchoolProject 之所以能讓使用者能夠直接在瀏覽器中執行簡單的 Lua 程式範例,
是因為利用 Javascript 重寫 Lua 解譯器, , 因此具有 Javascript 程式語言的特性, 其中包括 https://developer.mozilla.org/en-U…
-
This is similar to https://github.com/fengari-lua/fengari/issues/89, but complicated by the fact that you're outputting an ES6 bundled file in `dist`, making it non-consumable by any toolchain based o…
-
In addition to adding script tags to the document, fengari-web could export a function somewhat like javascript's Eval.
While working on a prototype of fengari-loader I found that I wanted a way to…
-
# 上課時段:
ven1a - 2018/03/02 起每週 (五) 晚上 10-11 節 (18:30-20:00)
課程介紹: 本課程名稱為計算機程式, 將分別利用 Lua, Python 與 C 說明計算機程式的基本功能.
第一週準備工作: 請各學員利用學校配發的 Gmail 帳號, 申請 Github 帳號, 登入 Github 後, 連結至 https://github…
-
- lua.js should export all functions from the core lua api (i.e. those that start with `lua_`)
- lauxlib.js should *only* require lua.js
- l{baselib,corolib,mathlib}.js etc. should *only* req…
-
Hi all,
I'm a JS developer and I'm learning the first steps with lua and fengari.
A (I hope) simple question: would it be possible to store and execute later a function returned by a lua function?…
-
I'd love to try this in a web project - could the readme/fengari.io be given a section with instructions on how to install Fengari and use it in a project?