HNHacker News
TopNewBestAskShowJobs

esprehn

2,023 karma · joined July 18, 2011

submissionscomments
esprehn··on Stripe's Monorepo Developer Environment
At that scale there's certainly a framework and many in house libraries with opinions and patterns. It's just not rails.
esprehn··on Dasel: Select, put and delete data from JSON, TOML, YAML, XML and CSV
SQL has both standard JSON and Array functions. What's the "list as value" feature you think is missing?
esprehn··on VanillaJSX.com
I think the answer to that is probably "as good as soy, but with modern ergonomics". E4X was basically this and I think it's a much nicer way to build DOM trees than strings since you can't create invalid markup or concat partial tags. It also lets you reuse subtrees naturally where innerHTML makes that impossible.
esprehn··on 70% of new NPM packages in last 6 months were spam
That primarily works if you can shadow ban the account. Otherwise the spam is still negatively impacting the community (ex. By polluting search results).
esprehn··on Porting my JavaScript game engine to C for no reason
Most of that repo appears to have been built in early 2013. Android WebView didn't switch to chromium until late 2013. Prior to that it was usually an older hacked up WebKit sometimes provided by the phone manufacturer with unreliable features.
esprehn··on How Google handles JavaScript throughout the indexing process
They don't, but at one point you might do that for lower resource consumption.
esprehn··on How Google handles JavaScript throughout the indexing process
This isn't accurate as of a number of years ago. They run headless chrome (as mentioned in the article). No more hacked up engine or JSC.
esprehn··on Ask HN: Is it possible to make FAANG salaries without working there?
Magic missile, garbage collection enchantment, server resurrection.
esprehn··on Import and Export Markdown in Google Docs
This is a great feature (and probably related to reliance on markdown from all the LLM services). I do wish they'd add SVG import to slides though, that's been a top feature request for like a decade.
esprehn··on Boeing to plead guilty to criminal fraud charge stemming from 737 MAX crashes
While I understand the spirit of what you're saying it does the woman a disservice to talk about it as being only spilling a cup of hot coffee. She was severely burned and required substantial medical treatment:

""" Liebeck went into shock and was taken to an emergency room at a hospital. She suffered third-degree burns on six percent of her skin and lesser burns over sixteen percent.[14][13] She remained in the hospital for eight days while she underwent skin grafting. During this period, Liebeck lost 20 pounds (9.1 kg), nearly 20 percent of her body weight, reducing her to 83 pounds (38 kg). After the hospital stay, Liebeck needed care for three weeks, which was provided by her daughter.[15] Liebeck suffered permanent disfigurement after the incident and was partially disabled for two years.[16][17] """

https://en.m.wikipedia.org/wiki/Liebeck_v._McDonald%27s_Rest...

esprehn··on The Origins of DS_store (2006)
They did apparently rewrite it in Cocoa back in ~2008. Although that was 16 years ago so I'm sure it's accumulated a fair bit of tech debt since then.
esprehn··on Show HN: ViperIDE – MicroPython IDE for web and mobile
This is super cool, and I love the old school tech stack. It makes for a very approachable codebase and a fast user experience.

As a reminder given the recent polyfill io attack, don't use public CDN hosted JS without also setting SRI attributes [1]. It's a marginal perf benefit because the cache is partitioned by top level domains now and it opens you up to attacks from the CDN owners.

https://github.com/vshymanskyy/ViperIDE/issues/14

As a bonus set CSP headers and a nonce when you can too, but definitely set SRI on any 3p scripts.

[1]: https://developer.mozilla.org/en-US/docs/Web/Security/Subres...

esprehn··on Ask HN: What is the best code base you ever worked on?
And yet folks who are on call for it say things like this: https://news.ycombinator.com/item?id=40826497
esprehn··on Ask HN: What is the best code base you ever worked on?
There are pretty different uptime and stability requirements for a social product and web search (or other Google products like Gmail). When news feed is broken life moves on, when those products break many people can't get any work done at all.

One of Google's major cultural challenges is imposing the move slow and carefully culture on everything though.

esprehn··on The story, as best I can remember, of the origin of Mosaic and Netscape [video]
That world lived on for quite a while through different mediums. I remember joining the webkit IRC channel in the early days and being full of wonder that folks like Hyatt were just hanging out willing to chat with me and answer questions.

There's something really special about the community and openness of folks who work on web browsers. Maybe it traces it's way back to the newsgroups.

