TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Nimwave – build TUIs for the terminal, web, and desktop

195 点作者 sekao将近 3 年前

9 条评论

elcritch将近 3 年前
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:&#x2F;&#x2F;github.com&#x2F;elcritch&#x2F;cdecl&#x2F;blob&#x2F;ee3b06f52e666b2a854eb79a47a50c62b5f2b1d7&#x2F;tests&#x2F;testApplies.nim#L64" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;elcritch&#x2F;cdecl&#x2F;blob&#x2F;ee3b06f52e666b2a854eb...</a><p>I also found that `useState` pattern from React with the variant library a handy pattern: <a href="https:&#x2F;&#x2F;github.com&#x2F;yglukhov&#x2F;variant" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yglukhov&#x2F;variant</a> and it’s pretty simple to do if you already have a context object: <a href="https:&#x2F;&#x2F;github.com&#x2F;elcritch&#x2F;fidgetty&#x2F;blob&#x2F;f65876af34797f308b8d367124c76d8305daa158&#x2F;src&#x2F;fidgetty&#x2F;widgets.nim#L247" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;elcritch&#x2F;fidgetty&#x2F;blob&#x2F;f65876af34797f308b...</a><p>Sorry for the link spamming, I just find the overlap of UI state management without OO interesting!
mordechai9000将近 3 年前
I&#x27;ve been toying with the idea of setting aside some time to learn Nim. I&#x27;m really excited about the goals and philosophy of Nim, but I&#x27;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.
narimiran将近 3 年前
Make sure to check other projects by the same author, some real gems there IMO (and I&#x27;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:&#x2F;&#x2F;github.com&#x2F;oakes&#x2F;vim_cubed" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;oakes&#x2F;vim_cubed</a><p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=cBqBfPRWla8&amp;list=PLxLdEZg8DRwRXNrY7yyGU0-g_GRSyRGKo&amp;index=12" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=cBqBfPRWla8&amp;list=PLxLdEZg8DR...</a>
capableweb将近 3 年前
Maybe I&#x27;m blind, but since it mentions TUI for the &quot;web&quot;, I&#x27;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.
评论 #31795489 未加载
inawarminister将近 3 年前
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...
haskellandchill将近 3 年前
I&#x27;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?
评论 #31792448 未加载
malkia将近 3 年前
Looks cool! Recently I&#x27;ve found this one too - <a href="https:&#x2F;&#x2F;github.com&#x2F;ArthurSonzogni&#x2F;FTXUI" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ArthurSonzogni&#x2F;FTXUI</a>
jiehong将近 3 年前
Pretty cool!<p>How is the accessibility of such TUIs on different display tech?
评论 #31790678 未加载
julianbuse将近 3 年前
I&#x27;ve been trying to roll this myself, so it&#x27;s pretty cool that someone build this.
评论 #31791441 未加载