Live data from Hacker News

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

github.com

11–20 of 40 posts

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

#12
A 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

#13
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 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

#14

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…

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

#15

A 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 :)

Thank you for your comment. Do you have some screenshots, animated GIFs or videos of gomatrix which I can link from cxxmatrix README (https://github.com/akinomyoga/cxxmatrix#the-matrix-rains-in-...)? I could only find unofficial one https://www.youtube.com/watch?v=mUXFxSmZMis (maybe I can add a link to this unofficial one)

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

#16

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…

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

#17

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

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

#18

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…

Thank you. This issue is discussed here https://github.com/akinomyoga/cxxmatrix/issues/3

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

#19

Earlier 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 :)

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

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

#20

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

Thanks, that is what I tried to say: better on ITerm.
Post reply on HN