HNHacker News
TopNewBestAskShowJobs

esprehn

2,013 karma · joined July 18, 2011

submissionscomments
esprehn··on Boa: A standard-conforming embeddable JavaScript engine written in Rust
This project is pretty cool, but reading through the pages my biggest takeaway was how fast libjs is. Amazing work over on Ladybird.

I wonder what they're doing that's so different than Boa.

esprehn··on Direct File won't happen in 2026, IRS tells states
People file incorrect tax amounts all the time. It's the government's job to verify the return and either refund you or request more money. There's a decent margin for error, and not all returns are audited so the IRS must also have a margin for error they're building policy and budgets around.
esprehn··on Mistakes I see engineers making in their code reviews
That can be an automated CI check that runs the new tests with the non-test files reverted though.
esprehn··on ChatGPT Atlas
Atlas was built by folks that came from The Browser Company (and Chrome).
esprehn··on Dangerous advice for software engineers
In my experience orgs need a mix of both rule followers and rule breakers to function.

I really like Dimitri Glazkov's "Sailors and Pirates" framing of this:

https://glazkov.com/2023/04/02/sailors-and-pirates/

esprehn··on "Remove mentions of XSLT from the html spec"
Fwiw the XSLT implementation in Blink and WebKit is extremely inefficient. For example converting the entire document into a string, to parse it to a format that's compatible with libxslt, to then produce a string and parse it back into a node structure again. I suspect a user space library could be similarly as effective.

Ex. https://source.chromium.org/chromium/chromium/src/+/main:thi...

https://source.chromium.org/chromium/chromium/src/+/main:thi...

https://github.com/WebKit/WebKit/blob/65b2fb1c3c4d0e85ca3902...

Mozilla has an in-house implementation at least:

https://github.com/mozilla-firefox/firefox/tree/5f99d536df02...

It seems like the answer to the compat issue might be the MathML approach. An outside vendor would need to contribute an implementation to every browser. Possibly taking the very inefficient route since that's easy to port.

esprehn··on "Remove mentions of XSLT from the html spec"
That is an interesting approach, you could suggest it? In general using JS to implement web APIs is very difficult, but using WASM might work especially for the way XSLTProcessor works today.
esprehn··on Adult sites are stashing exploit code inside svg files
To be fair the format was invented in an era before gzip compression. The very compact format and silly attribute names like d are from optimizing for that.
esprehn··on US Coast Guard Report on Titan Submersible
Notable from that page is this paragraph though:

""" Based on testing at high pressure, the DeepFlight Challenger was determined to be suitable only for a single dive, not the repeated uses that had been planned as part of Virgin Oceanic service. As such, in 2014, Virgin Oceanic scrapped plans for the five dives project using the DeepFlight Challenger, as originally conceived, putting plans on hold until more suitable technologies are developed. """

esprehn··on XMLUI
Flutter sadly deprecated the DOM renderer: https://docs.flutter.dev/platform-integration/web/renderers
esprehn··on XMLUI
This was tried with Polymer way back in 2014 too, ex. making network requests with <iron-ajax> - https://github.com/PolymerElements/iron-ajax

There was also Adobe Flex of the similar era that exists these days as Apache Royale: https://apache.github.io/royale-docs/features/mxml

There was also XAML and inside Microsoft they made NetUI and FlexUI to make Office 2007+ too.

It all seems great on paper, but in practice the markup abstraction turned out to be worse than code first solutions like JSX even for novices.

esprehn··on NASA's Voyager Found a 30k-50k Kelvin "Wall" at the Edge of Solar System
The counter argument is that even if civilizations exist with all the properties you described, given the vastness of space, there should be another civilization that pattern matches to us.
esprehn··on Google Cloud Incident Report – 2025-06-13
That's fair, though `if (isInvalidPolicy) reject();` causes the same outage. So the eng process policy change seems to be failing open and slow rollouts to catch that case too.
esprehn··on Google Cloud Incident Report – 2025-06-13
I work on Cloud, but not this service. In general:

- All the code has unit tests and integration tests

- Binary and config file changes roll out slowly job by job, region by region, typically over several days. Canary analysis verifies these slow rollouts.

- Even panic rollbacks are done relatively slowly to avoid making the situation worse. For example globally overloading databases with job restarts. A 40m outage is better than a 4 hour outage.

I have no insider knowledge of this incident, but my read of the PM is: The code was tested, but not this edge case. The quota policy config is not rolled out as a config file, but by updating a database. The database was configured for replication which meant the change appeared in all the databases globally within seconds instead of applying job by job, region by region, like a binary or config file change.

I agree on the frustration with null pointers, though if this was a situation the engineers thought was impossible it could have just as likely been an assert() in another language making all the requests fail policy checks as well.

Rewriting a critical service like this in another language seems way higher risk than making sure all policy checks are flag guarded, that all quota policy checks fail open, and that db changes roll out slowly region by region.

Disclaimer: this is all unofficial and my personal opinions.

esprehn··on <Blink> and <Marquee> (2020)
In Chromium it's quite literally a CSS animation: https://source.chromium.org/chromium/chromium/src/+/main:thi...

