A minor tech announcement for Mix’n’match:
Code fragments for Mix’n’match catalogs are switching from PHP to Lua. User-supplied PHP is not secure enough, and will not scale for future development. I have converted many code fragments from PHP to Lua already, and new code fragments have to be Lua.
Lua is not exactly my favorite language, but it has a sweet spot between the number of people who know it or can easily learn it, and safety/resource usage etc. for letting user-written code run within Mix’n’match/Toolforge.
PHP code that was not “translated” yet will be supported for a while, but not forever. Existing PHP code will be shown as a “hint” for Lua, for the time being.
Example: https://mix-n-match.toolforge.org/#/code/7098
One Trackback/Pingback
[…] extract birth and death dates from entry descriptions for a specific catalog. As you can see in my recent blog entry, I am now offering Lua instead, but keep the legacy PHP code around, for comparison […]