mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.9K
active users

#netbsd

24 posts21 participants1 post today
Continued thread

About the #random thingie ... I need random data in #swad to generate unpredictable #session IDs.

I previously had an implementation trying the #Linux-originating #getrandom if available, with a fallback to a stupid internal #xorshift #PRNG, which could be disabled because it's obviously NOT cryptographically secure, and WAS disabled for the generation of session IDs.

Then I learned #arc4random is available on many systems nowadays (#FreeBSD, #NetBSD, even Linux with a recent-enough glibc), so I decided to add a compile check for it and replace the whole mess with nothing but an arc4random call IF it is available.

arc4random originates from #OpenBSD and provides the only sane way to get cryptographically secure random data. It automatically and transparently (re-)seeds from OS entropy sources, but uses an internal CSPRNG most of the time (nowadays typically #ChaCha20, so it's a misnomer, but hey ...). It never fails, it never blocks. It just works. Awesome.

Today is the BSD-NL Conference - Early 2025 🐡😈⛳

In between all the hacking and slacking there will be talks!

You can catch the stream on: exquisite.tube/c/bsdnlconferen

🌐 events.bsdnl.nl/early25/talk/W
🎤 A packet's journey through pf
A walkthrough of a packet's journey through (FreeBSD's) pf, concentrating on the big picture and its implications.
by Kristof Provost

🌐 events.bsdnl.nl/early25/talk/V
🎤 Disk Space - The final frontier?
We'll follow the adventures of the spaceship BSD-NL 2025 (since NCC-1701 was already taken) on their voyage of exploration.
by Benedict Reuschling

The full schedule 📅 events.bsdnl.nl/early25/schedu

📆 2025-04-12 / April 12th 2025
🕐 10:00-23:00 CET
📍 Brouwerij Maximus (Utrecht)
🌐 bsdnl.nl

ExquisiteTubeBSD-NL ConferenceMeeting once, or twice a year, at EuroBSDCon, BSDCan or AsiaBSDCon isn’t enough! So we decided to start BSD-NL, The BSD Community in The Netherlands. https://bsdnl.nl For all your *BSD needs, eithe...
#BSDNL#RUNBSD#BSD

First change since #swad 0.2 will actually be a (huge?) improvement to my #poser lib. So far, it was hardwired to use the good old #POSIX #select call. This is perfectly fine for handling around up to 100 (or at least less than 1000, YMMV) clients.

Some #select implementations offer defining the upper limit for checked file descriptors. Added support for that.

POSIX also specifies #poll, which has very similar #scalability issues, but slightly different. Added support for this as well.

And then, I went on to add support for the #Linux-specific #epoll and #BSD-specific #kqueue (#FreeBSD, #NetBSD, #OpenBSD, ...) which are both designed to *solve* any scalability issues 🥳

A little thing that slightly annoyed me about kqueue was that there's no support for temporarily changing the signal mask, so I had to do the silly dance shown in the screenshot. OTOH, it offers changing event filters and getting events in a single call, which I might try to even further optimize ... 😎

T-1 days until BSD-NL Full Day Event - Early 2025 🐡😈⛳

We are almost there! See you all tomorrow!

In between all the hacking and slacking there will be talks!

🌐 events.bsdnl.nl/early25/talk/W
🎤 A packet's journey through pf
A walkthrough of a packet's journey through (FreeBSD's) pf, concentrating on the big picture and its implications.
by Kristof Provost

🌐 events.bsdnl.nl/early25/talk/V
🎤 Disk Space - The final frontier?
We'll follow the adventures of the spaceship BSD-NL 2025 (since NCC-1701 was already taken) on their voyage of exploration.
by Benedict Reuschling

The full schedule 📅 events.bsdnl.nl/early25/schedu

📆 2025-04-12 / April 12th 2025
🕐 10:00-23:00 CET
📍 Brouwerij Maximus (Utrecht)
🌐 bsdnl.nl

events.bsdnl.nlA packet's journey through pf BSD-NL Conference - Early 2025A walkthrough of a packet's journey through (FreeBSD's) pf, concentrating on the big picture and its implications. We'll cover when packets are inspected, when rules are evaluated and how states are used. Along the way we'll cover what DTrace probes can show us, what some of pfctl's counters mean and just how many times pf can look at a single packet. This talk is intended for firewall admins looking for a deeper understanding and aspiring pf developers. It is not a "How to use pf" talk.
#BSDNL#RUNBSD#BSD

T-2 days until BSD-NL Full Day Event - Early 2025 🐡😈⛳

🌟 Sponsor Spotlight 🌟

We can not do this without our wonderful sponsors!

Today it's all about individual sponsors.
In no particular order, thank you Dave, Floris, Guido, Rene, Kristof, Timo, Hugo, Bram, Florian and Angie (Nourv2)!!

📆 2025-04-12 / April 12th 2025
🕐 10:00-23:00 CET
📍 Brouwerij Maximus (Utrecht)
🌐 bsdnl.nl

bsdnl.nlBSD-NL — BSD-NL
#BSDNL#RUNBSD#BSD