#codegolfing

2025-03-02

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

HAKMEM 149 based structure produced by the attached codeHAKMEM 149 based structure produced by the shown code with : x -= 1 << 30simplified p5js code of the HAKMEM 149 structure using 32 bits range with upper bits taken as coordinates, coordinates shifts are adapted to a 512x512 framebuffer.

The X and Y offsets can be modified to show different structures, this can also be simplified by removing the offsets code and initializing X and Y with large values.

For this particular case "y += 1 << 31" is unneeded (produce the same result)
2025-01-07

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

2024-01-14

WavesinNano

Video youtu.be/xku48uYqJ48

#genuary2024 #genuary14 #codegolfing #tixyland #hydra #bytebeat

For Genuary2024 Day 14: Under A Kilobyte, A snippet of a world is view with code that is written in less than 500 bytes of text through Hydra @hydra Tixyland & Bytebeat

Blogpost: blog.illestpreacha.com/genuary

Poem

The waves have arrived
The waves have multiplied
Didn’t take alot ot be
But will take alot to leave

#genuary #creativecoding #coding
#newmedia #animation

2023-12-09
{:ok, "Joel Jucá"}joel@functional.cafe
2023-12-05

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

Rick Wong – Tech & code ryguw@fosstodon.org
2023-12-03

Let me just say this, many languages exist that are better suited for code golfing than Go 🤣 #adventofcode2023 #aoc2023 #golang #codegolfing

2023-11-18

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.

`temp = float([i for i in l if i['value_type'] == 'temperature'][0]['value'])`

It works fine. I like it.

Is it code golfing, and therefor to be frowned upon?

#Python #codegolfing #oneliners

Link of the Day [defunct]linkoftheweek@botsin.space
2023-11-08

🕖 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

Link of the Day [defunct]linkoftheweek@botsin.space
2023-10-06

🕖 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

Willy Braunerwillybrauner
2023-09-07

my favorite unreadable javascript golfed code:

typeof window > "u"

KesieV NorimakiKesiev
2022-12-19

I've a funny story for you. At the very beginning of The Game Awards 2022 they announced a free mobile version of . 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

Full sources here:

Link of the Day [defunct]linkoftheweek@botsin.space
2022-11-08

📎 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

Link of the Day [defunct]linkoftheweek@botsin.space
2022-10-06

📎 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

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst