Hacker News Comments on
Code Golf & the Bitshift Variations - Computerphile
Computerphile
·
Youtube
·
8
HN points
·
3
HN comments
HN Theater has aggregated all Hacker News stories and comments that mention Computerphile's video "Code Golf & the Bitshift Variations - Computerphile".
Youtube Summary
HN Theater Rankings
- This course is unranked · view top recommended courses
Hacker News Stories and Comments
All the comments and stories posted to Hacker News that reference this video.
⬐
Feb 17, 2021
·
ducktective on
Bitshift Variations: ~15 minute music in 245 bytes
Rob Miles (the creator) explains it in a Computerphile video : https://www.youtube.com/watch?v=MqZgoNRERY8To test, execute the following in a bash terminal:
(245 chars is the bash command, the actual C code is shorter of course)echo "g(i,x,t,o){return((3&x&(i\*((3&i>>16?\"BY}6YB6%\":\"Qj}6jQ6%\")[t%8]+51)>>o))<<4);};main(i,n,s){for(i=0;;i++)putchar(g(i,1,n=i>>14,12)+g(i,s=i>>17,n^i>>13,10)+g(i,s/3,n+((i>>11)%3),10)+g(i,s/5,8+n-((i>>10)%3),9));}"|gcc -xc -&&./a.out|aplay
⬐
Nov 25, 2020
·
xingyzt on
Bitshift Variations in C Minor (2012)
Explanation here: https://www.youtube.com/watch?v=MqZgoNRERY8
⬐
This code was written by Robert S K Miles and is featured in the computerphile video "Code Golf & the Bitshift Variations":
⬐
⬐ csenseIf you run Linux (or Mac, if they have aplay utility), I highly recommend typing the C into a terminal and giving it a listen! The song's way more complex than you'd think could fit in that amount of data!