urbanists.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a server for people who like bikes, transit, and walkable cities. Let's get to know each other!

Server stats:

527
active users

#semaphores

0 posts0 participants0 posts today
Felix Palmen :freebsd: :c64:<p>Still working on <a href="https://mastodon.bsd.cafe/tags/swad" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swad</span></a>, and currently very busy with improving quality, most of the actual work done inside my <a href="https://mastodon.bsd.cafe/tags/poser" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>poser</span></a> library.</p><p>After finally supporting <a href="https://mastodon.bsd.cafe/tags/kqueue" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kqueue</span></a> and <a href="https://mastodon.bsd.cafe/tags/epoll" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>epoll</span></a>, I now integrated <a href="https://mastodon.bsd.cafe/tags/xxhash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>xxhash</span></a> to completely replace my previous stupid and naive hashing. I also added a more involved <a href="https://mastodon.bsd.cafe/tags/dictionary" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dictionary</span></a> class as an alternative to the already existing <a href="https://mastodon.bsd.cafe/tags/hashtable" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hashtable</span></a>. While the hashtable's size must be pre-configured and collissions are only ever resolved by storing linked lists, the new dictionary dynamically nests multiple hashtables (using different bits of a single hash value). I hope to achieve acceptable scaling while maintaining also acceptable memory overhead that way ...</p><p><a href="https://mastodon.bsd.cafe/tags/swad" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swad</span></a> already uses both container classes as appropriate.</p><p>Next I'll probably revisit poser's <a href="https://mastodon.bsd.cafe/tags/threadpool" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>threadpool</span></a>. I think I could replace <a href="https://mastodon.bsd.cafe/tags/pthread" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pthread</span></a> condition variables by "simple" <a href="https://mastodon.bsd.cafe/tags/semaphores" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>semaphores</span></a>, which should also reduce overhead ... </p><p><a href="https://github.com/Zirias/swad" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Zirias/swad</span><span class="invisible"></span></a></p><p><a href="https://mastodon.bsd.cafe/tags/c" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>c</span></a> <a href="https://mastodon.bsd.cafe/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a></p>
alexanderadam<p>Nice read! <span class="h-card" translate="no"><a href="https://ruby.social/@mamantoha" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>mamantoha</span></a></span> published a short and nice ✍️ blog post about 🚥 <a href="https://ruby.social/tags/semaphores" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>semaphores</span></a> in :crystal: <span class="h-card" translate="no"><a href="https://fosstodon.org/@CrystalLanguage" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>CrystalLanguage</span></a></span> at <span class="h-card" translate="no"><a href="https://fosstodon.org/@thepracticaldev" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>thepracticaldev</span></a></span>:</p><p><a href="https://dev.to/mamantoha/semaphores-in-crystal-5eha" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dev.to/mamantoha/semaphores-in</span><span class="invisible">-crystal-5eha</span></a></p><p><a href="https://ruby.social/tags/CrystalLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CrystalLang</span></a> <a href="https://ruby.social/tags/CrystalLanguage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CrystalLanguage</span></a> <a href="https://ruby.social/tags/concurrency" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>concurrency</span></a> <a href="https://ruby.social/tags/waitgroup" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>waitgroup</span></a> <a href="https://ruby.social/tags/mutex" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mutex</span></a> <a href="https://ruby.social/tags/parallel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>parallel</span></a> <a href="https://ruby.social/tags/paralellism" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>paralellism</span></a> <a href="https://ruby.social/tags/concurrency" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>concurrency</span></a> <a href="https://ruby.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://ruby.social/tags/crystal" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>crystal</span></a></p>
Yes, But ⁉️<p><a href="https://mstdn.social/tags/Semaphore" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Semaphore</span></a> <a href="https://mstdn.social/tags/Semaphores" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Semaphores</span></a> <a href="https://mstdn.social/tags/Traffic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Traffic</span></a></p><p><a href="https://mstdn.social/tags/YesBut" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>YesBut</span></a> <a href="https://mstdn.social/tags/Comic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Comic</span></a> <a href="https://mstdn.social/tags/Comics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Comics</span></a> <a href="https://mstdn.social/tags/Meme" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Meme</span></a> <a href="https://mstdn.social/tags/Memes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Memes</span></a></p>