Think of a JavaScript being able to call C functions.
That's lua.
Now on @Flippa
#NFT #AWARD #GAME #LOTTERY #PROJECT #BUSSINESFORSALE DM for proposals. Only real and serious, please. #Code written in #C #Lua & #SQLite. #Secure #Serverless technology http://bit.ly/m/nfttossclub rules & about also
https://flippa.com/12004306-this-is-a-reward-game-it-s-like-a-lottery-but-it-is-not-based-on-winning-tokens-but-rather-cryptocurrency
#NFT #AWARD #GAME #LOTTERY #PROJECT #BUSSINESFORSALE DM for proposals. Only real and serious, please. #Code written in #C #Lua & #SQLite. #Secure #Serverless technology http://bit.ly/m/nfttossclub rules & about also
https://telegra.ph/NFT-TOSS-AWARD-GAME-CLUB-06-18
In other #iocaine news, I'm doing some final polishing on #Lua scripting support, to make it as convenient as #Roto.
Right now, there's a differenc between how Lua and Roto scripts are loaded: with Roto, one needs to give a path to a directory, and pkg.roto
will be loaded from there, and any import
s will be relative to that directory.
With Lua, one gives iocaine a file path, and - currently - needs to set up the package.path
search path manually.
So here's what I'll do: I'll make iocaine require a directory for Lua too, and it will add it to package.path
, and will require("main")
. The required module will also have to return a table with at least a decide
key, and an optional run_tests
key. This will simplify finding the functions to run, and will greatly reduce the number of special cases.
My ultra-budget server powering http://websysctl.alfonsosiciliano.net has been running smoothly for the past 2 months. So far, so good!
#Crawlers hit tens of thousands of sysctl parameter pages daily. That's fine, since robots.txt allows it. But why keep requesting non-existent pages as if the site were built with WordPress
? Fortunately, the stack (#FreeBSD
+ #OpenResty
+ #Lapis
+ a custom-built #database
) stays well within the limited resources of my $5/month cloud server.
The code might soon be #OpenSource stay tuned!
The @ardour #Lua scripting workshop at #LAC25 #INSA #Lyon has just started. And I am curious to learn how to extend the functionalities of this great free and #OpenSource #DAW in a programmatically way in #realtime.
As @lualang is #CrossPlatform like #Ardour is, you can draft your script on a Windows machine at work and refine it on your #Linux computer later at home, for example.
Let's see how we can automate tasks in Ardour sessions, which otherwise would require another person operating #plugin parameters, session properties, #routing, etc. interactively.
Robin's workshop "Ardour Lua Scripting" has kicked off!
Unfortunately, there are gotchas there, too.
(fn decide [request]
Outcome.not_for_us)
This #fennel code compiles to the following #lua:
local function decide(request)
return Outcome.not_for_us
end
return decide
The problem here is that I'm not require
-ing this file. I maybe should. Without require, that return
makes little sense, and the decide
function won't be found in the global scope, so...
Error: error converting Lua nil to function
Which makes perfect sense. Except the error message is bad, and needs to be improved.
Today's adventures begin with trying to make #iocaine play well with #Fennel. There's work to be done on this front...
For starters, I don't think I will be able to support running the Fennel compiler as part of the init process. It seems to require debug
and assert
, which I'm not sure I want to make available to the Lua runtime in iocaine.
debug
requires mlua.unsafe_new()
, which in turn requires an unsafe
block, and I'm not comfortable with that. Not even sure how I can make assert available, mlua
doesn't seem to provide that as part of stdlib.
So, next best thing: compiling #Fennel to #Lua ahead of time!
Want to convert from any #Pandoc-compatible file format to #Scribus? Just use my latest #sideProject (´。• ω •。`)
https://codeberg.org/foxy/scribus-writer.lua
I wrote this to lighten the workload of the board behind my Master's programme's magazine. The Pandoc writer itself is in pure #Lua. Only the GUI wrapper had to be necessarily written in #Python (since it is a Scribus plugin).
I'm thinking of developing a new course or workshop in the fall.. would any of these interest you?
Okay, my code might be genuinely cursed. I had a function I wrote but wasn't using anymore, but removing it caused the project to lag immensely. I simplified it to a single loop that calls a math function. Not looping or looping fewer times drops the FPS from 120 to 30. What's going on? #love2d #lua
Kartik Agaram: Freewheeling Apps
https://akkartik.name/freewheeling-apps
(Check out the talk & transcript.)