home.social

#codegolfing — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #codegolfing, aggregated by home.social.

  1. A very simple way to draw HAKMEM 149 based structures by using whole 32 bits range with upper bits as coordinates using unsigned shifts.

    This also works with a lower range but it loses precision.

    The oblique version is even simpler by removing the last two operations.

    The structure looks like Apollonian net or Hopalong attractors.

    This drawing method also works with other attractors or Gingerbread man map etc.

  2. A try at realtime graphics programming / code golfing on the , also wrote a guide (may works for other models such as Falcon) : onirom.fr/wiki/codegolf/atari_

    My first :atari: ST program was made 20 years ago but i didn't go further than some GEM "hello world" at the time... a fun and easy platform overall although i dislike bitplane graphics and the exe header. ;) (no need for header / loader on Acorn Archimedes / RISC OS !)

  3. A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : onirom.fr/wiki/codegolf/atari_

    My first :atari: ST program was made 20 years ago but i didn't go further than some GEM "hello world" at the time... a fun and easy platform overall although i dislike bitplane graphics and the exe header. ;) (no need for header / loader on Acorn Archimedes / RISC OS !)

    #demoscene #codegolfing

  4. A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : onirom.fr/wiki/codegolf/atari_

    My first :atari: ST program was made 20 years ago but i didn't go further than some GEM "hello world" at the time... a fun and easy platform overall although i dislike bitplane graphics and the exe header. ;) (no need for header / loader on Acorn Archimedes / RISC OS !)

    #demoscene #codegolfing

  5. A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : onirom.fr/wiki/codegolf/atari_

    My first :atari: ST program was made 20 years ago but i didn't go further than some GEM "hello world" at the time... a fun and easy platform overall although i dislike bitplane graphics and the exe header. ;) (no need for header / loader on Acorn Archimedes / RISC OS !)

    #demoscene #codegolfing

  6. A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : onirom.fr/wiki/codegolf/atari_

    My first :atari: ST program was made 20 years ago but i didn't go further than some GEM "hello world" at the time... a fun and easy platform overall although i dislike bitplane graphics and the exe header. ;) (no need for header / loader on Acorn Archimedes / RISC OS !)

    #demoscene #codegolfing

  7. CW: Advent of Code Day09

    Today Puzzle was a bit easier compared to the previous days. I solved part1 and part2 with the same naive approach.

    This year I am NOT coding in #Haskell with #codegolfing, but in #python favoring readability.

    I also made a framework, that downloads the puzzle inputs and example inputs, and runs the code on them, so my code is less cluttered.

    git.k-fortytwo.de/christofstee

    I just completed "Mirage Maintenance" - Day 9 - Advent of Code 2023 #AdventOfCode adventofcode.com/2023/day/9

  8. I just heard of this code-golfing thing, so I tried to solve FizzBuzz thru code-golfing at code.golf:

    ```ex
    for i<-1..100, do: IO.puts (rem(i,3)==0&&((rem(i,5)==0&&"FizzBuzz")||"Fizz"))||rem(i,5)==0&&"Buzz"||i
    ```

    #Elixirlang doesn’t help much by not providing a `%` operator, but it still works.

    How would you do better? 😄
    #codegolfing #myelixirstatus

  9. Let me just say this, many languages exist that are better suited for code golfing than Go 🤣

  10. 🕖 Link of the day THROWBACK
    This day, one year ago...

    📎 Link of the day: js1k.com/
    📂 Category: Computers » Development » Code golfing

    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 @1ynx).

    #lotd #codegolfing #development #computers #web

  11. 🕖 Link of the day THROWBACK
    This day, one year ago...

    📎 Link of the day: ioccc.org/
    📂 Category: Computers » Development » Code golfing

    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.

    #lotd #codegolfing #development #computers #web

  12. my favorite unreadable javascript golfed code:

    typeof window > "u"

    #javascript #codegolfing

  13. I've a funny story for you. At the very beginning of The Game Awards 2022 they announced a free mobile version of #VampireSurvivors. I didn't know the game so I downloaded it to my phone and gave it a quick try. Then I missed the rest of the event.

    Pro-tip: never give free carefully crafted distractions at the start of a conference! ;)

    Wizard Survivors is my Toot-sized tribute: github.com/kesiev/wizardsurviv

    #TGA2022 #javascript #opensource #codegolfing #indiedev #WizardSurvivors

    Full sources here:

  14. I've a funny story for you. At the very beginning of The Game Awards 2022 they announced a free mobile version of #VampireSurvivors. I didn't know the game so I downloaded it to my phone and gave it a quick try. Then I missed the rest of the event.

    Pro-tip: never give free carefully crafted distractions at the start of a conference! ;)

    Wizard Survivors is my Toot-sized tribute: github.com/kesiev/wizardsurviv

    #TGA2022 #javascript #opensource #codegolfing #indiedev #WizardSurvivors

    Full sources here:

  15. I've a funny story for you. At the very beginning of The Game Awards 2022 they announced a free mobile version of #VampireSurvivors. I didn't know the game so I downloaded it to my phone and gave it a quick try. Then I missed the rest of the event.

    Pro-tip: never give free carefully crafted distractions at the start of a conference! ;)

    Wizard Survivors is my Toot-sized tribute: github.com/kesiev/wizardsurviv

    #TGA2022 #javascript #opensource #codegolfing #indiedev #WizardSurvivors

    Full sources here:

  16. 📎 Link of the day: js1k.com/
    📂 Category: Computers » Development » Code golfing

    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 @1ynx).

    #lotd #codegolfing #development #computers #web

  17. 📎 Link of the day: ioccc.org/
    📂 Category: Computers » Development » Code golfing

    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.

    #lotw #codegolfing #development #computers #web