Live data from Hacker News

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

github.com

31–40 of 40 posts

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

#31

Oh boy, neither GCC nor Clang liked the Unicode one bit: $ make 2>&1 | head c++ -std=c++17 -Wall -Wextra -Os -MD -MP -MF cxxmatrix.dep -c -o cxxmatrix.o cxxmatrix.cpp In file included from cxxmatrix.cpp:595: glyph.inl:78:2: error: converting to execution character set: Invalid argument 78 | {U'�', 21, {127, 65, 65, 65, 65, 65, 127, }}, | ^~~~ glyph.inl:79:2: error: converting to execution character set: Invalid argum…

I was able to fix it by find all 'ï' and replace with '\U000000EF' in glyph.inl

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

#32

This is fantastic. What arguments should I pass ./cxxmatrix to get the mandelbrot set or game of life? Can't seem to get it to work / couldn't figure it out from the repo.

Please just wait for several minutes.

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

#33
post #3

Those terminal matrix rain animations are always super slow for me at higher resolution. Using two cores 100%. Maybe because I run through WSL?

Are you running the new Windows Terminal (Preview)? If not, and you try it, is it any better?

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

#34

Oh boy, neither GCC nor Clang liked the Unicode one bit: $ make 2>&1 | head c++ -std=c++17 -Wall -Wextra -Os -MD -MP -MF cxxmatrix.dep -c -o cxxmatrix.o cxxmatrix.cpp In file included from cxxmatrix.cpp:595: glyph.inl:78:2: error: converting to execution character set: Invalid argument 78 | {U'�', 21, {127, 65, 65, 65, 65, 65, 127, }}, | ^~~~ glyph.inl:79:2: error: converting to execution character set: Invalid argum…

I fixed this on my mac (High Sierra) with:

brew install gawk

make clean

make

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

#35

Oh boy, neither GCC nor Clang liked the Unicode one bit: $ make 2>&1 | head c++ -std=c++17 -Wall -Wextra -Os -MD -MP -MF cxxmatrix.dep -c -o cxxmatrix.o cxxmatrix.cpp In file included from cxxmatrix.cpp:595: glyph.inl:78:2: error: converting to execution character set: Invalid argument 78 | {U'�', 21, {127, 65, 65, 65, 65, 65, 127, }}, | ^~~~ glyph.inl:79:2: error: converting to execution character set: Invalid argum…

I fixed this on my mac (High Sierra) with: brew install gawk make clean make

And shortly after, I did this:

brew cask install iterm2

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

#36
post #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…

“Charter” = “Character” Phone typos

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

#38

This is fantastic. What arguments should I pass ./cxxmatrix to get the mandelbrot set or game of life? Can't seem to get it to work / couldn't figure it out from the repo.

I've been playing around with the code, you can just comment out the bits you don't want to run in the main function...

  // buff.s1number();
  // for (int i = 1; i 

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

#39
post #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…

Huh. I've seen that before but always thought it was a virus (back when some viruses were harmless fun).

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

#40
post #33
post #3

Those terminal matrix rain animations are always super slow for me at higher resolution. Using two cores 100%. Maybe because I run through WSL?

Are you running the new Windows Terminal (Preview)? If not, and you try it, is it any better?

That made it even worse.
Post reply on HN