esprehn··on Half of Workers Around the World Are Struggling with Burnout
https://en.m.wikipedia.org/wiki/Big_Three_(management_consul...
esprehn··on Polyfill supply chain attack hits 100K+ sites
Also the folks who spec'ed ES6 modules didn't think it was a required feature to ship SRI from that start so it's still not broadly and easily supported across browsers. I requested the `with` style import attributes 8 years ago and it's still not available. :/
esprehn··on New JavaScript Set Methods
I'm very excited this finally shipped everywhere! Prior to this Set wasn't much more than a Map<any, true> since it had no actual Set operations.
esprehn··on The biggest CRT ever made: Sony's PVM-4300
My parents had a Sony KV-40XBR700, the 40in 300lb CRT. I thought it was the largest you could buy until learning about the even larger one in TFA.

The picture quality on the KV-40XBR700 was amazing for the era (~2003). My Dad cleverly cut a hole into the wall up high and stuck the TV into it, then put a picture frame around it giving us one of the first "high definition flat screens" even if it was an illusion.

Of course these days our 43in TV weighs less than 20lbs and is mounted with a couple small wall anchors.

esprehn··on How we made the Deno language server faster
I have to wonder if maybe writing the whole thing in TypeScript from the start may have been a better choice. It's not clear what they get from Rust and it introduces the binding layer complexity described in the article.
esprehn··on Starlark Language
Boq has a lot of restrictions on what you can do (ex. No user functions except a tiny allow list they own). It lives in a manifest.bzl file though, and I'm pretty sure uses the golang starlark interpreter.
esprehn··on Starlark Language
Google is a mess of configuration languages. Starlark, GCL, piccolo, textproto, yaml, the weird subset of starlark boq uses. From the outside it seems a lot more uniform than it is.
esprehn··on So you want to build a browser engine
Yes, that sentence is stating two different things:

> The parser core compiles on Google Web Toolkit *and* can be automatically translated into C++

esprehn··on So you want to build a browser engine
Engine diversity is really important for the ecosystem and continued innovation. While building something competitive with the big three engines is a monumental task there's still a lot of value in building alternative engines to try new ideas even if getting "the whole web" implemented is basically impossible.

For example:

- Servo vs Blink vs Cobalt do selector matching and style resolution very differently.

- WebKit has a selector JIT, no one else does though.

- WebKit and Blink do layout super differently (with LayoutNG shipped).

- Firefox's html parser is written in Java and converted to C++ at build time.

The big value in folks trying to write new engines is finding these alternate paths. We can't depend on the big three for all the innovation.

That's what's great about Ladybird. Sure it'll need a lot of sophisticated sandbox improvements to get us to a big four situation, but it's more likely its value will be in finding another road the other engines didn't travel across the huge universe of specs, content and features.

esprehn··on So you want to build a browser engine
For general web browsing it's true there's basically just Gecko, WebKit and Blink that are broadly used and compatible with the whole ecosystem.

There's a fair number of other engines though like Sciter, Flow, Cobalt and Servo.

esprehn··on Don't Use include-what-you-use
Relevant is Figma's recent experience fixing this issue, they didn't end up using IWYU but made their own tool which unfortunately doesn't appear to be open source:

https://www.figma.com/blog/speeding-up-build-times/

I'm surprised TFA didn't see any improvement though. It makes me wonder if there's bigger opportunities with the build graph shape preventing them from getting optimal incremental rebuilds.

esprehn··on Ruby's Timeout is dangerous and Thread.raise is terrifying (2015)
That's kotlin
esprehn··on Go: Sentinel errors and errors.Is() slow your code down by 3000%
Ah ha! So the issue was always going through the error type reflection even for the success path.

https://github.com/golang/go/commit/af43932c20d5b59cdffca454...

I'd be interesting to see the benchmark after that.

esprehn··on Go: Sentinel errors and errors.Is() slow your code down by 3000%
The happy path is still just nil comparison though:

  if err == nil || target == nil {
      return err == target
  }
So the overhead is the function call and 2 comparisons. I wonder if the `isComparable := reflectlite.TypeOf(target).Comparable()` line was moved into a separate function if the compiler would inline Is() reducing the perf impact.

Possibly related: https://github.com/golang/go/issues/61502

Looks like they're working on improving the inliner.

esprehn··on Don't DRY Your Code Prematurely
This is one of my favorite principles, don't try to make the codebase "too DRY" . I often see it cause stress and complexity in platform or infra teams trying to support large communities of developers.

It's right to be concerned that a bunch of teams might be a wasting time implementing the same thing slightly differently, or that you'll end up fixing the same bug across all these "copies".

Often that kind of duplication is good for the business though, and the platform team doesn't have the insight to see all the divergent requirements on the horizon. Letting the teams innovate separately without having to coordinate changes in all these DRY-ied up systems can be the best way to support them.

Or even more abstractly, zero codebase chaos is not the optimal amount.

← PreviousPage 5 of 18Next →