Hacker Newsnew | past | comments | ask | show | jobs | submit | mstange's commentslogin

You can expect some blog posts from us on this topic at the end of the year / early next year. In short: Organizational focus on a performance target, significant investment, and some great new tooling. We're also reaping the benefits of foundational work that happened over the last few years.


This appears to be a box-shadow which bleeds out of the input type="range". It seems that there's a missing overflow:hidden somewhere.


I've found two examples of DWARF expressions in the wild: 1. A handwritten expression in libpthread <= 2.19, which was removed in 2014 [1], and 2. the expression covering the PLT section of most binaries. [2]

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1157194#c14

[2] https://github.com/mstange/framehop/blob/6777199dd0c2c1b3768...


It works with optimized builds, and it works better with them than gdb does.

When you debug an optimized build with debug info in gdb by stepping line by line, it is easy to accidentally step "too far" and completely lose your place. In rr, you can always step back and recover.


For people who are experiencing a leak on macOS 12: Check if you have set a custom cursor color in the system accessibility preferences. Resetting the cursor color to the default may fix it.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1735345#c18

(edit: rephrased to mention macOS 12)


Good lord would I love to see the postmortem breakdown on that one


Having worked at Apple adjacent to the likely responsible teams, the relevant details are: overworked engineering teams, insufficient QA investment, and most of all a yearly macOS major release schedule that persists primarily to benefit the egos of Apple's upper management.

Until you see a WWDC that doesn't announce a major release of macOS, expect more of the same.

To any involved Apple folks here, I feel your pain, and I'm sorry.


And this is why I have completely stopped using all Apple products. I used to be a massive Mac fanboy. But the software quality is absolute shit now and has been for at least the past 5 years. I don't understand why anyone puts up with it.


I've been seeing this exact same comment for over a decade now.

The first couple of releases of OSX are always a little rough around the edges. And then by the end of the cycle everyone proclaims how wonderful this release is.

See everyone next year !


Except the bugs have continued to get worse and worse. For me the deal breaker was the blank page in iOS Safari[1]. After fighting that one constantly, I threw in the towel. I've been so much happier. Btw I was an Apple user from System 7 through to 2019.

[1] https://forums.macrumors.com/threads/safari-blank-page-bug.2...


> worse and worse

https://www.zdnet.com/article/users-complain-of-mac-os-x-lio...

Back in the days OS X was a dumpster fire in terms of overall reliability until the very late releases of every major version. Some versions like Lion had pure crashes until the end.

Even looking a few years before, we had the root user password bug and other pretty severe issues way worse than what we’re seeing now.


I did say over the past 5 years, so things like the root password issue I include in that. I'm also utterly convinced airdrop is just a long running joke at Apple, I've gotten it to work like twice.

Snow Leopard was as solid as OSX ever got in my estimation. Man I miss those days. Snow Leopard's primary goal was just to harden Leopard and not really have too many new features. Apple really needs to bring that kind of thinking back. I'm happy to see their hardware is back on track, now if they could just get the software to do a U turn...


What do you use now?


I speak only for myself, but after Catalina I started transitioning to Linux and couldn't be happier. Being able to set up my entire computer with a single Github repo is a godsend for productivity, all it takes are a few keystrokes and I've got a fully configured desktop with all my dotfiles, keybinds and applications.


I've been a Linux user for some 10 years, but have also had to use a Macbook Pro for a while due to work. There's nothing stopping you from fully configuring macOS through a single repository similar to how you do Linux. For a while my dot files were aimed at Linux (primarily), macOS, and Windows as I anticipated to have to use both macOS and Windows down the line, though I've since removed much of the multiplatform code.


Things may be different now as I haven't used a mac since about 2015, but depending on what tools you needed you couldn't escape the GUI completely (for a fully automated setup). At this point I don't remember all that was wrong, but one of the biggest required installing xcode or something like that before I could get git to work.


