This looks great for those small TUI’s that you think “gosh I’d like a simple CLI to automate this”! Being able to produce small binaries or self contained static ones with a few compile flags is really great.<p>As someone working on a Nim widget library (and funny enough currently stuck on fixing up the text editing story..) I find this doubly interesting. Now I kinda want to see if I could plug this into a widget for it for kicks. Hmmm…<p>@sekao you might find this macro I split out recently useful if you want to tryout a Kivy-like api (gui things inspired my need for it):
<a href="https://github.com/elcritch/cdecl/blob/ee3b06f52e666b2a854eb79a47a50c62b5f2b1d7/tests/testApplies.nim#L64" rel="nofollow">https://github.com/elcritch/cdecl/blob/ee3b06f52e666b2a854eb...</a><p>I also found that `useState` pattern from React with the variant library a handy pattern: <a href="https://github.com/yglukhov/variant" rel="nofollow">https://github.com/yglukhov/variant</a> and it’s pretty simple to do if you already have a context object: <a href="https://github.com/elcritch/fidgetty/blob/f65876af34797f308b8d367124c76d8305daa158/src/fidgetty/widgets.nim#L247" rel="nofollow">https://github.com/elcritch/fidgetty/blob/f65876af34797f308b...</a><p>Sorry for the link spamming, I just find the overlap of UI state management without OO interesting!
I've been toying with the idea of setting aside some time to learn Nim. I'm really excited about the goals and philosophy of Nim, but I'll have to spend some time getting my hand dirty to even know enough to have an opinion on it. This looks like a fun project to play with once I get the basics down.
Make sure to check other projects by the same author, some real gems there IMO (and I'm not even including there his most popular project - Vim^3 [0] :D). This talk [1] from NimConf 2021 is a good place to start:<p>[0] <a href="https://github.com/oakes/vim_cubed" rel="nofollow">https://github.com/oakes/vim_cubed</a><p>[1] <a href="https://www.youtube.com/watch?v=cBqBfPRWla8&list=PLxLdEZg8DRwRXNrY7yyGU0-g_GRSyRGKo&index=12" rel="nofollow">https://www.youtube.com/watch?v=cBqBfPRWla8&list=PLxLdEZg8DR...</a>
Maybe I'm blind, but since it mentions TUI for the "web", I'd expect a web example where I can see it working for myself. Is there one of those deployed somewhere? If not, definitely should, would make any demo 100% cooler.
Been playing around with Nim for a while. Awesome to see this! Might as well try to get some adventure games running as so can be played directly on the three platforms...<p>Does the web includes mobile browsers? Let me try...
I'm interested in building a good text UI for terminal, for a REPL language kind of system, but also showing interactive state, and being able to manipulate expressions, etc. Any cool tools?
Looks cool! Recently I've found this one too - <a href="https://github.com/ArthurSonzogni/FTXUI" rel="nofollow">https://github.com/ArthurSonzogni/FTXUI</a>