Better HN
topnewbestaskshowjobs
Log inSign up

incrediblers

6 karma · joined Aug 16, 2026 (3mo ago) · 16 submissions

Nothing is incredible; its very existence makes it credible.

https://www.incredible.rs/

Submissions

comment 3w ago · link · parent

Still changing along on Incredible (https://www.incredible.rs/) a Rust Text User Interface (TUI) Framework for the 2nd Quarter of the 21st Century.

It is New, Experimental, Modular, Declarative, Event Driven and Reactive. It builds cross-platform apps that can be compiled for the terminal (macOs, Windows, Linux), a standalone native window (macOS & Windows 11), or the browser (via WASM) from one unified code base.

Curious if this project will ever be 90% done.. ;)

comment 1mo ago · link · parent

What I was saying is that I think a "flipped pattern" where anything that sets something sometime somewhere is the word and anything that reads is a get_* makes this fine distinction unnecessary... and that makes life easier... I came to Rust from JS where one can overload methods... I understand from other comments that the set_* convention may have arrived from C++... In any case, consistency I think beats specifics.

comment 1mo ago · link · parent

They are setters. They modify an element after instantiation. Mostly as part of the initial build, but then also in the event closure. Under the hood, a struct with interiorly mutable fields.

comment 1mo ago · link · parent

My use case is a TUI framework (https://www.incredible.rs/). The setters configure elements in a chain-able manner. I grappled with the rust convention and decided to go the other way. Rational as mentioned.

But this made me think...

> "The getter ought to have a shorter name since it is probably called more frequently"

So i checked. Rough agent driven counts:

https://github.com/ronilan/incredible-flappy 407 setters and 183 getters.

https://github.com/ronilan/rusticon 546 setters and 5 getters

https://github.com/ronilan/shape-sorting 688 setters and 33 getters.

And in a code editor with a lot of ui configurations based on reusable elements 2865 setters and 206 getters.

In reactive apps on state handlers call on setters with state values. No getters involved...

comment 1mo ago · link · parent

Getters and setters is the one I'm most at disagreement with.

   // Mine
   let label = Label.text("Hello Wold");
   let label_text = label.get_text();

   // Theirs
   let label = Label.set_text("Hello Wold");
   let label_text = label.text();
A method is a way to accomplish a specific task. Emphasis on specific not generic. The getter task is to always return. The setter task is specific. So the method should be the setter - `text`, `color`, `fill`. In Rust the getter can't have same name, so prefix it. Not the other way around.

comment 1mo ago · link · parent

TIL - there was business in TUIs that actually warranted “acquisitions”. Always considered developing them a hobby…

comment 1mo ago · link · parent

Thanks. All noted.

“Text selection should highlight a character when the mouse is beyond mid point and not after the whole character.”

This one’s interesting regarding event trigger because selection is at the TUI level where there are no more pixels just chars.

comment 2mo ago · link · parent

I tried to methods to get that effect and both cases it felt worse than the current. Will circle back to that sometime maybe. Touch support in a TUI framework is little of an edge case..

comment 2mo ago · link · parent

A new one that is still not done 90% done and is still considering what license to go with.

comment 2mo ago · link · parent

Done.

https://news.ycombinator.com/item?id=49905574

11.

Listen to your users, oops, the Redditors(incredible.rs ↗)

3 points · by incrediblers · 2mo ago · discuss

comment 2mo ago · link · parent

thanks. will consider.

comment 2mo ago · link · parent

Are you on mobile? What browser?

I am aware of issues. Note that this is not a "website" in the regular sense of the word. This is actually a TUI app written in rust and compiled to wasm (and other platforms too: https://github.com/ronilan/incredible/releases) as parrt of alpha testing of the Incredible TUI framework.

Creating the screen, reading a markdown file, laying out the text, colouring it, enabling the scroll, managing it, changing the mouse pointer over the scroll bar, responding to the drag on said scroll bar, underlining the links, colouring them when they are hovered, removing colour when they are not, inverting them when they are clicked, loading the next markdown page, changing the browser URL hash, the keyboard shortcuts, Ctrl+e to select all, Ctrl+c to copy, etc. - it's all coming from Incredible TUI framework, not the browser.

Feedback on all aspects much appriciated.

14.

TUI Games in 80x24(incredible.rs ↗)

8 points · by incrediblers · 2mo ago · 14 comments