Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nnethercote
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
nnethercote
9y ago
Go to about:config and change dom.ipc.processCount to a high number. You'll get the behaviour you want. Four is a reasonable default, especially given that multi-process is so new. It's possible that the default number may increas
62.
▲
by
nnethercote
9y ago
Plenty of people were left scratching their heads when the new Google Earth was introduced, precisely because it was clear that PNaCl's days were numbered. I think the likely explanation is that Google is a large company with numerous
63.
▲
by
nnethercote
9y ago
Adding multi-process support is the single biggest change ever made to Firefox. It was enormous. That's why it took so long.
64.
▲
by
nnethercote
9y ago
Er, what? Labor came up with the idea of the NBN and started it. The Coalition then stopped building it properly and switched it to the watered-down version when they gained power. The Coalition deserves the blame here.
65.
▲
by
nnethercote
9y ago
There is a little-known Valgrind tool called "DHAT" (short for "Dynamic Heap Analysis Tool") that's designed to help find exactly these sorts of excessive allocations. Here's an old blog post describing it, by
66.
▲
by
nnethercote
10y ago
Mozilla is the only company that builds a browser because it genuinely wants to, rather than as a market defense tactic.
67.
▲
by
nnethercote
10y ago
I run Nightly on all my machines, and in my experience its stability is good. YMMV, of course.
68.
▲
by
nnethercote
10y ago
This is a nice way to refresh your profile without losing all your history and other stuff: https://support.mozilla.org/t5/Procedures-to-diagnose-and-fi...
69.
▲
by
nnethercote
10y ago
> It feels like Mozilla is keeping Flash around just because it's more popular with browser gamers and video watchers. That's exactly right. The amount of Flash content dwarfs the amount of other plugin content. Banning other N
70.
▲
by
nnethercote
10y ago
Pocket will be open sourced.
71.
▲
Deploying Rust in a large codebase
(medium.com)
24 points
by
nnethercote
10y ago
|
0 comments
72.
▲
by
nnethercote
10y ago
> under no uncertain circumstances are they allowed to submit code Really? Why is that?
73.
▲
by
nnethercote
10y ago
C: #include <stdio.h> int main(void) { printf("hello world\n"); return 0; } Rust: fn main() { println!("hello world"); }
74.
▲
by
nnethercote
10y ago
> I have animations that run at a smooth 60fps in Chrome and Safari effortlessly, quite often producing 1-2 FPS in Firefox. Can you give an example? I'm sure Mozilla's animation people would love to hear about this.
75.
▲
by
nnethercote
10y ago
"I trust your binaries but I don't trust your shell script for installing those binaries."
76.
▲
by
nnethercote
10y ago
Move semantics are so useful and powerful, but so complex. I've read multiple tutorials on them (all of them very long) and I still keep forgetting minor but critical details. (You could probably replace "move semantics"
77.
▲
by
nnethercote
10y ago
Rust code is also going into Firefox, slowly for now, but it will speed up over 2017.
78.
▲
by
nnethercote
10y ago
It's perfectly reasonable to say "Rust isn't appropriate for my use case". Your comment higher up was more along the lines of "Rust isn't appropriate for anyone" which is far less reasonable.
79.
▲
by
nnethercote
10y ago
Adding multi-process support is the biggest single architectural change ever made to Firefox. It was started, then put on hold for a couple of years because it seemed insurmountable, and then started again. It's taken a huge amount of
80.
▲
by
nnethercote
10y ago
I too would like that! But lots of other changes have been landing concurrently, so it's hard to isolate the effect of my changes.
81.
▲
by
nnethercote
10y ago
Author of the post here. A lot of the heap allocations I removed were small and short-lived. So I believe just the malloc/free calls themselves -- and whatever synchronization and data structure manipulation they entail -- are most of
82.
▲
How to speed up the Rust compiler some more
(blog.mozilla.org)
170 points
by
nnethercote
10y ago
|
62 comments
83.
▲
by
nnethercote
10y ago
Mozilla has been gradually restricting what add-ons can do in Firefox precisely because of problems with malware. This is another step in that process.
84.
▲
by
nnethercote
10y ago
> It should not recompile those crates each time, if it does, that's a bug. Please report them! Depends on the inter-crate dependencies, alas. Touching one crate can easily cause multiple other crates to rebuild.
85.
▲
by
nnethercote
10y ago
If you click the "[-]" symbol at the top right of a docs page it collapses all the text and just shows the method signatures. Then you can click the "[+]" symbol next to any single method to get full details.
86.
▲
by
nnethercote
10y ago
Sure, but it's only in far north rainforests. Poison ivy is all over the place in North America.
87.
▲
by
nnethercote
10y ago
When you take into account where most of the Australian population lives, doing anything in the far north arguably qualifies as unusual :)
88.
▲
by
nnethercote
10y ago
NZ and Australia have very different fauna. They might look close on a world map but the distance from Sydney to Auckland is over 2000 km. Just one example: Australia has a wide variety of mammals (mostly marsupials, e.g. kangaroos). NZ has
89.
▲
by
nnethercote
10y ago
Some people say "half a hole is still a hole". To which I reply "but it's a much smaller hole".
90.
▲
by
nnethercote
10y ago
My post indicates that I've already removed a large chunk of the existing mallocs. The remaining ones are harder, but I expect I'll be able to still remove a decent fraction.
More ›