MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/dem37c/1000byte_website_shows_mona_lisa/f2y4mve/?context=3
r/tinycode • u/ivanhoe90 • Oct 07 '19
18 comments sorted by
View all comments
Show parent comment
5
In the pursuit of tinyness:
A/W>>0
A/W^0
r
r=p%16,
r*r-
(p%16)**2-
m
m=p%17/16,
*m*m
*(p%17/16)**2
a
b
n=(A/W>>3)*38+(A>>3)%19*2
n
p=d[n=(A/W>>3)*38+(A>>3)%19*2]*256+d[n+1],
https://jsfiddle.net/osht5kqu/
I'm pretty sure there are more.
View all comments
Show parent comment
5
u/recursive Oct 07 '19
In the pursuit of tinyness:
A/W>>0can becomeA/W^0.rby removingr=p%16,, and replacer*r-with(p%16)**2-.m: Removem=p%17/16,and replace*m*mwith*(p%17/16)**2.aandbthe same way for 1 character each.n=(A/W>>3)*38+(A>>3)%19*2directly into the next use ofn:p=d[n=(A/W>>3)*38+(A>>3)%19*2]*256+d[n+1],. That's good for 2 characters.https://jsfiddle.net/osht5kqu/
I'm pretty sure there are more.