HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

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
Thanks to Audible for supporting our channel. Get a free 30 day trial at http://www.audible.com/Computerphile
A short jumble of letters & symbols that plays a long, musical tune? This is code Golf and Rob Miles' musical composition: "The Bitshift Variations in C minor"

Link to Code: http://txti.es/bitshiftvariationsincminor

Thanks to Nottingham Hackspace for providing us with a place to film

Rob's Soundcloud account with the tune : Bitshift Variations in C Minor by robertskmiles
http://soundcloud.com/robertskmiles/bitshift-variations-in-c-minor

EXTRA BITS: https://youtu.be/EcVUth3rrXk
The Brain Scanner: https://youtu.be/TQ0sL1ZGnQ4
Brian Kerninghan on Bell Labs: https://youtu.be/QFK6RG47bww
Computer That Changed Everything - Altair 8800: https://youtu.be/6LYRgrqJgDc
Binary Addition & Overflow: https://youtu.be/WN8i5cwjkSE

http://www.facebook.com/computerphile
https://twitter.com/computer_phile

This video was filmed and edited by Sean Riley.

Computer Science at the University of Nottingham: http://bit.ly/nottscomputer

Computerphile is a sister project to Brady Haran's Numberphile. More at http://www.bradyharan.com
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Rob Miles (the creator) explains it in a Computerphile video : https://www.youtube.com/watch?v=MqZgoNRERY8

To test, execute the following in a bash terminal:

  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
(245 chars is the bash command, the actual C code is shorter of course)
This code was written by Robert S K Miles and is featured in the computerphile video "Code Golf & the Bitshift Variations":

https://www.youtube.com/watch?v=MqZgoNRERY8

Jan 12, 2016 · 8 points, 1 comments · submitted by tambourine_man
csense
If 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!
HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.