Re: luafun and luaunit fork

  • From: Laurent Deniau <Laurent.Deniau@xxxxxxx>
  • To: "luajit@xxxxxxxxxxxxx" <luajit@xxxxxxxxxxxxx>
  • Date: Sat, 15 Apr 2017 09:11:21 +0000

Hi All,

I improved the very good LuaFun library some time ago to support cdata 
metamethods _if_ the ffi.miscmap is exposed by LuaJIT (need to recompile it) 
otherwise it’s fully backward compatible if not exposed. You can find the file 
in my fork:

https://github.com/MethodicalAcceleratorDesign/luafun ;
<https://github.com/MethodicalAcceleratorDesign/luafun>

It also contain a nice bind operation (PR provided by coldfix) that behaves 
like list comprehension by providing the Haskell-like Monad bind (operator 

=). For example (using LuaFun and my lambda syntax), the python code:

[a*b for a in range(10) for b in range(a)]

becomes in Lua

totable( range(10):bind \a range(a):map \b a*b )


I also patched some time ago the vey useful LuaUnit library for better support 
of scientific computing and referential transparency between unit tests. You 
can find the file in my fork:

https://github.com/MethodicalAcceleratorDesign/luaunit

Best,
Laurent.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Other related posts: