Live data from Hacker News

Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code

killedbyapixel.github.io

41–50 of 69 posts

Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code

#43
post #13

I 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/

This one is incredible.

Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code

#44

A 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.

[deleted]

Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code

#45

TIL 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?

Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code

#46
post #25

Stuff 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.

You may be interested in an article posted to HN a few days ago that argues against the conception of DNA as code and of cells as computers or machines.

https://www.nature.com/articles/d41586-024-00327-x

Re: Show HN: Bitwise Liminal – A Short Film in 256 Bytes of Code

#47
post #45

TIL 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?

HTML Spec:

> 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

#48
post #45

TIL 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?

The relevant WHATWG specification: https://html.spec.whatwg.org/multipage/nav-history-apis.html...

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

#49
post #25

Stuff 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.

Life generated from DNA in a vacuum would probably be pretty boring. The entirety of life requires some surroundings to interact with, and as it stands there is but one of those, and singular things don't compress well.

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.

Post reply on HN