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:

196
active users

#datastructures

1 post1 participant0 posts today
Margaret Eldridge<p>Keep an eye out. Jay Wengrow, author of our Data Structures and Algorithms book, is working on a new practical guide to AI engineering. His first post about it: <a href="https://tinyurl.com/wengrowaibook" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">tinyurl.com/wengrowaibook</span><span class="invisible"></span></a><br><a href="https://hachyderm.io/tags/ai" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ai</span></a> <a href="https://hachyderm.io/tags/aiengineering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>aiengineering</span></a> <a href="https://hachyderm.io/tags/algorithms" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithms</span></a> <a href="https://hachyderm.io/tags/datastructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datastructures</span></a> <a href="https://hachyderm.io/tags/pragprog" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pragprog</span></a> <a href="https://hachyderm.io/tags/books" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>books</span></a></p>
Harald<p>Wow, JavaScript.</p><p>The Map data structure has a Map.forEach() method which invokes a callback for each key/value pair in the Map. Guess the order which the key and value parameters must have in the callback.</p><p>OK, since I am writing this it is easy to guess that its all reversed. The callback must be</p><p> (value, key, ...) =&gt; ...</p><p>2 hours debugging 😩 </p><p><a href="https://nrw.social/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://nrw.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://nrw.social/tags/datastructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datastructures</span></a> <a href="https://nrw.social/tags/map" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>map</span></a> <a href="https://nrw.social/tags/api" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>api</span></a> <a href="https://nrw.social/tags/botchedapi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>botchedapi</span></a></p>
screwlisp<p><a href="https://gamerplus.org/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://gamerplus.org/tags/visualization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>visualization</span></a> <a href="https://gamerplus.org/tags/consTrees" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>consTrees</span></a> <a href="https://gamerplus.org/tags/dataStructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dataStructures</span></a> <a href="https://gamerplus.org/tags/lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lisp</span></a> <a href="https://gamerplus.org/tags/commonLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>commonLisp</span></a> <a href="https://gamerplus.org/tags/McCLIM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>McCLIM</span></a> <a href="https://screwlisp.small-web.org/clim/cons-tree-graphics/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">screwlisp.small-web.org/clim/c</span><span class="invisible">ons-tree-graphics/</span></a></p><p>A tiny bit of window dressing for the CLIM 2 spec's FORMAT-GRAPH-FROM-ROOTS. Which I use a lot because it is vanishingly little work, paste or type in some cons trees, voila, they merge matching symbols because I set that to happen, I can press a button to change the graphs, all great.</p><p><span class="h-card" translate="no"><a href="https://functional.cafe/@jackdaniel" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>jackdaniel</span></a></span> (Thanks for McCLIM).</p>
Preston Maness ☭<p>@alberta.nyc@tiktok.com "I'mma need you to reverse this linked list right quick."</p><p><a href="https://www.tiktok.com/@alberta.nyc/video/7457008714734832942?lang=en" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">tiktok.com/@alberta.nyc/video/</span><span class="invisible">7457008714734832942?lang=en</span></a></p><p><a href="https://tenforward.social/tags/SoftwareEngineering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareEngineering</span></a> <br><a href="https://tenforward.social/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareDevelopment</span></a> <br><a href="https://tenforward.social/tags/software" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>software</span></a> <br><a href="https://tenforward.social/tags/corecore" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>corecore</span></a> <br><a href="https://tenforward.social/tags/hopelesscore" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hopelesscore</span></a> <br><a href="https://tenforward.social/tags/hopelessnesscore" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hopelessnesscore</span></a> <br><a href="https://tenforward.social/tags/tiktok" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tiktok</span></a> <br><a href="https://tenforward.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <br><a href="https://tenforward.social/tags/LinkedList" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LinkedList</span></a> <br><a href="https://tenforward.social/tags/DataStructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataStructures</span></a> <br><a href="https://tenforward.social/tags/Algorithms" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Algorithms</span></a></p>
Oliver Kennedy<p>New year, new server.</p><p>Hi all (again). I'm an academic in CS (and sometimes CEn), where I focus on <a href="https://discuss.systems/tags/Databases" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Databases</span></a>, <a href="https://discuss.systems/tags/DataStructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataStructures</span></a>, <a href="https://discuss.systems/tags/Compilers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Compilers</span></a>, <a href="https://discuss.systems/tags/ViewMaintenance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ViewMaintenance</span></a>, and <a href="https://discuss.systems/tags/Reproducibility" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Reproducibility</span></a> in <a href="https://discuss.systems/tags/DataScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataScience</span></a>. I occasionally find time to dabble in <a href="https://discuss.systems/tags/wildlife" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wildlife</span></a> and <a href="https://discuss.systems/tags/landscape" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>landscape</span></a> <a href="https://discuss.systems/tags/photography" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>photography</span></a> and some <a href="https://discuss.systems/tags/Home_Automation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Home_Automation</span></a>. I occasionally swordfight (<a href="https://discuss.systems/tags/HEMA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HEMA</span></a>), and <a href="https://discuss.systems/tags/pun" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pun</span></a> frequently. Also an avid supporter of <a href="https://discuss.systems/tags/Public_Transportation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Public_Transportation</span></a>, and <a href="https://discuss.systems/tags/Rail" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rail</span></a> enthusiast.</p><p><a href="https://discuss.systems/tags/introduction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>introduction</span></a></p>
Alexandre B A Villares 🐍<p>Am I the only one who thinks Python's frozensets are amazing and a great way to deal with recognizing duplicated polygons?</p><p>If you represent a closed polygon as a sequence of vertices, you might get many different orderings of the same "ring" (clockwise, counter-clockwise, starting at different points of the cycle) and those are for most purposes "the same polygon". It is easy to see that "visually", but how to eliminate those duplicates in code?</p><p>If you represent the vertices as a set of edges made with frozensets you get the same result for all the possible rotations/windings that are the same polygon :)</p><p><a href="https://ciberlandia.pt/tags/ComputationalGeometry" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ComputationalGeometry</span></a> <a href="https://ciberlandia.pt/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://ciberlandia.pt/tags/DataStructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataStructures</span></a></p>
garrytansucks.55 on Signal<p>Ugh mastodon's data structures (tm) aren't set up to let you migrate handles easily. Luckily I don't have many posts. I'll manually copy them over soon.</p><p>This is literally vuvuzela 1984 jorge orwin.</p><p><a href="https://mastodon.social/tags/mastodon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mastodon</span></a> <a href="https://mastodon.social/tags/datastructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>datastructures</span></a> <a href="https://mastodon.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a></p>
Oliver Kennedy<p>New server, who dis.</p><p>Hi, I'm a CS prof, focusing on <a href="https://social.sdf.org/tags/Databases" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Databases</span></a>, <a href="https://social.sdf.org/tags/DataStructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataStructures</span></a>, <a href="https://social.sdf.org/tags/Compilers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Compilers</span></a> (<a href="https://git.odin.cse.buffalo.edu/Astral" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">git.odin.cse.buffalo.edu/Astra</span><span class="invisible">l</span></a>), and <a href="https://social.sdf.org/tags/Reproducibility" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Reproducibility</span></a> in <a href="https://social.sdf.org/tags/DataScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataScience</span></a> (<a href="https://social.sdf.org/tags/Mimir" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mimir</span></a> : <a href="https://mimirdb.info" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">mimirdb.info</span><span class="invisible"></span></a> and <a href="https://social.sdf.org/tags/Vizier" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vizier</span></a> : <a href="https://vizierdb.info" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">vizierdb.info</span><span class="invisible"></span></a>). I occasionally find time to dabble in wildlife and landscape <a href="https://social.sdf.org/tags/photography" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>photography</span></a> and <a href="https://social.sdf.org/tags/homeautomation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>homeautomation</span></a>. One of these days, I'll get back to doing <a href="https://social.sdf.org/tags/HEMA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HEMA</span></a> or <a href="https://social.sdf.org/tags/Fencing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fencing</span></a>. I also <a href="https://social.sdf.org/tags/Pun" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pun</span></a> frequently.</p><p><a href="https://social.sdf.org/tags/introduction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>introduction</span></a></p>
carlyn<p>Part 11: Wrote a Domain Specific Language... to write Domain Specific Languages! ha! An enum based tree and a Result Builder allowed me to write the attached code to produce the attached output.</p><p>playground ready code: <a href="https://gist.github.com/carlynorama/088fd2bb77cb9d4fabb0c55e50f780b5" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gist.github.com/carlynorama/08</span><span class="invisible">8fd2bb77cb9d4fabb0c55e50f780b5</span></a></p><p>process getting there: <a href="https://www.whynotestflight.com/excuses/hello-usd-part-11-gotta-make-it-easier-to-write-file-builders/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">whynotestflight.com/excuses/he</span><span class="invisible">llo-usd-part-11-gotta-make-it-easier-to-write-file-builders/</span></a></p><p><a href="https://mastodon.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftLang</span></a>, <a href="https://mastodon.social/tags/DSL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DSL</span></a>, <a href="https://mastodon.social/tags/OpenUSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenUSD</span></a>, <a href="https://mastodon.social/tags/ResultBuilder" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ResultBuilder</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/Enum" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Enum</span></a>, <a href="https://mastodon.social/tags/DataStructures" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataStructures</span></a></p>