Things have been different for many years.

a) You can install XCode CLI with xcode-select --install.

b) Many applications can be installed with homebrew casks.

e.g. brew install --cask docker google-drive intellij-idea microsoft-office


You don't even need --cask anymore. You can also use `brew bundle dump` to synchronize what you've installed via brew, and it also can sync mac app store installs too.

It's a bit annoying getting macOS system preferences synced still although.


How are you managing the desktop (gnome) files? I swear every time I try to move them to a new system or account all I get is grief; weird bugs, application crashes, dbus weirdness. I would love to see your recipe :) . All I can usually do is bring over app config files like emacs/vim/etc/personal scripts.


I don't use GNOME on any of my systems anymore (the 40 update destroyed all hope I had for the desktop going forwards), but I'm convinced you can get some settings transferred by poking around in your ~/.local directory. Having written a few GTK applications in the past, it seems like the rationale for this is because of GNOME's settings API, and how they define compliance with the GNOME spec. I find it to be a total clusterfuck, and if I had any confidence in the desktop's current management team I'd probably open a few pull requests/RFCs to try and fix it. I might sound a little heavy-handed here, but the "my way or the highway" rhetoric that GNOME's developers are pushing right now makes it really hard for me to take their desktop seriously, or blame anything but the developers themselves for their lack of features.

In any case, I can assure you that behavior is perfectly "normal" to them, unfortunately.


All good points. I haven't really tried with kde. Thanks!


Recently I discovered Extension Sync[0] for GNOME, I never really used it, but it may be useful to you.

[0] https://extensions.gnome.org/extension/1486/extensions-sync/


Thanks, I'll check it out.


That sounds really neat is it some thing you can share? I recently setup a new machine which didn't take very long, but I have run into a few things I forget so would like to set up something similar.


I basically just run an install script which does a few different things. I start by updating the repos and regenerating my mirrors so I get the fastest downloads possible. After that, I install shell utilities (my editor, shell of choice, base-devel, etc.) and then I enable the AUR so I can grab the rest of my desired apps. The rest of it is decidedly basic, it just copies my tracked config files to ~/.config/ and moves my wallpaper to /usr/share/wallpapers. I run a few rain dances automatically too, like `sudo chmod a+wr /opt/spotify` (which lets me automate my Spotify theming process) and installing/unzipping a Steam theme.

To install, I run `git clone https:github.com/username/repo && ./repo/install.sh`, and I'm off to the races. I really reccommend writing one for yourself, as it's a great way to learn shell scripts.


Thanks for that.

For me there's a trade-off, depending on how often I setup a new machine. Value of automating with a procedural script vs taking the opportunity to try a leaner (or more modern) toolchain.

Currently upgrade about every 2-3 years, so I do tend not to need a bunch of things each iteration, and might upgrade OS. But I'd like a backup in case e.g. hardware failure, laptop lost or stolen.

Some declarative workstation config like terraform or Ansible would be interesting.


> Being able to set up my entire computer with a single Github repo is a godsend for productivity,

Not sure I understand, could you elaborate what you mean.


Care to explain what you are talking about?


This isn't exclusive to Linux.

With homebrew you can install most applications through the command line as well.


Android phone and Ubuntu on my desktop PC and ThinkPads.


Craig Ferengi has to go. Too much of a pretty boy who doesn’t get the need to invest in QA.


What I don't get about apple, with a compensation policy that is less than the other big techs, because they can't get over the late 90s, team sizes that are usually smaller and being one of the largest market cap companies in the world, why don't they hire more?


Hiring more people isn't going to make them more money. Improving their products/services isn't going to make them more money. Providing more value to customers isn't going to make them more money.

Charging $300 for a screen replacement will make them more money. Selling bluetooth headphones with non-replaceable batteries will make them more money. Collecting taxes on developers will make them more money. etc etc


