These are public posts tagged with #coding. You can interact with them if you have an account anywhere in the fediverse.
Chicago Kotlin User Group KMP Mobile workshop is underway!
https://www.youtube.com/live/yTgEBqJsoqE?si=Dx1tqgGFnA9neqZ4
I finally eliminated the need for a dedicated #thread controlling the pam helper #process in #swad.
The building block that was still missing from #poser was a way to await some async I/O task performed on the main thread from a worker thread. So I added a class to allow exactly that. The naive implementation just signals the main thread to carry out the requested task and then waits on a #semaphore for completion, which of course blocks the worker thread.
Turns out we can actually do better, reaching similar functionality like e.g. #async / #await in C#: Release the worker thread to do other jobs while waiting. The key to this is user context switching support like offered by #POSIX-1.2001 #getcontext and friends. Unfortunately it was deprecated in POSIX-1.2008 without an obvious replacement (the docs basically say "use threads", which doesn't work for my scenario), but still lots of systems provide it, e.g. #FreeBSD, #NetBSD, #Linux (with #glibc) ...
The posercore lib now offers both implementations, prefering to use user context switching if available. It comes at a price: Every thread job now needs its private stack space (I allocated 64kiB there for now), and of course the switching takes some time as well, but that's very likely better than leaving a task idle waiting. And there's a restriction, resuming must still happen on the same thread that called the "await", so if this thread is currently busy, we have to wait a little bit longer. I still think it's a very nice solution.
In any case, the code for the PAM credential checker module looks much cleaner now (the await "magic" happens on line 174):
https://github.com/Zirias/swad/blob/57eefe93cdad0df55ebede4bd877d22e7be1a7f8/src/bin/swad/cred/pamchecker.c
Simple Web Authentication Daemon. Contribute to Zirias/swad…
GitHubWhen you have redundant web services with background scheduled tasks, how do you make sure the scheduled tasks only run on one host?
We have the hosts coordinate via a database with frequent check-ins, where one host will promoted to the "main" host to to the jobs if there is not currently or the main host is dead.
Can someone explain the third line
I have reassigned character to “World”
Why does Hello show in console, thanks
This thing where you need a computer program to create a new computer program, it's a Ponzi scheme, isn't it?
Vibe coding is not the same as programming...
https://x.com/RyanEls4/status/1912380860113826238
Let's see what the PHP gods say about that "bug"
https://github.com/php/php-src/issues/18341
#PHP #Programming #SoftwareDevelopment #Development #Coding #Code #Software #WebDevelopment #WebDev #Bug #GitHub #Git
Description 3v4l reproduction When using a virtual…
GitHubDemoscene: Compression optimization
Alexander Grupe describes on his website, how he saves a few bytes in the boot block in order to have more space for demoscene productions.
As we get our products out the door at https://privacysafe.app we're seeing our press push pick up thanks to @profdiggity We're mentioned in #CSO online this month where he drives the point home about vibe #coding :
An awful side effect of being a game developer .
You're excited to play what you've made in the early-to-mid stages of development, but by the time the game is ready, you hate even seeing the main character on the screen because that thing's code alone has traumatized you almost as much as your school bully did
#gamedev #gamedesign #coding
El secreto para optimizar memoria, con el patrón Flyweight #coding #programming https://www.youtube.com/watch?v=xGwZNlVDXBQ
Enjoy the videos and music you love, upload original…
www.youtube.comOn a #coding mission to improve my #poser lib .
In the current implementation of #swad, I don't really like that I need an extra thread, just to control a child #process. A first piece to add to poser is generic "child process support", which I'm testing right now. I realized I could reuse my #Connection class, which was built for #sockets, but works just as well with #pipes
TODO now is mostly testing. See screenshots for some mimimal testing code and its output ... would you like this kind of interface?
As 'AI' coding 'assistants' invent nonexistent software libraries to download and use, enterprising attackers create and upload libraries with those names—laced with malware https://www.theregister.com/2025/04/12/ai_code_suggestions_sabotage_supply_chain
LLMs can't stop making up software dependencies and sabotaging everything - by Thomas Claburn
https://www.theregister.com/2025/04/12/ai_code_suggestions_sabotage_supply_chain/
: Hallucinated package names fuel 'slopsquatting'
The RegisterAI = Amnezja Informatyczna
Zapominamy, jak uzyskać wyniki za pomocą wiedzy, algorytmów i struktur danych, wrzucamy wszystko w czatbot.
https://www.theregister.com/2024/03/28/ai_bots_hallucinate_software_packages/
Simply look out for libraries imagined by ML and make…
The RegisterA fun little scroll-driven thing I made. The text is white over the image, but the image isn't static, it rotates on scroll.
Here's a detailed explanation of the how behind https://www.reddit.com/r/css/comments/1jyu76v/comment/mn2fibt/
Live on @codepen https://codepen.io/thebabydino/pen/dPPbmao
Also uses container queries, CSS trigonometric functions.
#CSS #scroll #cssAnimation #code #web #scrollAnimation #frontend #coding #dev #cssVariables #cssTransform #webDev #webDevelopment #cssMaths #trigonometry