News for hackers. Stuff that matters.
Re:Fast Machines, Slow Machines by louismerlin on Wednesday June 28, 2023 @12:03PM (#36508459)
These kinds of realizations have made me look into permacomputing [1], suckless [2] and related fields of research and development in the past few months.

We should be getting so much more from our hardware! Let's not settle for software that makes us feel bad.

[1] http://www.permacomputing.net/

[2] https://suckless.org/

Re:Fast Machines, Slow Machines by systems_glitch on Wednesday June 28, 2023 @12:13PM (#36508590)
Yeah, totally possible to get excellent results with older hardware, and really stellar results with very new hardware, if you're running stuff that's not essentially made to be slow.

I basically only upgrade workstations due to web browsers needs, and occasionally because a really big KiCAD project brings a system to a crawl. At this point even automated test suite runtimes are more improved by fixing things that stop test parallelization from working efficiently vs. bigger hardware.

Re:Fast Machines, Slow Machines by samstave on Wednesday June 28, 2023 @12:32PM (#36508865)
I am constantly dumbfounded with the fact that the majority consumer of memory on my machine is a FN web browser! (that said, I *do* have basically like 30 tabs open at any given time...

(It would be cool if dormant tabs can just hold the URL, and kill all memory requirements when dormant after N period of time..)

But heck, even when I am running a high-end game on my machine, the memory consumption is less than when I have a bunch of tabs open displaying mostly text ...

Re:Fast Machines, Slow Machines by drivers99 on Wednesday June 28, 2023 @12:41PM (#36509007)
Small tangent: I wonder what people are seeing when they say they have "too many" tabs open.

I had over 1000 tabs open in Firefox (macOS) and never noticed any problems. (Trying to clear them out. Down to 920 now.) 2.26 GB out of 32.00 GB is used by Firefox. I have about 70 open in Chrome (since only a certain number fit on the screen) and it's split across 12 processes which are between 12 MB and 158 MB each. I have nearly 500 tabs open (because that's the limit) on my iPhone and iPad each, in Safari.

Re:Fast Machines, Slow Machines by samstave on Wednesday June 28, 2023 @01:08PM (#36509373)
huh... WTF do you have 500 tabs open for?

I usually carry 3 sets of tabs, typically around ~10 each:

Personal info sites, like reddit and its links...

Tech Sites, like HN and its links....

Video Sites, like Nexflix / Prime...

EDIT:

Also - what tab-mgmt extensions do you use? Like Tab Grouping etc...

Also - one of the things I attempted to do, but failed to do so consistently, was to swipe to a different desktop between, work, person, and learning/browsing... instead of tab groups I had "workspaces" but that is a hard habit to build, for me, it seems.

Re:Fast Machines, Slow Machines by abwizz on Wednesday June 28, 2023 @01:13PM (#36509456)
i ususally keep tabs open to retain the context because i am too lazy for bookmarks.

yea, tab-grouping is essential. (tabkit in the good old days, sideberry currently)

Re:Fast Machines, Slow Machines by samstave on Wednesday June 28, 2023 @01:29PM (#36509698)
>i ususally keep tabs open to retain the context

This is the way I do it as well - but I cant hold ~500++ 'context' threads in my head...

I typically hit a tab and wind up here: https://i.imgur.com/KWmVAD0.jpg

Re:Fast Machines, Slow Machines by drivers99 on Tuesday July 11, 2023 @01:38PM (#36684452)
* * *
Re:Fast Machines, Slow Machines by abwizz on Wednesday June 28, 2023 @01:12PM (#36509425)
> I had over 1000 tabs open in Firefox

this is me

> 500 tabs open (because that's the limit) on my iPhone

that's my wife

Re:Fast Machines, Slow Machines by systems_glitch on Wednesday June 28, 2023 @01:50PM (#36510013)
Same, I was around 1500 tabs across three windows when I finally moved from the HP Z420 workstation I'd been using as my primary sometime around JAN 2023. Machine was fine with it.
Re:Fast Machines, Slow Machines by marttt on Wednesday June 28, 2023 @02:17PM (#36510395)
Just curious: what kind of workflow results in having over 1000 tabs open? (Oldschool Unix hobbyist here, so I always feel like drowning when I'm nearing 20+ tabs. :)
Re:Fast Machines, Slow Machines by sudobash1 on Wednesday June 28, 2023 @03:17PM (#36511208)
Not OP, but opening almost every link as a new tab, and keeping old tabs around because you don't have a great bookmark organization system.

I am trying to break myself of these habits, but they do have some benefits. For instance when I do a web search on a complex topic, I often scan the results, opening the most promising looking results as tabs. Then I look through the tabs comparing them. The trouble is I never remember to close them when the task is done.

Re:Fast Machines, Slow Machines by jaredhallen on Wednesday June 28, 2023 @09:33PM (#36515217)
I'm not a 1000+ tabbed, but I can relate to what you're describing. I'd add that it seems like it's getting harder all the time to find what you're looking for with the current state of web search, so when you come across a good page you don't want to "lose" it. Sure you could bookmark it, but you probably won't want it forever, just until you're done with whatever you were working on that prompted you to search for it in the first place. So bookmarking just moves the mess from the tab bar to the bookmark folder. Kind of like cleaning your room by stuffing all the mess in your closet.
Re:Fast Machines, Slow Machines by eviks on Wednesday June 28, 2023 @03:22PM (#36511294)
That feeling completely disappeared with workspaces in Vivaldi (though for me the discomfort started with maybe around twice as many, vertical layout with more smaller tab height helped)
Re:Fast Machines, Slow Machines by drivers99 on Wednesday June 28, 2023 @03:27PM (#36511364)
For work:

Mainly just not having a workflow of going back to close them. So it's just previous work like a view of some logs, a merge request, a link to a file in a repo, a monitoring dashboard, an alert in a monitoring system, etc.

In Chrome, I do end up closing them eventually because there's no more space to work.

For personal:

it's more like a bookmark, but don't often review them rather than open a new tab to research whatever I'm currently curious about.

Re:Fast Machines, Slow Machines by antisthenes on Wednesday June 28, 2023 @02:23PM (#36510454)
Technically, all the bookmarks you have are hibernating tabs.

There's a whole spectrum of activity you can have on a tab, and to me I see really no difference between "unhibernating" a tab and just reloading it from scratch.

Either one is very slow in modern crap software.

Unless it happens under 150ms, it is slow.

Re:Fast Machines, Slow Machines by lloeki on Wednesday June 28, 2023 @03:58PM (#36511765)
I would expect thawing a tab to present me with the tab as it was last time I saw it, no reload; whereas, being a link, I'd expect a bookmark to load the current version.

... Actually the latter is incorrect, in truth I'd expect bookmarks to present me with the exact version I had in front of me back when I bookmarked it, including if the site is temporarily down, has vanished, or if I navigated a more recent version.

Re:Fast Machines, Slow Machines by imran-iq on Wednesday June 28, 2023 @02:35PM (#36510620)
This is what I see on a linux machine with only 6GB of ram: https://blog.imraniqbal.org/ram/

(TL:DR OOM errors and the kernel starts reaping processes)

Just seems so odd as I remember playing gta vice city on a pentium 3 with 128mb of ram and now I need 6GB+ to just browse the web

Re:Fast Machines, Slow Machines by terribleperson on Wednesday June 28, 2023 @07:29PM (#36514175)
Certain sites are absolute murder. A single wikia (now Fandom) tab or new reddit tab left open can sometimes bring a browser to its knees. I've seen google mail do the same when they screw something up.

edit: That is, I think people sometimes attribute the lag they're experiencing to the number of tabs they have open, when only a handful of their tabs are to blame.

Re:Fast Machines, Slow Machines by c22 on Wednesday June 28, 2023 @01:11PM (#36509413)
I turned off JavaScript one day and found my browser memory woes completely evaporated. Now I turn it on per site on a case by case basis and it's easy to figure out which sites leak a lot and prepare accordingly.
Re:Fast Machines, Slow Machines by twism on Wednesday June 28, 2023 @01:13PM (#36509448)
i think edge and chrome have started doing this recently
Re:Fast Machines, Slow Machines by nine_k on Wednesday June 28, 2023 @01:50PM (#36510019)
I have a hundred tabs open in my Firefox. They are structured by Tree Style Tab, and most of them are offloaded by Auto Tab Discard.

This gives me a way to instantly switch between contexts (with a small delay if a tab has to be reinstated from cache). This is how bookmarks should really work.

This us why Firefox is not the biggest memory hog on my system. Most of the RAM is consumed by language servers and Emacs.

Re:Fast Machines, Slow Machines by stuaxo on Wednesday June 28, 2023 @02:49PM (#36510806)
I wish Android Firefox was as well behaved, beyond a certain amount of tabs new ones don't really load until I shut some, it's been like that for years, on different phoned and different android versions. The amount I can keep open seems to increase as phones get better.
Re:Fast Machines, Slow Machines by eviks on Wednesday June 28, 2023 @03:28PM (#36511378)
Indeed, tab-based navigation has less friction, no need to recreate some other order in another UI, and offloading should deal with resource use (workspaces in Vivaldi also helped reduce the clutter a lot along with tab groups)
Re:Fast Machines, Slow Machines by Teckla on Wednesday June 28, 2023 @04:19PM (#36512014)
(It would be cool if dormant tabs can just hold the URL, and kill all memory requirements when dormant after N period of time..)

The problem with this is that a lot of web pages don't handle this gracefully. You don't end up back where you left off!

It would be nice if all the details of the inactive web page were saved to storage, and then retrieved from storage when the tab is reactivated, without having to make any network calls at all.

Re:Fast Machines, Slow Machines by terribleperson on Wednesday June 28, 2023 @07:27PM (#36514144)
Browsers have gotten worse. In..2013, I believe, I regularly had 200+ firefox tabs open on a laptop. It was a high-end laptop, with IIRC 16 gigs of ram, but it was still a laptop. The number may have been much higher than that - I've hit over a thousand tabs before, but I can't recall if that was then or more recently.

Multi-process firefox seems to have absolutely obliterated the performance of firefox with large numbers of tabs until recently (it seems to be have improved).

Re:Fast Machines, Slow Machines by samstave on Wednesday June 28, 2023 @12:34PM (#36508898)
I really like the idea of permacomputing.

WTF happened to all the THOUSANDS AND THOUSANDS of machines I deployed to datacenters over the decades? Where are the F5 load balancers I spent $40,000 on per box in 1999?

I know that when we did Lucas' presidio migration, tens of millions of SGI boxes went to the ripper. That sucks.

Re:Fast Machines, Slow Machines by systems_glitch on Wednesday June 28, 2023 @01:52PM (#36510054)
Occasionally I end up with a truckload of gear from things like that. The circumstances that saved it from shredding are usually something like Founding Engineer X couldn't stand to see all that nice workstation stuff go in the trash so he kept it in his garage for 25 years and now his kids are selling it.
Re:Fast Machines, Slow Machines by lofatdairy on Wednesday June 28, 2023 @12:46PM (#36509065)
I use Suckless terminal myself, but if I'm not mistaken it's actually not the fastest terminal out there, despite its simplicity[^1]. My understanding is that many LOCs and complex logic routines are dedicated to hardware/platform-specific optimizations and compatibility, but admittedly this type of engineering is well beyond my familiarity.

Also, OpenBSD's philosophy is very similar to Suckless. One of the more notable projects that come to mind is the `doas` replacement for `sudo`.

[^1]: This is based on Dan Luu's testing (https://danluu.com/term-latency/). I don't know when this testing was done but I assume a few years ago because I remember finding it before.

Re:Fast Machines, Slow Machines by systems_glitch on Wednesday June 28, 2023 @01:48PM (#36509991)
I love that Alpine Linux adpoted `doas`
Re:Fast Machines, Slow Machines by juped on Wednesday June 28, 2023 @05:41PM (#36513006)
I'm somewhat offended on behalf of OpenBSD! doas is a good program written for good reasons (cf. https://flak.tedunangst.com/post/doas). Suckless sudo would ensure it was as painful as possible to use, so suckless fans feel like cool sysadmin hackers setting it up. (Just compile in the permitted uids lol!)
Re:Fast Machines, Slow Machines by lofatdairy on Wednesday June 28, 2023 @08:29PM (#36514743)
I totally agree with doas being a good program with really good rationale. I also get that suckless does have a bit of a reputation that isnt for everyone (I've heard that it's basically impossible to make a PR to any of their projects). Theyre obviously not philosophically identical, but I mentioned OpenBSD because its an excellent project that deserves more mention and a lot of the criticisms for modern software design in this post and thread are addressed by their design philosophy. That said, the compiling issue aside I think the overall embrace of simple, self-contained, C code is shared enough where you could compare the two.
Re:Fast Machines, Slow Machines by mike_hock on Wednesday June 28, 2023 @01:12PM (#36509427)
> suckless

Mind you, the software we had 20 years ago was fully featured, smaller and faster than what we have today (orders of magnitude faster when adjusted for the increase in hardware speed).

Suckless, on the other hand, is impractical esthetic minimalism that removes "bloat" by removing the program. I'd rather run real software than an art project.

If you want more from your hardware, the answer is neither the usual bloatware, nor Suckless crippleware.

Re:Fast Machines, Slow Machines by systems_glitch on Wednesday June 28, 2023 @01:47PM (#36509982)
Solid point, but some of the suckless stuff is pretty good, I use `dmenu` with i3 and often run the `st` terminal.
Re:Fast Machines, Slow Machines by nvy on Wednesday June 28, 2023 @03:14PM (#36511173)
st is actually one of the worst terminals available. For all their purported minimalism, it has abysmally bad performance. See https://danluu.com/term-latency/
Re:Fast Machines, Slow Machines by systems_glitch on Wednesday June 28, 2023 @05:21PM (#36512767)
Huh, interesting. Never noticed. Might have something to do with pretty regularly using actual serial terminals. I don't know how the testing under Mac OS X affects it -- I only run it under Linux and OpenBSD, on OS X I just use the OS X terminal. Anyway, `st` does its job for me!

"Worst" for me is stuff that grabs keys it shouldn't, scrolling that doesn't work right with `screen` and/or `tmux`, etc.

Re:Fast Machines, Slow Machines by juped on Wednesday June 28, 2023 @05:32PM (#36512890)
I have thought for a while that suckless might literally be a piece of performance art.
Re:Fast Machines, Slow Machines by Karrot_Kream on Wednesday June 28, 2023 @03:35PM (#36511477)
It's funny, the older I get the less I care about this stuff. I like to use technology to, well, live my life in a more effective, effort-free manner. I have lots of friends who aren't other nerdy techies. In high school I refused to use "proprietary, inefficient WYSIWYG garbage that disrespected the user" like Word and typed up all of my essays in LaTeX instead. Now I get accounting spreadsheets for vacations going on my smartphone using Google Sheets. I still love writing code but my code has become more oriented around features and experiences for myself rather than code for the sake of code.

I love exploring low-latency code but rather than trying to create small, sharp tools the suckless way, I like to create low latency experiences end-to-end. Thinking about rendering latency, GUI concurrency, interrupt handling, etc. Suckless tools prioritize the functionality and the simplicity of code over the actual experience of using the tool. One of my favorite things to do is create offline-first views of sites like HN that paper over issues with network latency or constrained bandwidth leading to retries.

I find suckless and permacomputing to be the siren song of a type of programmer, the type of programmer who shows up to give a presentation and then has to spend 10 minutes getting their lean Linux distro to render a window onto an external screen at the correct DPI, or even to connect to the wifi using some wpa_supplicant incantations.

Re:Fast Machines, Slow Machines by GingerMidas on Wednesday June 28, 2023 @04:04PM (#36511831)
Fully agree. When I was younger I used to care more about privacy, and would use nothing but FOSS apps and OSes no matter how much it inconvenienced me.

There's a significant opportunity cost for zealotry.

Re:Fast Machines, Slow Machines by Aerbil313 on Wednesday June 28, 2023 @04:24PM (#36512077)
It's the cycle and not just in software. Younglings are idealists and try a thousand things, some of which happen change and improve the ever-turning wheel of software, while elders turn the wheel and ensure the system, practices and knowledge continue and get transferred.
Re:Fast Machines, Slow Machines by anthk on Wednesday June 28, 2023 @04:36PM (#36512236)
OpenBSD it's just "sh /etc/netstart if", where if is the network interface once you set /etc/hostname.if

No WPA incantations, the OS handles multiple connections seamlessly.

With that, magicpoint/sent and xrandr you just don't care, it works.

Re:Fast Machines, Slow Machines by Karrot_Kream on Wednesday June 28, 2023 @07:26PM (#36514140)
OpenBSD is actually a good example of a system that envisions a holistic experience. Sure its experience is that of one for a techie nerd, but it's still very experience oriented. This is a pretty big contrast from suckless which creates small tools that only kinda work together and claim the code as documentation. OpenBSD docs are wonderful.
Re:Fast Machines, Slow Machines by nicbou on Thursday June 29, 2023 @03:05AM (#36517327)
“A person's primary task should not be computing, but being human.” - calmtech.com
Re:Fast Machines, Slow Machines by avgcorrection on Wednesday June 28, 2023 @07:59PM (#36514480)
My impression of Suckless is that it’s “Unix philosophy” software where you edit the code and recompile instead of using dynamic configuration like all those config files. And while there are way too many ad hoc app-specific config systems out there, I don’t see how Suckless makes a huge difference for simplifying things.