All the code in that file is a fun read. <marquee> was rewritten as if it was a web component using the public DOM APIs (ex. It uses CSS animations and requestAnimationFrame).

esprehn··on How we decreased GitLab repo backup times from 48 hours to 41 minutes
Modern computers are pretty great at scanning small blocks of memory repeatedly, so n^2 can be faster than the alternative using a map in cases for small N.

I spent a lot of time fixing n^2 in blink, but there were some fun surprises:

https://source.chromium.org/chromium/chromium/src/+/main:thi...

For large N without a cache :nth-child matching would be very slow doing n^2 scans of the siblings to compute the index. On the other hand for small sibling counts it turned out the cache overhead was noticably worse than just doing an n^2. (See the end of the linked comment).

This turns out to be true in a lot of surprising places, both where linear search beats constant time maps, and where n^2 is better than fancy algorithms to compensate.

Memory latency and instruction timing is the gotcha of many fun algorithms in the real world.

esprehn··on Dystopian tales of that time when I sold out to Google
I think the author is taking about Brazil? It wasn't clear to me until later in the article.
esprehn··on Getting a Cease and Desist from Waffle House
They need to review the rules of acquisition again.
esprehn··on Kermit the Frog gives commencement speech at University of Maryland
That link doesn't work, maybe because it's not live anymore?

This link is just Kermit's speech:

https://youtu.be/hLFa8zGeotI

esprehn··on CSS Painting API
That won't handle resizing properly. This API lets you hook directly into the painting phase of rendering in the browser so you can both draw the correct size without forcing layout and handle resizing. It also gives the browser the flexibility to not paint the off screen content at all.
esprehn··on MIT asks arXiv to withdraw preprint of paper on AI and scientific discovery
Using the word "like" is not as bad as it seems, and it's been quite common in language for longer than we think (though usage does seem to increase with each generation).

There was a recent podcast that covered it with some experts that's a great listen:

https://open.spotify.com/episode/5w1gdbhmlCyTapoQ3EkMHp

esprehn··on Why can't HTML alone do includes?
We discussed this back when creating web components, but the focus quickly became about SPA applications instead of MPAs and the demand for features like this was low in that space.

I wish I would have advocated more for it though. I think it would be pretty easy to add using a new attribute on <script> since the parser already pauses there, so making something like <script transclude={url}> would likely not be too difficult.

esprehn··on Pwning the Ladybird Browser
Ladybird comes from Serenity OS which has a focus of having fun and being pragmatic while building everything from scratch incrementally.

They do plan to switch to Swift: https://ladybird.org/#:~:text=Why%20build%20a%20new%20browse...

I appreciate their pragmatism though, it's allowed them to catch up to other alternative browsers in WPT coverage very quickly.

esprehn··on Pwning the Ladybird Browser
With site isolation there's not loads of other websites in the renderer these days at least.
esprehn··on JSX over the Wire
For most large scale apps (web or native) rollouts take multiple hours or even days. Ramps are slow to avoid widespread incidents and allow canary analysis to detect issues.
esprehn··on JSX over the Wire
The big challenge with the approach not touched on in the post is version skew. During a deploy you'll have some new clients talk to old servers and some old clients talk to new servers. The ViewModel is a minimal representation of the data and you can constrain it with backwards compatibility guarantees (ex. Protos or Thrift), while the UI component JSON and their associated JS must be compatible with the running client.

Vercel fixes this for a fee: https://vercel.com/docs/skew-protection

I do wonder how many people will use the new React features and then have short outages during deploys like the FOUC of the past. Even their Pro plan has only 12 hours of protection so if you leave a tab open for 24 hours and then click a button it might hit a server where the server components and functions are incompatible.

esprehn··on Windows 2000 Server named peak Microsoft
Command line zip/unzip is available in PowerShell:

https://learn.microsoft.com/en-us/powershell/module/microsof...

Markdown rendering is also available:

https://learn.microsoft.com/en-us/powershell/module/microsof...

I agree with a bunch of your criticism, but modern PowerShell is pretty decent and has a lot of tools.

esprehn··on Minimal CSS-only blurry image placeholders
This is really cool, I love seeing folks use CSS in clever ways. :)

My one feedback would be to avoid using attr selectors on the style attribute like [style*="--lqip:"]. Browsers normally lazy compute that string version of the style attribute [1], but if you use a selector like this then on every style recalc it'll force all new inline styles (ex. element.style.foo = bar) to compute the string version.

Instead if you use a separate boolean attribute (or even faster a class) it'll avoid that perf foot gun. So write <div lqip style="--lqip: ..."> and match on that.

[1] https://source.chromium.org/chromium/chromium/src/+/main:thi...

esprehn··on JEP draft: Prepare to make final mean final
That's a hydration problem though, it doesn't require magically serializing the running state like java Serializable wants to. It just needs a way to produce minimal inputs to then reconstitute the state again on the other side.
esprehn··on Everyone knows all the apps on your phone
Originally Android apps could draw over top of any other app though which is a phishing nightmare. It took them a long time to make that a permission, and then everyone granted it until they finally added the bubbles API recently.

Permissions are difficult to get right, and Android is unfortunately pretty slow to react.

← PreviousPage 3 of 18Next →