Live data from Hacker News

Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals

github.com

21–30 of 40 posts

Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals

#21
Great work! This is one of the best rain implementations I've seen.

A while back I implemented[0] a (pretty basic) Matrix rain in JavaScript that will pull your latest public GitHub contributions and use that for the rain text. Demo here[1]. And of course my useless Game of Life icons, golicaons[2] (demo [3]).

[0]: https://github.com/anderspitman/redpill

[1]: https://anderspitman.net/apps/redpill/

[2]: https://github.com/anderspitman/golicons

[3]: https://anderspitman.net/apps/golicons/

Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals

#22
post #19

Earlier quoted context omitted.

I think Xcode has shipped with a compliant C++17 compiler for over a year, but I used GCC to compile this one :)

GCC has supported this for more than a year, too (at least since 7.4.0).

GCC 7.4.0 sadly misses certain C++ features (filesystems) and does not correctly support others (template argument deduction). I'm waiting for 20.04 to hopefully bump GCC to something newer…

Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals

#23

Great work! This is one of the best rain implementations I've seen. A while back I implemented[0] a (pretty basic) Matrix rain in JavaScript that will pull your latest public GitHub contributions and use that for the rain text. Demo here[1]. And of course my useless Game of Life icons, golicaons[2] (demo [3]). [0]: https://github.com/anderspitman/redpill [1]: https://anderspitman.net/apps/redpill/ [2]: https://github…

There is a screensaver that does Matrix rain with GitHub's latest public commits: https://github.com/winterbe/github-matrix-screensaver

Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals

#24
I few years ago I put together a basic Mandelbrot terminal animation:

https://gist.github.com/tylerneylon/e70a684b88809f74168f3a36...

It runs nicely in Python 2 (and slower in Python 3).

Here's a nice code golf Mandelbrot that also uses no image library (it produces a bmp file): https://codegolf.stackexchange.com/a/23465

Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals

#26
Back in the 80s when most people were using DOS text screens, we would sometime play a joke on a friend/coworker. We would get on their computer and run a small terminate-and-stay-resident (background process) program called rain.com. It would sit in the background while they ran their word processor or spreadsheet. After some time, it would cause one character to “fall” down the screen. They would see it happen and not know what was going on. Then it would make another charter fall. By then, the person would usually call out to someone else to come and look at this weird thing. But then the program would up the rate and start dropping multiple charters. It kept increasing the rate and eventually all of the characters on their screen had rained down and were in a pile on the bottom of the screen. At that point, we would press some key combination and their original screen would appear. That is usually when we would let them in on the joke and reboot their machine to remove the TSR Rain.

People didn’t lock their computers back then. :)

Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals

#27
post #8
post #7

Earlier quoted context omitted.

The default WSL terminal is slow. I always install an X server. VcXsrv works great, with good Windows clipboard support. Then you can use urxvt or some other Linux terminal that's faster.

I've tried a bunch of X servers, but with a 4k display, they're all too slow to be usable. I'm settling for running WSL inside Alacritty for now.

Lol, the downfall of high powered output hardware. It then requires equally high powered input hardware. Solving this problem is my life now.

Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals

#29

Once everyone is working from home it is going to be prime time for terminal-based yak shaving.

Along those lines but from a more general angle I bet tons of other really useful things get done that maybe wouldn’t have otherwise.
Post reply on HN