2 Weeks until #PICO1K Jam 2023! 👩💻
🌐 https://itch.io/jam/pico-1k-2023
👨💻 Make #Pico8 carts in ≤ 1KB of compressed code
📅 SEP 1st-30th 2023
What game/demo/tool will YOU make? 🤔
#Pico1k #pico8 #gamejam #demoscene #tweetcart #codegolf #sizecoding
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 #programming #math https://codegolf.stackexchange.com/questions/264299/output-the-smallest-increasing-sequence-where-each-term-is-coprime-to-preceding
#CodeGolf
這段 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)
}
```
█▓▒░ 𝗣𝗜𝗖𝗢⬩𝟭𝗞 𝗝𝗔𝗠 𝟮𝟬𝟮𝟯 ░▒▓█
🌐 https://itch.io/jam/pico-1k-2023
𝘞𝘏𝘈𝘛?
👨💻 Make #Pico8 Games/Demos/Tools in ≤ 1KB of compressed bytes
𝘞𝘏𝘌𝘕?
📅 SEP 1st-30th 2023
Hope to see you at #Pico1k jam! 🤓
#pico8 #Pico1k #gamejam #demoscene #tweetcart #codegolf #sizecoding
I made a simple picross puzzle game that fits in 1024 bytes of HTML. Try it at https://js1024.fun/demos/2023/15, or read my blog post about it at https://evanhahn.com/js1024-2023/.
#picross #nonogram #puzzle #CodeGolf #JS1024 #JS1k #JavaScript #minification #compression
#picross #nonogram #puzzle #codegolf #js1024 #js1k #javascript #minification #compression
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 #codegolf 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
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
This looks like a fun #codegolf #challenge and a fun programming challenge even without the golf: https://codegolf.codidact.com/posts/288535
@Are0h Here, meet https://www.codidact.com as well, which was born out of the previous Stack Exchange debacle. Consider trying it for Q&A, it's still small & needs more people. So far has communities for #writing, #outdoors, #photography & #video, #science speculation (#scifi #writers), #cooking, #ElectricalEngineering, #judaism, #languages & #linguistics, #SoftwareDevelopment, #mathematics, #christianity, #CodeGolf, #music, #physics, #Linux / #Unix, #computer users, & #TTRPG enthusiasts. [2/2]
#writing #outdoors #photography #video #science #scifi #writers #cooking #electricalengineering #judaism #languages #linguistics #softwaredevelopment #mathematics #christianity #codegolf #music #physics #linux #unix #computer #ttrpg
Took the time to release the source code of all my #codegolf / #sizecoding #demoscene productions (64, 128, 256, 512 bytes Linux #fbdev and #tic80) https://github.com/grz0zrg/codegolfing
#codegolf #sizecoding #demoscene #fbdev #tic80
Wow, this #CodeGolf 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. :-)
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)
);
}
https://stackoverflow.com/questions/105034/how-do-i-create-a-guid-uuid
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 🚩
🎆 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 🧑💻
👉 https://github.com/jesstelford/pico8-tootcart-fireworks
#Pico8 #OpenSource #CodeGolf #TweetCart #TootCart #MathForTheWin
#pico8 #opensource #codegolf #tweetcart #tootcart #mathforthewin
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
I enjoy #codegolf and I'm decent at it. I'm happy to apply those skills to #pico8 games that need to squeeze more tokens and/or bytes out of existing code to make room for more features or levels. #gamedev
Examples: https://github.com/Liquidream/scumm-8/pull/20 https://github.com/freds72/pico8/pull/8
marqueedesign
Marquee Design @marqueedesign
#LovebyteTCC 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 #tic80 versions of the regular voxelcube (most of them between 130 and 148 characters of code)
#lovebytetcc #tic80 #demoscene #sizecoding #codegolf
#LovebyteTCC 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 #pico8 versions (most of them between 140 and 155 characters of code)
#lovebytetcc #pico8 #demoscene #sizecoding #codegolf
#LovebyteTCC Tiny Code Christmas Expert Challenge Day 5: Animated moving Tunnel effect with 2d pattern and Z-perspective.
Here is my #pico8 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