They got popular because of their commitment to quality. "It just works" is and in many ways still is a key to their popularity. They whittle away at their "quality credit rating" the less and less they invest in these things, until their quality credit rating becomes low enough for a competitor exploit that and make them lose market share very quickly. It does make them money.


I can see the business side of the permanent upgrade hype, constant new features, etc. But aren't we supposed to be reaching some kind of detente with Apple where they realize that power users drive the Mac market, and the release schedule should be built around hardware and stability, rather than endless retreads and new consumer features we'll never use? I'm still on El Capitan and pretty much everything since then looks like bloat to me.


I have always felt Macs are awesome hardware bundled with poor OS. Apple needs to up their software quality.


Whatever that is, it's definitely not a binary tree inversion bug.


You're right, I've just checked and when I set my cursor to be a custom color in accessibility settings suddenly my Firefox started to eat up memory as crazy :D. This went away as soon as I reset the cursor to default colors.


That’s a nice catch, must have been satisfying to find this.

Also, it seems like a relatively easy memory leak to fix, hopefully in an upcoming OS update.

Looking forward to the fix.


The author is specifically noting they're on Big Sur so they should not be affected by this.


Oh, you're right. I missed that.


[flagged]


"Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith."

https://news.ycombinator.com/newsguidelines.html


WASD doesn't work by default because I'm using a Dvorak keyboard layout. Using KeyEvent.code would solve this problem.


My experience was similar: File.pizza didn't work. However, https://justbeamit.com/ worked flawlessly.


APIs for partial compositing in combination with hardware accelerated compositing was the thing that was missing. If you don't use hardware accelerated compositing, repainting only part of the window, and letting the system compositor know about those areas, is not a problem. It's only the GPU acceleration and the lack of convenient APIs that makes this a problem.

Before Firefox got hardware acceleration, so up until Firefox 3.6, we were using CPU-side painting and sending accurate dirty areas to the windowing system. With Firefox 4, we added hardware accelerated compositing, which made scrolling and transform / opacity animations a lot more performant. However, it also meant that we switched to using OpenGL for the compositor, and macOS does not expose any APIs for invalidating only parts of an OpenGL context. And at the time Firefox 4 shipped, "retina" displays were not a thing yet, so the impact of recompositing the entire window was not apparent. And there was the pervasive notion that "modern GPUs are fast, fill rate is not a problem". It was only as pixel count grew and grew that this started becoming problematic. And it took some amount of research and a lot of surgery to switch Firefox to an approach that gets OpenGL content to the screen while also allowing for partial updates of that OpenGL content.


I couldn't find an API for it, but some Apple apps do in fact do this. I've seen three examples of it:

- Media playback: When a song or a video is playing in a background app, there is an extra button in the system button part on the right that lets you access a media control strip. From it you can pause the current video / audio and even scrub through it.

- Xcode debugging: While Xcode is attached to a running process, there's a button in the system button part on the right side of the touch bar lets you access a debugging control strip, which lets you pause execution and step through the program. This access button is actually in the same place as the media control button, and in cases where both would be shown, the media control button wins.

- QuickTime screen recording: When you start recording the screen from QuickTime, the current recording time + a stop button is displayed in a touch bar overlay even if you focus a different app. However, once you do switch to a different app, you can close the overlay, and it minimizes into that same button slot on the right of the touch bar.

It surely would be nice to be able to do these things without private APIs, but I couldn't find anything so far.


It's 5-10 fps in Firefox Nightly for me, and 50-60 fps in Chrome Canary, on OS X.


OK. They're both about 20fps or so for me (at least eyeballing it).

Mind filing the bug, since you can reproduce and profile?

Edit: mstange did in fact file one: https://bugzilla.mozilla.org/show_bug.cgi?id=1300848


How do you measure fps? Is there an add-on for that?


In Firefox go to about:config and flip layers.acceleration.draw-fps to true. In Chrome I think it’s either in dev tools settings or in chrome://flags


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: