Just use the Mutex from the parking_lot crate.
Just use the Mutex from the parking_lot crate.
The only time I’ve ever needed a Mutex<()> so far with Rust is when I had to interop with a C library which itself was not thread safe (unprotected use of global variables), so I needed to lock the placeholder mutex each time I called one of the C functions.
Actually I think in this case you’re still better off using a Mutex with “data” inside. I’ve done this before. The idea is that you make a unit struct MyCFuncs
or whatever and then you only call the C functions from methods of that unit struct. Then you can only access those methods once you lock the Mutex and get the instance of the unit struct. It feel elegant to me.
New fetch just dropped
Really? You can Google this and find plenty of sources online super easily.
Well long story short sweden has had quite relaxed immigration law for a long time and is now dealing with major crime problems as violent gangs cause shootings in the cities.
Check Swedens problems recently with unchecked immigration.
I’m curious just because I never use ropes or knots - what kind of work or activity do you do where you use that regularly?
That’s hardly low tech, especially not the newer ones.
The choice of instance is kind of a big barrier though. There’s also a lot of bad UX around discoverability.
That is a nice success story!
But this is only a default right? Surely an admin can open registration anyway?
I guess a new flag to only exclude it from the list but not exclude it from the stats 🤷
Sorry, but the fact that you’re here means that you are probably in the top percentages of tech-literate people. Especially considering you’re on programming.dev.
You’re severely overestimating the technical literacy of regular people. For many people (maybe even the majority of people) even email is complex.
The platform right now is lacking actual discussions. Everyone seems to just like memes.
Honestly I’ve just blocked most of the meme comms 😅. It’s easy to see memes when I want to anyway by just opening a private window where I’m not logged in and going to the all feed. It’s always mostly memes anyway. Then when I’m logged in, I can see some other stuff without all the memes clogging up my feed.
with the exception of pixelfed
Why not that one? I’m not familiar with pixelfed.
Oh come on, let’s not pretend that the fediverse is just super intuitive and easy for regular users (i.e. non-techie people). Same ridiculous notion as when people say Linux is just as user-friendly as the more mainstream OSes. It’s sad and I wish it was better but it’s just not right now.
That’s just how it works at the moment. It only counts active users from the sites listed.
You may want to edit your comment :)
my comment was mostly a joke
Sorry for not getting it, it’s just that sometimes people (understandably) get very confused about the technicalities of the fediverse and mix up things like defederation and stuff like this. 😅
Consider a /s in the future :)
They were also plain C functions in my case, but it doesn’t take too much discipline to only call it through the struct. Also, you can put the struct in a different crate which includes the C bindings to ensure that you can’t call the C bindings without the struct.