Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
41–50 of 69 posts
Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
#42You'll want to put the code in code block (prefix line with spaces) so asterisks don't get mangled
Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
#43I can't stress enough how much I admire that it is true 256 bytes, instead of usual 1k game jams, where submissions are presented as zipped, gzipped, and postfixed, and not including assets to fit the criteria. Hats off.
This one is also cool. https://linusakesson.net/scene/a-mind-is-born/
Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
#44A minor note: this is the first time I've seen an svg embedded in a canvas purely for it's onload event. Within this context the canvas is referred to by its (bare) id. How strange and wonderful!
It turns out that packing it into an svg onload is a tiny bit smaller then using a script tag! It is possible to save a little more space by putting it in the canvas onclick event.
Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
#45TIL that elements with ids are exposed as global variables in JS.
Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
#46Stuff like this makes me believe that the entirety of life really could be encoded in DNA. I've read that if you gzipped the human genome, the file would be about 4MB, which intuitively seems too small to represent a human. But if this behavior can emerge from 256 bytes, then clearly my intuition is off.
Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
#47TIL that elements with ids are exposed as global variables in JS.
I've also noticed this a few years ago, but where is this documented? Was it already the case in IE6 for example? Have you found any definitive source, which states this behaviour?
> 7.2.2.3 Named access on the Window object
> window[name]
> Returns the indicated element or collection of elements.
https://html.spec.whatwg.org/multipage/nav-history-apis.html...
Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
#48TIL that elements with ids are exposed as global variables in JS.
I've also noticed this a few years ago, but where is this documented? Was it already the case in IE6 for example? Have you found any definitive source, which states this behaviour?
It was said to be introduced in MSIE 4 or around and then eventually standardized by WHATWG (because `window` was never formally specified before that point, AFAIK): https://stackoverflow.com/questions/9740275/html-element-id-...
Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code
#49Stuff like this makes me believe that the entirety of life really could be encoded in DNA. I've read that if you gzipped the human genome, the file would be about 4MB, which intuitively seems too small to represent a human. But if this behavior can emerge from 256 bytes, then clearly my intuition is off.
Also, have a look at the Mandelbrot set again. There's quite a lot of information in, arguably, a very modest process.
And finally, to suggest that these 256 bytes are less impressive than they are, consider what hardware and software is needed to support it. These 256 bytes would not lead to the same illusion on a C64.