Better HN
topnewbestaskshowjobs
Log inSign up

jandem

700 karma · joined Nov 27, 2015 (11y ago) · 49 submissions

Software Engineer at Mozilla, working on SpiderMonkey.

[ my public key: https://keybase.io/jandem; my proof: https://keybase.io/jandem/sigs/poLPBTWocvZnoqcGS22sl8au2EOj8ygALBDZDJ6Xym8 ]

Submissions

comment 8mo ago · link · parent

Here's a write-up for one of the bugs they found: https://red.anthropic.com/2026/exploit/

comment 1y ago · link · parent

Crypto miners written in JS existed long before WebAssembly. Back then people also compiled large C++ code bases to (highly obfuscated) JS code and out of these heroic efforts grew asm.js which then evolved to WebAssembly. WebAssembly is a much better compile target than JS with more low-level types and primitives, but it's very similar to JS code in what it can and can't do in the browser.

Compiling a C++ application to megabytes of JS code doesn't make the result any more open-source or non-DRM than compiling the same thing to WebAssembly (you could translate Wasm to the equivalent but slower JS code).

comment 2y ago · link · parent

Nice to hear from you! Yes it was a very reasonable choice back then, before (enormous) asm.js and Wasm functions.

The compiler wasn't really designed for these huge graphs, but fortunately a lot of the issues can be fixed incrementally and it's still holding up well.

comment 3y ago · link · parent

The point is that Musk has been talking a lot about being a free speech absolutist. He even said this last month:

> My commitment to free speech extends even to not banning the account following my plane, even though that is a direct personal safety risk

And now he's banning accounts. That doesn't make sense for a free speech absolutist.

comment 5y ago · link · parent

I think part of this is just time to get used to something new? You might notice some improvements too, for instance only after I started using Fastmail I realized the Gmail UI can be pretty slow and heavyweight although I never noticed this before.

comment 5y ago · link · parent

This behavior is defined in the HTML spec, here:

https://html.spec.whatwg.org/multipage/browsers.html#crossor...

comment 6y ago · link · parent

> With Fastmail or another provider, you're trusting another corp.

You're trusting a corp that offers customer support, a service you pay them for. With Gmail you're completely on your own because you're only a small cog in the massive data mining machine. That's a pretty big difference.

That said, it's a good idea to set up a custom domain with a trusted registrar.

comment 6y ago · link · parent

I migrated to Fastmail a few weeks ago. I'm really happy with it and I wish I had done it years ago. Many features. The web interface and apps feel a lot faster than Gmail.

Pro-tip: use a custom domain so that you can easily switch e-mail providers in the future without vendor lock-in. It's also very easy to add aliases in Fastmail.

> Plus after the import is finished, it will still periodically bring over any new emails received to the Gmail account.

Another option is to let Gmail forward your email to the new address.

comment 6y ago · link · parent

> It’s a big deal and everyone who contributed should be super proud.

Thanks! We actually haven't really analyzed Speedometer (and most other benchmarks) yet with Warp so I expect this number to improve the coming months. The design seems to be holding up well and we're really excited about building on this.

10.

Cranelift code generator ships in Firefox for aarch64(twitter.com ↗)

1 points · by jandem · 6y ago · discuss

11.

SpiderMonkey Newsletter 5 (Firefox 78-79)(mozilla-spidermonkey.github.io ↗)

2 points · by jandem · 6y ago · discuss

comment 6y ago · link · parent

SpiderMonkey dev here. Does this reproduce for you with a clean profile? Because I just tried this with 78.0b9 too and for the first one, Local (original), I get 6.7 ms in the Web Console, very similar to what I see in Chrome. I didn't look at the other ones.

13.

SpiderMonkey Newsletter 4 (Firefox 76-77)(spidermonkey.dev ↗)

4 points · by jandem · 6y ago · discuss

14.

New Sandboxing Approach in Web Browser Increases Security(cns.utexas.edu ↗)

3 points · by jandem · 6y ago · discuss

15.

SpiderMonkey Newsletter 2 (Firefox 73)(spidermonkey.dev ↗)

2 points · by jandem · 6y ago · discuss

comment 6y ago · link · parent

For background, see http://exple.tive.org/blarg/2019/04/26/synchronous-text/

17.

1Password X 1.17: New brain, new menu, and even more accessible(blog.1password.com ↗)

1 points · by jandem · 6y ago · discuss

comment 7y ago · link · parent

> So why aren't people just shipping straight up LLVM intermediate language VMs and instead go through wasm?

This is answered in the WebAssembly FAQ: https://webassembly.org/docs/faq/#why-not-just-use-llvm-bitc...

19.

Firefox blocked 450B privacy invasions in less than 4 months(fastcompany.com ↗)

3 points · by jandem · 7y ago · discuss

comment 7y ago · link · parent

> They all looked glum, and said "There is no alternative".

Most people that I know here in the Netherlands prepare lunch at home and bring it to work or school. I work from home now and still usually eat simple sandwiches for lunch so at least for me it's not about "no alternatives".

It gives me more time to go outside or stop working early - I honestly don't want to spend (at least) an hour going out just to have lunch and then a similar ritual in the evening for dinner.

21.

Hardening Firefox Against Injection Attacks (2019)(blog.mozilla.org ↗)

5 points · by jandem · 7y ago · discuss

comment 7y ago · link · parent

> Is that the difference, or am I missing something else?

That's part of it. The generated interpreter should be a bit faster for simple instructions because of the reason you give (also: things like debugger breakpoints have more overhead in the C++ Interpreter).

However, the bigger speedups are because the generated interpreter can use Inline Caches like the Baseline JIT. The C++ Interpreter does not have ICs.

comment 7y ago · link · parent

As far as I know V8 has a generated interpreter and an optimizing JIT (Turbofan).

In Firefox we now have a generated interpreter + a Baseline JIT on top of a mostly shared code base. I think that's a pretty nice design/advantage.

comment 7y ago · link · parent

> Given all that, why are we still creating entirely separate engines that are made differently, yet do the same.

To name one reason: would we have asm.js/Wasm instead of (P)NaCl without Mozilla's work on asm.js optimizations in SpiderMonkey?

comment 7y ago · link · parent

> One thing that wasn't clear to me from this post is why they still need the C++ interpreter at all.

A lot of code on the web is very cold (executed once or twice) and for such code the Baseline Interpreter would add some overhead (requires allocating a JitScript storing the IC data for example and we would then spend more time in IC code as well). It's possible this could be mitigated or fixed with additional work, but we need to keep the C++ interpreter anyway (not all platforms have a JIT backend and it's useful for differential testing) so it's not a priority right now.

26.

Mozilla Distrusts DarkMatter CA in Firefox(groups.google.com ↗)

6 points · by jandem · 7y ago · discuss

27.

Show HN: diswasm – objdump disassembler compiled to wasm(jandem.github.io ↗)

3 points · by jandem · 7y ago · discuss

comment 7y ago · link · parent

Many (most?) people on Rust's Core/Governance Teams don't work for Mozilla (anymore).

See https://www.rust-lang.org/governance/teams/core

29.

Graphics Team ships WebRender MVP(mozillagfx.wordpress.com ↗)

139 points · by jandem · 7y ago · 50 comments

12