mastodon.online is one of the many independent Mastodon servers you can use to participate in the fediverse.
A newer server operated by the Mastodon gGmbH non-profit

Server stats:

10K
active users

#codegolf

0 posts0 participants0 posts today

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.

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.

#lispygopherclimate archives.anonradio.net/2025012 #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

@nosrednayduj @ratxue @hairylarry

#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.

lispy-gopher-show.itch.io/lisp

I'll add @mdhughes' mdhughes.tech/software/arrokot for the interface this week.

#gameDev
#codeGolf is a #game right?? "Challenges" and all that. #programmingChallenge #programming
lispy-gopher-show.itch.io/lisp
I modified my little NUD language to basically be vi but for #lisp lists. Er, if I do say so. YMMV

Alternately, propose your own challenges for me and others to solve (I'll add them to the git here: codeberg.org/tfw/nud/src/branc )

If anyone wants help trying or has other commentary, lmk here or during the show.

A tiny way to compute a square / triangle wave at the same time without conditionals, only basic arithmetic and shifts.

This can be used for #oscillators or animations etc. #algorithm is a variant of HAKMEM 149.

Can also be used to draw a square. (And other shapes, see previous toot)

Code also shows how to draw a diamond shape by rotating the square by 45°.

There are two versions, optimized for size and optimized for speed.

After a large community effort, Code Golf (code.golf/) now supports unrestricted execution and answer checking for their growing list of problems in #APL (Dyalog APL). APL is listed in the "experimental" section of the supported languages list – once a sufficient number of people have submitted solutions, it will move to the main list of languages and get a leaderboard. Please help APL achieve this by exploring the site and submitting APL solutions. #Dyalog #DyalogAPL #CodeGolf

Python oneliner: add random diacritics to vowels. The input is "SEQUOIA sequoia". Prints e.g. "SÉQÜÕÏÁ sëqûôìâ".
import random;print("".join((chr(ord(c)&32|b"aimsz"["AEIOUaeiou".find(c)%5]+random.randint(95,98))if c in"AEIOUaeiou"else c)for c in"SEQUOIA sequoia"))
Edit: deleted the old versions because they might give away how the program works.
#Python #codeGolf