mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

9.1K
active users

#codegolfing

0 posts0 participants0 posts today
grz0zrg<p>A very simple way to draw HAKMEM 149 based structures by using whole 32 bits range with upper bits as coordinates using unsigned shifts.</p><p>This also works with a lower range but it loses precision.</p><p>The oblique version is even simpler by removing the last two operations.</p><p>The structure looks like Apollonian net or Hopalong attractors.</p><p>This drawing method also works with other attractors or Gingerbread man map etc.</p><p><a href="https://fosstodon.org/tags/sizecoding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sizecoding</span></a> <a href="https://fosstodon.org/tags/codegolfing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codegolfing</span></a> <a href="https://fosstodon.org/tags/algorithm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>algorithm</span></a> <a href="https://fosstodon.org/tags/attractor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>attractor</span></a> <a href="https://fosstodon.org/tags/fractal" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fractal</span></a> <a href="https://fosstodon.org/tags/computergraphics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>computergraphics</span></a></p>
{:ok, "Joel Jucá"}<p>I just heard of this code-golfing thing, so I tried to solve FizzBuzz thru code-golfing at code.golf:</p><p>```ex<br>for i&lt;-1..100, do: IO.puts (rem(i,3)==0&amp;&amp;((rem(i,5)==0&amp;&amp;"FizzBuzz")||"Fizz"))||rem(i,5)==0&amp;&amp;"Buzz"||i<br>```</p><p><a href="https://functional.cafe/tags/Elixirlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Elixirlang</span></a> doesn’t help much by not providing a `%` operator, but it still works.</p><p>How would you do better? 😄<br><a href="https://functional.cafe/tags/codegolfing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codegolfing</span></a> <a href="https://functional.cafe/tags/myelixirstatus" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>myelixirstatus</span></a></p>
Rick Wong – Tech & code <p>Let me just say this, many languages exist that are better suited for code golfing than Go 🤣 <a href="https://fosstodon.org/tags/adventofcode2023" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>adventofcode2023</span></a> <a href="https://fosstodon.org/tags/aoc2023" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>aoc2023</span></a> <a href="https://fosstodon.org/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a> <a href="https://fosstodon.org/tags/codegolfing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codegolfing</span></a></p>
RolfBlyTS<p>Reading temperature from a particulate matter sensor on my home network; it's a value in a dict in a list l ("el") that I read from a json file. </p><p>`temp = float([i for i in l if i['value_type'] == 'temperature'][0]['value'])`</p><p>It works fine. I like it. </p><p>Is it code golfing, and therefor to be frowned upon? </p><p><a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://fosstodon.org/tags/codegolfing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codegolfing</span></a> <a href="https://fosstodon.org/tags/oneliners" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>oneliners</span></a></p>
Link of the Day [defunct]<p>🕖 Link of the day THROWBACK<br>This day, one year ago...</p><p>📎 Link of the day: <a href="https://js1k.com/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">js1k.com/</span><span class="invisible"></span></a><br>📂 Category: Computers » Development » Code golfing</p><p>The JavaScript code golfing competition. It runs yearly, usually in or around February/March. You must submit a self-contained demo in 1024 bytes of pure JS, which in turn may use various web technologies (submitted by <span class="h-card"><a href="https://tech.lgbt/@1ynx" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>1ynx</span></a></span>).</p><p><a href="https://botsin.space/tags/lotd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lotd</span></a> <a href="https://botsin.space/tags/codegolfing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codegolfing</span></a> <a href="https://botsin.space/tags/development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>development</span></a> <a href="https://botsin.space/tags/computers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>computers</span></a> <a href="https://botsin.space/tags/web" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>web</span></a></p>
Link of the Day [defunct]<p>🕖 Link of the day THROWBACK<br>This day, one year ago...</p><p>📎 Link of the day: <a href="https://ioccc.org/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">ioccc.org/</span><span class="invisible"></span></a><br>📂 Category: Computers » Development » Code golfing</p><p>The site of the International Obfuscated C Code Contest, whose goals are (among others) to show the importance of programming style, in an ironic way; to stress C compilers with unusual code; to illustrate some of the subtleties of the C language and to provide a safe forum for poor C code.</p><p><a href="https://botsin.space/tags/lotd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lotd</span></a> <a href="https://botsin.space/tags/codegolfing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codegolfing</span></a> <a href="https://botsin.space/tags/development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>development</span></a> <a href="https://botsin.space/tags/computers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>computers</span></a> <a href="https://botsin.space/tags/web" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>web</span></a></p>
Link of the Day [defunct]<p>📎 Link of the day: <a href="https://js1k.com/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">js1k.com/</span><span class="invisible"></span></a><br>📂 Category: Computers » Development » Code golfing</p><p>The JavaScript code golfing competition. It runs yearly, usually in or around February/March. You must submit a self-contained demo in 1024 bytes of pure JS, which in turn may use various web technologies (submitted by <span class="h-card"><a href="https://tech.lgbt/@1ynx" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>1ynx</span></a></span>).</p><p><a href="https://botsin.space/tags/lotd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lotd</span></a> <a href="https://botsin.space/tags/codegolfing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codegolfing</span></a> <a href="https://botsin.space/tags/development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>development</span></a> <a href="https://botsin.space/tags/computers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>computers</span></a> <a href="https://botsin.space/tags/web" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>web</span></a></p>
Link of the Day [defunct]<p>📎 Link of the day: <a href="https://ioccc.org/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">ioccc.org/</span><span class="invisible"></span></a><br>📂 Category: Computers » Development » Code golfing</p><p>The site of the International Obfuscated C Code Contest, whose goals are (among others) to show the importance of programming style, in an ironic way; to stress C compilers with unusual code; to illustrate some of the subtleties of the C language and to provide a safe forum for poor C code.</p><p><a href="https://botsin.space/tags/lotw" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lotw</span></a> <a href="https://botsin.space/tags/codegolfing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codegolfing</span></a> <a href="https://botsin.space/tags/development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>development</span></a> <a href="https://botsin.space/tags/computers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>computers</span></a> <a href="https://botsin.space/tags/web" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>web</span></a></p>