News for hackers. Stuff that matters.
Re:Htmx is part of the GitHub Accelerator by intrasight on Wednesday August 16, 2023 @12:19PM (#37149374)
> Mobile phones have less powerful CPUs

True - but not by much

> Parsing large json objects and then building up a corresponding html structure may be more difficult than on the server

I doubt it. And you'd only be doing "large JSON objects" for a desktop web app, where CPU differences vs web servers are even smaller

> where you already have it loaded into memory anyway

Likely not true if implementation uses streaming semantics

Re:Htmx is part of the GitHub Accelerator by nchmy on Wednesday August 16, 2023 @03:56PM (#37152814)
Re:Htmx is part of the GitHub Accelerator by aatd86 on Friday August 18, 2023 @07:12AM (#37174082)
I always see these claims but isn't network the more limiting factor?

Or do people study this while thinking about IoT which may use more limited resources while still relying on the internet?

Especially since a server has to handle multiple request concurrently, it doesn't seem to be remotely the same workload that a single device CPU would see anyway?

Re:Htmx is part of the GitHub Accelerator by alethiophile on Thursday August 17, 2023 @10:30PM (#37170828)
I can't speak to any kind of general principle here, but viewing any standard modern web page e.g. Twitter, Discord in a Web browser reliably takes more CPU and memory than running a late-game Factorio save.

I will allow that it is probably theoretically possible to do client-side rendering in a CPU-efficient way, but it sure isn't the standard.