lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 1 April 2018 at 05:41, dyngeccetor8 <dyngeccetor8@disroot.org> wrote:
> On 03/31/2018 07:53 PM, Daurnimator wrote:
>> After much work, I've finally tagged the first release of Fengari.
>> Fengari 0.1.0 is now available for download from github and npm.
>>
>> What is Fengari?
>> It's the Lua VM ported to JavaScript, but reusing JavaScript's garbage
>> collector.
>
> By the way, I wish to say it's awesome project!
>
> Author(s) reimplemented Lua in JS. I was able to execute my "Lua code
> formatter" in browser without ANY changes. (~10 KLOC in ~400 files.)

That's great! :)

> There was some hassle to compile Fengari to one JS file, so I was need
> to install "npm" and run all that stuff. Hope in current release there
> is just one JavaScript file, no need to build it.

The fengari-web release includes a pre-bundled compiled output
(dist/fengari-web.bundled.js) which should be automatically picked up
by most JavaScript tooling.

For use with webpack see fengari-loader
https://github.com/fengari-lua/fengari-loader/ which lets you simple
require lua files from JS!
I haven't tagged a release of it yet, but should be coming soon.