News for hackers. Stuff that matters.
Re:An app for M1 Macs that plays the sound of a fan as CPU u... by ajconway on Sunday July 18, 2021 @04:49PM (#27876545)
This is not entirely accurate. iOS indeed uses a client-server UI model, kind of similar to X11. Along with submitting “widget” hierarchy updates, it also supports submitting “animations”. The downside is that the animation states are not truly accessible by the actual app after it submits them.

The scrolling animation is 99.9% of the time implemented as a client-side animation timer submitting non-animated hierarchy updates to the server. It’s common to have janky scrolling.

Re:An app for M1 Macs that plays the sound of a fan as CPU u... by skavi on Sunday July 18, 2021 @05:21PM (#27876791)
> Along with submitting “widget” hierarchy updates, it also supports submitting “animations”.

Is that how all these third party iOS apps all have completely consistent “pop” animations on long press?

Re:An app for M1 Macs that plays the sound of a fan as CPU u... by ajconway on Sunday July 18, 2021 @07:39PM (#27877729)
No, that would be OS-provided GUI components (or sometimes manual reimplementation), similar to how most win32 apps had the same right-click menu behavior.
Re:An app for M1 Macs that plays the sound of a fan as CPU u... by bboygravity on Monday July 19, 2021 @02:16AM (#27879757)
Off-topic: I see the lack of standardized OS-provided GUI components in Unix/Linux distros as the main root-cause for low Linux adoption. I'm assuming there isn't such a thing since I haven't been able to notice any consistency ever in the GUI of any Linux distro and/or any GUI app that runs on Linux :P But I may be totally wrong.

On-topic: they should build an M1 app that simulates loud coil whine at low-CPU usage, so you can feel like you're using a Dell XPS.

Re:An app for M1 Macs that plays the sound of a fan as CPU u... by vladvasiliu on Monday July 19, 2021 @02:50AM (#27879913)
Well, there are common components, it's just that there are multiple standards (Qt, GTK, wx, etc)...

I'm using a tiling window manager with mostly GTK apps, so pretty much all menus and such look the same. The worst offenders are Firefox and IntelliJ, although they have improved a bit lately.

However, I'm not sure that this is the reason for lack of adoption. Windows has always been a patchwork of interface design, every other app having their own special window decorations and behavior, including MS' own apps (thinking of Office in particular). Also, seemingly similar elements, such as text inputs, behave differently in different places. For example ctrl-backspace sometimes deletes the previous word, sometimes it introduces random characters.

Re:An app for M1 Macs that plays the sound of a fan as CPU u... by skavi on Monday July 19, 2021 @09:49AM (#27882628)
The unique thing about this is that it takes a widget from the app, and expands it out while blurring the rest of the screen. So it’s not just an OS gui component.
Re:An app for M1 Macs that plays the sound of a fan as CPU u... by ajconway on Monday July 19, 2021 @04:17PM (#27886821)
Blurring happens inside the UI server process. Here is a related technique in macOS: https://avaidyam.github.io/2018/02/17/CAPluginLayer_CABackdr...

Basically, it's like an iframe — you declare what contents this portion of screen should have, and the render server composes it onto the screen. The render server is shared between all apps (just like in X11), so it can compose different apps with dependent effects (like blur). Apps don't have direct access to the render server's context, just like a webpage doesn't have any way to extract data from a foreign iframe.