Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
11–20 of 40 posts
Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#12It's a Matrix emulator inspired by cmatrix. It doesnt have as many features as this posts one (e.g. just 2 colors for the kanas), but was a fun exercise to learn Go. Pull requests welcome :)
Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#13 $ 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 argument
79 | {U'�', 21, {573695, 2072768, 104616, 104344, 37000, 1609860, 430211, }},
| ^~~~
glyph.inl:80:2: error: converting to execution character set: Invalid argument
80 | {U'�', 21, {164354, 260859, 2015779, 1221155, 692770, 429602, 1238014, }},Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#14Oh 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…
Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#15A long time ago I wrote gomatrix: https://github.com/GeertJohan/gomatrix It's a Matrix emulator inspired by cmatrix. It doesnt have as many features as this posts one (e.g. just 2 colors for the kanas), but was a fun exercise to learn Go. Pull requests welcome :)
Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#16Oh 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…
You made it further than I did. The majority of machines out there today probably do not support the required -std=c++17. I know none of my OS installs (and their compilers) do.
Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#17So very cool. I just built and installed it on my MacBook. Looks great on Apple's standard terminal, and I think a little bit better even on ITerm 2.
Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#18Oh 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…
It is caused by the UTF-8 unaware awk. I haven't yet figured out why it happens, but at least you need to set your locale to one of UTF-8 locales.
Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#19Earlier quoted context omitted.
You made it further than I did. The majority of machines out there today probably do not support the required -std=c++17. I know none of my OS installs (and their compilers) do.
I think Xcode has shipped with a compliant C++17 compiler for over a year, but I used GCC to compile this one :)
Re: Show HN: Matrix rain, Conway's Game of Life and Mandelbrot set for terminals
#20So very cool. I just built and installed it on my MacBook. Looks great on Apple's standard terminal, and I think a little bit better even on ITerm 2.
Interestingly, it was exceedingly laggy on Terminal.app for me. iTerm seemingly handled it better.