eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

215
active users

#lua

1 post1 participant0 posts today
jbz<p>🦾 Why Lua Beats MicroPython for Serious Embedded Devs </p><p>「 Lua isn’t just compatible with embedded systems; the Lua ANSI C library was designed for them. Its architecture is clean, compact, and deterministic.</p><p>MicroPython, on the other hand, is a reimplementation of Python 3. It works well for many embedded use cases, but it inherits assumptions from a desktop-oriented language 」</p><p><a href="https://www.embedded.com/why-lua-beats-micropython-for-serious-embedded-devs" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">embedded.com/why-lua-beats-mic</span><span class="invisible">ropython-for-serious-embedded-devs</span></a></p><p><a href="https://indieweb.social/tags/lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lua</span></a> <a href="https://indieweb.social/tags/micropython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>micropython</span></a> <a href="https://indieweb.social/tags/embedded" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>embedded</span></a></p>
Gergely "Bane of the Crawlers" Nagy<p><a href="https://iocaine.madhouse-project.org/howto/getting-started/" rel="nofollow noopener" target="_blank">Getting started with iocaine</a> is now online.</p><p>From nothing to running iocaine + Caddy with <code>ai.robots.txt</code>'s <code>robots.json</code> and a few metrics as a starting point.</p><p>Contains <a href="https://come-from.mad-scientist.club/tags/roto" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Roto</span></a>, <a href="https://come-from.mad-scientist.club/tags/lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lua</span></a>, and <a href="https://come-from.mad-scientist.club/tags/fennel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fennel</span></a> - and a few tests too, for each.</p>
Monoka<p>Share of programming languages used by <a href="https://mastodon.social/tags/GTK3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GTK3</span></a> / <a href="https://mastodon.social/tags/GTK4" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GTK4</span></a> applications (2025-07-12):</p><p>28% <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a><br>21% <a href="https://mastodon.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a><br>20% <a href="https://mastodon.social/tags/Vala" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vala</span></a><br>17% <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a><br>06% <a href="https://mastodon.social/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a>++ <a href="https://mastodon.social/tags/Cplusplus" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cplusplus</span></a><br>06% <a href="https://mastodon.social/tags/gjs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gjs</span></a> <a href="https://mastodon.social/tags/Javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javascript</span></a> <a href="https://mastodon.social/tags/Typescript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Typescript</span></a><br>03% Other: <a href="https://mastodon.social/tags/Csharp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Csharp</span></a> <a href="https://mastodon.social/tags/Go" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Go</span></a> <a href="https://mastodon.social/tags/Lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lua</span></a> <a href="https://mastodon.social/tags/Haskell" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Haskell</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/Crystal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Crystal</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/D" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>D</span></a> <a href="https://mastodon.social/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a></p><p>65% use GTK4 (90% of them use <a href="https://mastodon.social/tags/libadwaita" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libadwaita</span></a>), while still 35% use GTK3</p><p>Method: Source [1] lists 620 awesome <a href="https://mastodon.social/tags/gtk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gtk</span></a> (3/4) <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> applications and their <a href="https://mastodon.social/tags/programminglanguage" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programminglanguage</span></a></p><p>[1] <a href="https://github.com/valpackett/awesome-gtk" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/valpackett/awesome-</span><span class="invisible">gtk</span></a></p><p><a href="https://mastodon.social/tags/GTK" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GTK</span></a> <a href="https://mastodon.social/tags/FLOSS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FLOSS</span></a> <a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/Gnome" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gnome</span></a> </p><p><span class="h-card" translate="no"><a href="https://floss.social/@GTK" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>GTK</span></a></span> <span class="h-card" translate="no"><a href="https://floss.social/@gnome" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>gnome</span></a></span></p>
Thomas 'Maria' Helzle<p><span class="h-card" translate="no"><a href="https://mathstodon.xyz/@ngons" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ngons</span></a></span> Yeah, it is an absolutely fantastic update that opens so many doors.<br>Also Redux as a VST3 having these things built in and Midi Out makes it so much more powerful.<br>Yay! 🙂 </p><p>Have been playing with it all day yesterday...</p><p><a href="https://mathstodon.xyz/tags/renoise" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>renoise</span></a> <a href="https://mathstodon.xyz/tags/tracker" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tracker</span></a> <a href="https://mathstodon.xyz/tags/livecoding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>livecoding</span></a> <a href="https://mathstodon.xyz/tags/lua" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lua</span></a> <a href="https://mathstodon.xyz/tags/tidal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tidal</span></a> <a href="https://mathstodon.xyz/tags/cycles" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cycles</span></a> <a href="https://mathstodon.xyz/tags/vst" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vst</span></a></p>
Replied in thread

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 imports 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 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 :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!

#UNIX#sysctl#WebDev

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.

Continued thread

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 (´。• ω •。`)

codeberg.org/foxy/scribus-writ

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).

Codeberg.orgscribus-writer.luaCustom Pandoc writer for Scribus documents

I'm thinking of developing a new course or workshop in the fall.. would any of these interest you?

#webdev#svelte#html

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

Hey fedi friends, what are the differences in USES and config options listed at #freshports for a #FreeBSD #port? I am familiar with USE in #Gentoo #Linux, which seem to be the config options here? For #Gentoo it is very common to use different USE settings for a packages, but for #FreeBSD I read from porter's handbook there are not many USE items and they looked different from the term in #Gentoo. I am still trying to wrap my head around what is happening that whenever I try to build a port, like #vim or #git in tiny flavors, I constantly noticed #Perl #Bash #lua #Rust #Python and all other seemingly unrelated stuff get pulled in. #BSD #RunBSD #Unix #FOSS
www.freshports.orgFreshPorts -- The Place For Ports - Most recent commitsMost recent commits