2 Weeks until Jam 2023! 👩‍💻
🌐 itch.io/jam/pico-1k-2023
👨‍💻 Make carts in ≤ 1KB of compressed code
📅 SEP 1st-30th 2023
What game/demo/tool will YOU make? 🤔

#Pico1k #pico8 #gamejam #demoscene #tweetcart #codegolf #sizecoding

Last updated 1 year ago

Mousetail · @mousetail
92 followers · 81 posts · Server fosstodon.org

Can you find a formula for this prime sequence using the fewest number of bytes?

The period is 210 for the 3-term version, but the period for the 4-term version is unknown. Interested in theories for what it could be.

codegolf.stackexchange.com/que

#codegolf #programming #math

Last updated 1 year ago

· @gholk
78 followers · 1890 posts · Server g0v.social


這段 javascript 能簡化掉重複的二個 toHtml 呼叫嗎?

Could the two `domTool.toHtml` calls in following function eliminate?

```js
const h = (...args) => {
const x = tsjson.html(...args)
if (typeof x == 'function') {
return (...args) => domTool.toHtml(x(...args))
}
return domTool.toHtml(x)
}
```

#codegolf

Last updated 1 year ago

█▓▒░ 𝗣𝗜𝗖𝗢⬩𝟭𝗞 𝗝𝗔𝗠 𝟮𝟬𝟮𝟯 ░▒▓█
🌐 itch.io/jam/pico-1k-2023
𝘞𝘏𝘈𝘛?
👨‍💻 Make Games/Demos/Tools in ≤ 1KB of compressed bytes
𝘞𝘏𝘌𝘕?
📅 SEP 1st-30th 2023
Hope to see you at jam! 🤓

#pico8 #Pico1k #gamejam #demoscene #tweetcart #codegolf #sizecoding

Last updated 1 year ago

Evan Hahn · @EvanHahn
893 followers · 253 posts · Server bigshoulders.city
Counting Is Hard · @counting_is_hard
67 followers · 123 posts · Server mathstodon.xyz

Hindley and Seldin had an exercise that says to find two lambda terms P, Q which do not have β normal forms but PQ does.

It's not the hardest exercise once you have the idea of passing stuff around in the usual Ω fashion until you can shuffle a constant function onto the front, but I think it could be a fun challenge for a lazy afternoon.

My first attempt was
\[ P= (\lambda xy.y (\lambda x yz.z)(x x))(\lambda xy.y (\lambda x yz.z)(x x)) \] \[Q = (\lambda x y z. y (x x)z)(\lambda x y z. y (x x)z)\]

#lambdacalculus #codegolf

Last updated 1 year ago

Bernie · @codewiz
1565 followers · 16807 posts · Server mstdn.io

A friend of mine minified Bitshift Variations in C Minor down to 179 bytes:

gcc -xc -oa -<<<'i;n;g(m,t,o){m=("GTj?TG?5"[7&t]+!(n&12|t&2)*9)*i>>o&m&24;}main(s){for(;;putchar(g(8,n=s>>4,8)+g(n,n^s/8,6)+g(n/3,n+s/2%3,6)+g(n/5,n-s%3,5)))s=++i>>10;}';./a|aplay

#bytebeat #programming #codegolf #chiptune

Last updated 1 year ago

Codidact · @codidact
73 followers · 30 posts · Server fosstodon.org

This looks like a fun and a fun programming challenge even without the golf: codegolf.codidact.com/posts/28

#codegolf #challenge

Last updated 1 year ago

mkj · @mkj
71 followers · 1325 posts · Server social.linux.pizza
· @grz0zrg
2 followers · 5 posts · Server fosstodon.org

Took the time to release the source code of all my / productions (64, 128, 256, 512 bytes Linux and ) github.com/grz0zrg/codegolfing

#codegolf #sizecoding #demoscene #fbdev #tic80

Last updated 1 year ago

Train · @TX_Train
11 followers · 105 posts · Server social.nekover.se

this! Surely there is a better way to do it

#codegolf

Last updated 2 years ago

Bigbass · @bigbass
12 followers · 60 posts · Server hachyderm.io

