Re:Ink: React for Interactive CLI Apps
by johnfn on Saturday November 02, 2024 @12:03AM
(#42023986)
How many terminal apps do you know of that have 50,000 items with a scroll wheel? This is what I meant by 0.001%.
[ Parent
| on HN ]
Re:Ink: React for Interactive CLI Apps
by yencabulator on Saturday November 02, 2024 @12:22PM
(#42027325)
Since when is the basic pager an exotic terminal app?
A pager doesn’t show 50,000 items at the same time - at least not the ones I use…
Re:Ink: React for Interactive CLI Apps
by yencabulator on Sunday November 03, 2024 @02:34PM
(#42035511)
I don't see anything in grandparent implying in view at the same time, and that sounds pretty unlikely.
Re:Ink: React for Interactive CLI Apps
by CGamesPlay on Wednesday November 06, 2024 @09:43AM
(#42063008)
Any viewer of data that has 50,000 elements in it has this many items with a scroll wheel. It doesn't matter if it's on the screen at the same time, this is the kind of thing that the UI is supposed to be abstracting away from you; you just describe the UI and the renderer makes it appear on the screen. Example apps (not built with Ink, just some that fit into this category): less, https://fx.wtf, sqlite...
And this is why React apps end up with bad performance by default. Doesn't crop up in simple tests and light usage, but the bad scaling will catch up with you when you deploy to production.