Wait! #LuaRocks has manifests (namespaces) and none is dedicated to #Neovim yet? Any reason why we aren’t leveraging it? Shall I start it? Can I?

LuaRocks 3.12.0 is now released, the first release after the codebase was converted to Teal!

Congrats to my mentee Victor Ilchev, who performed the conversion as his summer project for GSoC 2024. His work should be hitting production CIs worldwide by now!

#Teal #LuaLang #LuaRocks

aaand I'm done for the night, after a 7 hour stream!

We now have a branch where #LuaRocks can build from a plain Makefile into a stand-alone executable with all its #Lua dependencies vendored in: https://github.com/luarocks/luarocks/tree/luarocks4

Next steps will be to deal with its non-Lua dependencies, and Windows cross-compilation. With that in place, further code cleanups can start!

GitHub - luarocks/luarocks at luarocks4

LuaRocks is the package manager for the Lua programming language. - GitHub - luarocks/luarocks at luarocks4

GitHub

Today, I extracted my #Lua port of the Rough.js library into a standalone module and published it on #luarocks

It is a small graphics library that lets you draw lines, polygons and curves in a sketchy, hand-drawn-like, style.

I formerly used it in some of my 3rd-party packages for the #SILE typesetting system, but now having it as its own independent module might be interesting for other Lua developers, outside the SILE ecosystem.

https://github.com/Omikhleia/rough-lua

GitHub - Omikhleia/rough-lua: Lua port of the Rough.js sketchy drawing library

Lua port of the Rough.js sketchy drawing library. Contribute to Omikhleia/rough-lua development by creating an account on GitHub.

GitHub

#LuaRocks question - how can I use it with #LuaJIT?

$ luarocks --lua-version=5.1 install --local opencl
Installing https://luarocks.org/opencl-1.2.0-1.src.rock

Warning: variable CFLAGS was not passed in build_variables
make[1]: Entering directory '/tmp/luarocks_opencl-1.2.0-1/lua-opencl/test'
/usr/bin/lua5.1 platform.lua
/usr/bin/lua5.1: ...opencl-1.2.0-1/lua-opencl/test/../opencl/C.lua:7: module 'ffi' not found

Do I need to reconfigure/reinstall luarocks, or can I make it work with both LuaJIT and Lua 5.1/5.4?

Peter Billam passed away last week.

Composer, musician, linguist, hacker, community contributor.

He had been fighting ill health at Royal Hobart Hospital for the last 2 months when on Wednesday his condition deteriorated suddenly. He died peacefully in the company of a friend on Thursday.

His website:
http://peterbillam.fastmail.com.user.fm/

Peter's code:
https://gitlab.com/users/peterbillam/projects

Rest In Power Peter

#ausMusic #linux #australia #tasLUG #lua #luaRocks #muscript #tasmania #midi #floss #creativeCommons #music

peterbillam.neocities.org

Update on #haikuports, #lua 5.4.7 and #luarocks 3.11.1 have been fixed to nicely work together, now you should be able to just use luarocks to install your rocks on the system and use them, #ICU seen the new 75.1 version and a new package for #boost 1.85.0 has been added, with the last 2 one in place I was able to build and package #Sourcetrail 2024.7.3 (not packaged for the depot).
Have fun in your Haiku as always! :) #HaikuOS

me, a js dev, miss the ability to generate the `.rockspec` file from luarocks command

#lua #luarocks

I continue my Lua series with part 3 — testing, mocks, and continuous integration.

https://martin-fieber.de/blog/how-to-test-your-lua/

#Lua #LuaRocks #LuaUnit

How to test your Lua

Having a look at testing Lua code, from small manual tests, to automated tests with LuaUnit. Also having a look at how to mock code and continuous integration with GitHub Actions.

@vanja I did this with #python once, didn't even manage to create a package to put my code in. I went with #lua in the end, and installing packages with #luarocks was surprisingly pleasant.

I'm trying #hare right now, which would've been a lot more mearable if I had used it back then.