Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mstange
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
mstange
5mo ago
Are there any tools that help finding these kinds of things? Like a profiler that says "80% of the allocated bytes are objects of this type, with 95% of those having that field set to None"
2.
▲
by
mstange
3y ago
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 bene
3.
▲
by
mstange
3y ago
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.
4.
▲
by
mstange
4y ago
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://
5.
▲
by
mstange
4y ago
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 pla
6.
▲
by
mstange
5y ago
Oh, you're right. I missed that.
7.
▲
by
mstange
5y ago
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/
8.
▲
by
mstange
5y ago
WASD doesn't work by default because I'm using a Dvorak keyboard layout. Using KeyEvent.code would solve this problem.
9.
▲
by
mstange
6y ago
My experience was similar: File.pizza didn't work. However, https://justbeamit.com/ worked flawlessly.
10.
▲
by
mstange
7y ago
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 composito
11.
▲
by
mstange
10y ago
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
12.
▲
by
mstange
10y ago
It's 5-10 fps in Firefox Nightly for me, and 50-60 fps in Chrome Canary, on OS X.
13.
▲
by
mstange
10y ago
Scrolling especially should be much better in multi-process Firefox, because it will be async, so web pages no longer block it. It doesn't fix performance in your react app, though. I've filed a bug about it: https://bu
14.
▲
by
mstange
10y ago
Thanks!
15.
▲
by
mstange
10y ago
Oh no, it's that box-shadow bug again :-( We fixed in in Firefox 47, but the fix was deemed too risky to be uplifted to Firefox 46. That was probably a mistake. Anyway, Firefox 47 is going to be released in two weeks on June 7th. In th
16.
▲
by
mstange
10y ago
Thanks for finding that out. We (Firefox) fixed a box shadow performance bug [1] in Firefox 47, which will be released on June 7th. It looks like this site is hitting that perf bug. [1] https://bugzilla.mozilla.org/show_bug.
17.
▲
by
mstange
12y ago
In the future it'll be possible to use keyEvent.code for this: http://www.w3.org/TR/DOM-Level-3-Events/#keys-codevalues It's supported in Firefox Nightly + Dev edition. I don't know whether other br
18.
▲
by
mstange
12y ago
Nightly and Aurora Firefox builds actually support the "code" field on keyboard events, which lets JS know which physical key was pressed on the keyboard. For example, when a Dvorak user presses the key that would be W on a QWERTY
19.
▲
by
mstange
14y ago
Using the new Firefox profiler [0], which isn't quite ready for public consumption yet but already very helpful: 1. Download Firefox Nightly [1] 2. Install the profiler addon [2] 3. Play the game 4. Press Cmd+Shift+O to open a profile of th
20.
▲
by
mstange
14y ago
this.img.src = this.img.src.replace(/Fish[a-zA-Z0-9]\./, "Fish"+this.direction+".") It looks like this line is executed on every frame for all fish in the level. For Firefox users who have the Ghostery addon installed, this makes th
21.
▲
by
mstange
14y ago
1 happens, as long as the bigger part of the window is on the non-Retina display. If the bigger part of the window is on the Retina display, the window only gets a Retina paint event and the non-Retina display shows a downscaled version. So