#codegolfing — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #codegolfing, aggregated by home.social.
-
Code golfing a tiny demo using maths and a pinch of insanity
https://blog.pkh.me/p/45-code-golfing-a-tiny-demo-using-maths-and-a-pinch-of-insanity.html
#HackerNews #CodeGolfing #Maths #Insanity #Demo #Programming #Fun
-
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.
#sizecoding #codegolfing #algorithm #attractor #fractal #computergraphics
-
A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : https://www.onirom.fr/wiki/codegolf/atari_st/
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 !)
-
A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : https://www.onirom.fr/wiki/codegolf/atari_st/
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 !)
-
A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : https://www.onirom.fr/wiki/codegolf/atari_st/
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 !)
-
A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : https://www.onirom.fr/wiki/codegolf/atari_st/
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 !)
-
A try at realtime graphics programming / code golfing on the #AtariST #motorola68k, also wrote a guide (may works for other models such as Falcon) : https://www.onirom.fr/wiki/codegolf/atari_st/
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 !)
-
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.
https://git.k-fortytwo.de/christofsteel/aoc2023/-/blob/main/aoc/day09.py
I just completed "Mirage Maintenance" - Day 9 - Advent of Code 2023 #AdventOfCode https://adventofcode.com/2023/day/9
-
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 -
Let me just say this, many languages exist that are better suited for code golfing than Go 🤣 #adventofcode2023 #aoc2023 #golang #codegolfing
-
🕖 Link of the day THROWBACK
This day, one year ago...📎 Link of the day: https://js1k.com/
📂 Category: Computers » Development » Code golfingThe 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).
-
🕖 Link of the day THROWBACK
This day, one year ago...📎 Link of the day: https://ioccc.org/
📂 Category: Computers » Development » Code golfingThe 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.
-
-
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: https://github.com/kesiev/wizardsurvivors
#TGA2022 #javascript #opensource #codegolfing #indiedev #WizardSurvivors
Full sources here:
-
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: https://github.com/kesiev/wizardsurvivors
#TGA2022 #javascript #opensource #codegolfing #indiedev #WizardSurvivors
Full sources here:
-
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: https://github.com/kesiev/wizardsurvivors
#TGA2022 #javascript #opensource #codegolfing #indiedev #WizardSurvivors
Full sources here:
-
📎 Link of the day: https://js1k.com/
📂 Category: Computers » Development » Code golfingThe 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).
-
📎 Link of the day: https://ioccc.org/
📂 Category: Computers » Development » Code golfingThe 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.