@TodePond Gives a new meaning to

#codegolf

Last updated 2 years ago

Monica Cellio · @cellio
291 followers · 489 posts · Server indieweb.social

Wow, this question is almost two years old and people are still trying to improve answers, many in "normal" languages rather than languages optimized for golfing. Some neat reading here. :-)

codegolf.codidact.com/posts/28

#codegolf

Last updated 2 years ago

Jari Pennanen · @Ciantic
199 followers · 1588 posts · Server twit.social

What happens when you let code golfer write a UUID polyfill?

5335 points in stack overflow, for code, none seems to understand:

function uuidv4() {
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c =>
(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
);
}

stackoverflow.com/questions/10

Somehow I think I'm not going to use that, if your code is so hard to understand it's discussed non-stop, it's a 🚩

#codegolf #javascript

Last updated 2 years ago

Jess Telford · @jesstelford
247 followers · 215 posts · Server aus.social

🎆 Fireworks time! 🎆

Just 260 characters (incl. a lot of sine waves) to create this never ending celebration!

It's now open sourced and fully annotated 🧑‍💻

👉 github.com/jesstelford/pico8-t

#pico8 #opensource #codegolf #tweetcart #tootcart #mathforthewin

Last updated 2 years ago

Jess Telford · @jesstelford
245 followers · 205 posts · Server aus.social

Added a nice fadeout, and reduced it to 260 chars!

```
l=circfill
r=rnd::_::cls()srand()for i=1,20 do
m=8+8*r()q=(t()/m)%1
x=64+q*256*(r()-.5)y=128+sin(q)*64*(r()+.8)s=sgn(sin(q+.8))l(x,y,s-1,7)j=2*(q-.2)k=m*(1-(1-j)^9)for u=0,1,.1 do
l(x+sin(u)*k,y+cos(u)*k,sin(q-.9)\1*s,q>.45 and 1 or 8+i%8)
end
end
flip()goto _
```

#tweetcart #tootcart #pico8 #codegolf #lua

Last updated 2 years ago

Sparr · @sparr
71 followers · 947 posts · Server mastodon.social

I enjoy and I'm decent at it. I'm happy to apply those skills to games that need to squeeze more tokens and/or bytes out of existing code to make room for more features or levels.

Examples: github.com/Liquidream/scumm-8/ github.com/freds72/pico8/pull/

#codegolf #pico8 #gamedev

Last updated 2 years ago

Marquee Design · @marqueedesign
27 followers · 35 posts · Server icosahedron.website

marqueedesign
Marquee Design @marqueedesign

Tiny Code Christmas, Day 11 Expert Challenge: Create a Hollow Cube that rotates in 3D along at least 2 Axis in 256 characters or less without using the Line of Triangle functions. You can use any technique at your disposable, e.g. Raymarching, Raycasting, Voxels, Raytracing, Drawing your own a fat wire cube, etc.

Here is one of my versions of the regular voxelcube (most of them between 130 and 148 characters of code)

#lovebytetcc #tic80 #demoscene #sizecoding #codegolf

Last updated 2 years ago

Marquee Design · @marqueedesign
27 followers · 34 posts · Server icosahedron.website

Tiny Code Christmas, Day 11 Expert Challenge: Create a Hollow Cube that rotates in 3D along at least 2 Axis in 256 characters or less without using the Line of Triangle functions. You can use any technique at your disposable, e.g. Raymarching, Raycasting, Voxels, Raytracing, Drawing your own a fat wire cube, etc.

Here is one of my versions (most of them between 140 and 155 characters of code)

#lovebytetcc #pico8 #demoscene #sizecoding #codegolf

Last updated 2 years ago

Marquee Design · @marqueedesign
26 followers · 33 posts · Server icosahedron.website

Tiny Code Christmas Expert Challenge Day 5: Animated moving Tunnel effect with 2d pattern and Z-perspective.

Here is my version in 59 characters (balancing size and aesthetics):

while(1)r=rnd(91)?8,64+r*cos(r),64+r*sin(r),32*r&99/r+t()&6

#lovebytetcc #pico8 #demoscene #sizecoding #codegolf

Last updated 2 years ago