https://js1024.fun/ is on
js 1k demo :)
golf well people
every wanna golf your css color codes? yeah, me neither. just use my postcss plugin to do it for you
https://github.com/xero/postcss-color-golf
https://npmjs.com/package/postcss-color-golf
#npm #js #postcss #css #scss #sass #style #css3 #optomization #golf #codegolf
Ich folge zu wenigen kreativen Accounts. Ich suche coole Software Spielereien, weniger klassische Kunst oder Hardware. Leute die Neues ausprobieren und Sachen aus Spaß programmieren, ohne konkrete Probleme damit lösen zu wollen. Code Golf, Experimente, ultra detaillierte Analysen und Deep-dives. Vorschläge? :BoostOK:
rose quartz + DOF #glsl #generative #tinycode #codegolf
vec3 q=vec3(0,0,7e3),v=FC.rgb-r.xyx*.5,p,u=sin(FC.rgb*PI);v-=u*4.;for(float i,s;i++<67.;s=abs(2e3-length(p.yz))-3e1,q+=sin(i)+v*.7/r.x*s,o+=exp(-s*s/vec4(4,1,2,1))/i)for(p=q+u*4e4/r.x,s=7e3;9.<s;p=p.zxy+s*.02*sin(p/s*17.),s*=.8)p.zx*=rotate2D(s+(s==7e3?t*.2:0.));
More #codegolf #programming - this time it's for some space invader animations. (140 characters was not enough to make the game interactive)
✨ Behold the groundbreaking revelation: you can animate dots with simple math! 🤯 Code golfing has never been so exhilarating, or so... dotty. 🎯 Just when you thought life couldn't get simpler, here come the 16x16 dots to prove you wrong. 🎨✨
https://tixy.land #animation #math #codegolf #creative #coding #dotart #HackerNews #ngated
So I watched this video https://www.youtube.com/watch?v=RcVA8Nj6HEo
And I decided to check what "plus times plus" actually computes. Luckily, I have my own #LambdaCalculus compiling language, #Lamber f https://github.com/aartaka/lamber
So I ran "* + + 1 2 3" and got... 36. So a number from a #math operator applied to other operators and then to data. Which seems like a nice basis for math conspiracy theories. How many of the basic arithmetic functions can we combine, and to what result? Might even end up with lambda calculus #codegolf things, like this division function John Tromp listed with attribution to Bertram Felgenhauer:
def div fn (dividend divisor)
local F = fn (m f t)
m T' (fn (c) f : c t) id .
int (fn (f x)
(int dividend) T' (K x) ((int dividend) (F (int divisor) f) x)) .
Adapted to Lamber, of course. But not any more readable than it used to be. Which is a cool feature of LC—you can apply anything to anything and get something as a result, albeit with a really confusing program flow.
I'm that close to learning some logical language and trying to devise mine, with lambda diagrams as concept ideograms and function application as the only syntactic relation. Yeah I know I'm going crazy, but at least it's fun.
3rd place for my "10 Line Dino" - happy with that :)
JavaScript piano one-liner :) #codegolf
for(p='',y=5;y--;p+="\n")for(x=80;x--;)p+=x&1?5-y<4*((59&(1<<((x>>1)%7)))>0)|0?'#':'|':' ';console.log(p)
Simplest way to draw HAKMEM 149 based structure without offsetting / adjusting the seeds, turns out that using one unsigned shift is the 🗝️
Loop is optional.
Two versions for the two different algorithm precisions. Adapted for 512x512.
Code is for a grey scale one but i made a colored one based on exponentially mapped iteration count (classic way to color fractals), this somehow require to offset coordinates for nice colors.
I have succeeded in creating a polyphonic #WebAudio soundscape, with 140 characters.
So proud/not proud with the cheats needed to get this code down to size.
Doing some table generation in awk, and is there an easier way to do "all fields n to NF" than this?
function combine(combn, combs) {
for (; combn<=NF; ++combn) {
combs=combs "\t" $(combn)
}
return combs
}
I could use printf on the fragments, but the annoyance is that loop, instead of
(string-join (cddr fields) "\t")
or whatever.
More golf!
194 bytes of code, which compresses to 140.
I have significantly better looking versions, but I need an extra 9 bytes to do it!
FWIW, that image shows the output of a real-time pixel shader, written in 171 bytes of #javascript
This feels like a good game for #codegolf - writing compact solvers for it - brute force is OK but I'm also curious about better solutions
Another #CodeGolf puzzle for #JavaScript #WebDev people:
I have n functions that type one argument of the same type and return a boolean.
The current usage is:
function a(b) {
return c(b) && d(b)
}
I boiled down a to
a = (b) => [c, d].every(fn => fn(x))
I assume, this can be further boiled down via bind/ #PartialApplication/ #Currying
What do you think?
#amCoding #amProgramming #webDevelopment #softwareDevelopment #softwareEngineering
#lispygopherclimate https://archives.anonradio.net/202501220000_screwtape.mp3 #archive
#ClimateCrisis haiku/wildfires by @kentpitman
Electric (guitar) #music by @ksaj, community message from @TheGibson
Arrokoth #McClim Graphical adventure Game creation system #lisp
by five decade #gamedev veteran @mdhughes
#NUD #codegolf / adopting Arrokoth
@baruchel #lisp destructive permutation
#mastobook club - Snow crash
#livechat in #lambdaMOO
telnet lambda.moo.mud.org 8888
co guest
@join screwtape
#NUD #codegolf #programming #gamedev #commonlisp
If you'll forgive the daily throwaway challenges, here's another one. To quote from the link,:
```
'(a (b c) d (e f))
overwrite the b with the f.
```
My solution, featuring the new "apply nconc to register", &
```
(progn ^^ [ >> >> v [ & ^^ [ >> >> ] )
```
the ability to use & to create portals opens up a world of puzzles/golf challenges.
https://lispy-gopher-show.itch.io/lispmoo2/devlog/872152/nud-golf-2-more-nconc
I'll add @mdhughes' https://mdhughes.tech/software/arrokoth/ for the interface this week.