Matrix Digital Rain – Written in GopherJS
tidwall.github.io
tidwall.github.io
Do you know which glyphs are suppose to be flipped? I built this based on the footage from the original film and tried to flip the characters that provided the best cinematic effect.
What implementation of compile-to-javascript Go is this? They should add tags for closure compiler optimization, just simple optimisations (without type annotations, which are present, usefully in go) cuts the filesize by half.
For instance, this demo uses the `fmt` package from the stdlib, which imports a whole lot of things. In normal Go programs, importing `fmt` means growing you binary size by a large bump.
https://github.com/tidwall/digitalrain/blob/master/digitalra...
I know the Go authors are concerned about the size of generated binaries, or at least have expressed concerns in the past. I don't know how work on that would translate in improvement to GopherJS' codegen.
Deleted comment
I haven't seen clean code using GopherJS so far, if anyone has examples, please let me know.
There's a default package that comes with GopherJS which is allows for interacting with the JS world and the DOM. It's pretty raw and can result in what you are seeing as ugly.
There are some great new packages being developed which give a more Go style. One is: http://godoc.org/honnef.co/go/js/dom
This demo uses only the default packages, which is one of the goals of the project.
as it is, I thought I was looking at the output of a Markov chain.