HNHacker News
TopNewBestAskShowJobs

esprehn

2,021 karma · joined July 18, 2011

submissionscomments
esprehn··on 400 reasons to not use Microsoft Azure
Out of curiosity, what are the biggest gaps you've hit in GCP?
esprehn··on Stargate Project II? Declassified US Government Research in RV and Psi [pdf]
Yes the recent project is the 3rd usage of the name, but it's unrelated.

This was the original:

https://en.m.wikipedia.org/wiki/Stargate_Project_(U.S._Army_...

TFA is about the apparent continuation of that same work from the 70s.

esprehn··on Building an "Easy" Web Application
You can impose a timeout on a fetch with a one liner:

https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal...

Part of the awkwardness in the post is also mixing what looks like express with promises. I think using an async function as the handler with express 5 would probably feel a lot nicer.

I agree about CORS being frustrating. I think we should have allowed totally anonymous fetch requests across domains for saved to home screen PWAs (or with a permission prompt.) Missing that feature means you end up needing native apps for a lot of things that otherwise are totally reasonable web apps. CORS does make sense though because the alternative is drive by attacks against your local network from random web pages. And since the S in IOT stands for security that seemed like a bad idea at the time.

esprehn··on Waydroid – Android in a Linux container
Wikipedia has a good explanation of Binder and the history which goes way back to Be OS.

https://en.wikipedia.org/wiki/OpenBinder

It's more like a micro services framework that abstracts threads and processes.

Fuchsia takes the approach to the conclusion and powers the entire OS through a similar system:

https://fuchsia.dev/fuchsia-src/concepts/fidl/overview

esprehn··on An update on Dart macros and data serialization
I'm pretty sure in that era Xamarin was closed source and a commerical offering. It wasn't until 2016 when MS acquired them that it became free and open source. So using .NET and C# wasn't really possible in 2014 without either paying a third party or buying the Xamarin company.

I think folks forget how long ago we made Flutter.

esprehn··on An update on Dart macros and data serialization
These days Hermes is the answer to the JS and iOS startup issues. Of course it's a decade too late for flutter. :P

https://github.com/facebook/hermes

https://x.com/tmikov/status/1869945330638442651

Btw that Angular history is backwards. The first versions of angular were written in JS back in ~2009. jQuery was the most popular way to build web apps, and Angular provided a (very fancy) declarative data binding framework over it. Everything ran in your browser by inspecting DOM attributes.

Later in ~2014 they built a new framework on similar principles in TypeScript, but with an AOT compiler and called it "Angular 2". Then they retconed the original framework "AngularJS" and made the 2+ framework be just "Angular". In that era some Ads folks forked the Angular 2 framework and rewrote it in Dart and the two frameworks evolved separately since.

So there's really 3 separate "angular" frameworks...

esprehn··on An update on Dart macros and data serialization
It was 2014, so even earlier than that.
esprehn··on The past, present, and future of UI at GitHub
I believe this is misinterpreting the app usage trends. While the number of minutes on mobile is heavily skewed to apps (ex. 90%) the time is also spent in a very small number of apps (ex. Instagram or YouTube). It's not clear how that trend applies to something like GitHub or developer tooling in general.
esprehn··on Alcohol-free booze is becoming big business
> alcohol-free gin is maybe good for cocktails, but does anybody really drink it in its pure form?

That depends on what the zero proof spirit is aiming for. I've found some of them are not very good alone because they're trying to replicate a particular flavor in the cocktail, but others (ex. Monday's Gin) are great with just ice. We keep a bottle of it around for a fun evening beverage.

The "savory non-tea zero proof beverage" for the evening is a difficult thing to come by. That's the space these fake spirits are trying to fill.

esprehn··on Show HN: Struggle with CSS Flexbox? This Playground Is for You
Yes.
esprehn··on Show HN: I aggregated over 200 Go-To-Market strategies
https://en.m.wikipedia.org/wiki/Go-to-market_strategy
esprehn··on macOS menu bar app that shows how full the ISS urine tank is in real time
Relevant pop-culture:

https://bigbangtheory.fandom.com/wiki/Wolowitz_Zero-Gravity_...

Space toilets are one of those things that are both critical and ignored in most depictions of space. Even in all the years of Star Trek they have "sonic showers" , but never depict a toilet.

It's amazing that NASA publishes this data in real time.

esprehn··on Malware can turn off webcam LED and record video, demonstrated on ThinkPad X230
Yeah, on Chromebooks and MacBooks the LED is hardwired to ensure it's always on when the camera is enabled.
esprehn··on Google's iOS app now injects links on third-party websites that go to Search
With no inside knowledge of this team or feature, this appears to be almost the exact same feature MS shipped in the IE6 betas over 20 years ago, though without the ability for 3p to integrate with it:

https://en.m.wikipedia.org/wiki/Smart_tag_(Microsoft)

https://stackoverflow.com/questions/2167301/what-is-the-purp...

https://alistapart.com/article/smarttags/

Response was extremely negative and the feature was removed. The only thing remaining is the opt-out meta tags all over the web.

esprehn··on How we made a Ruby method 200x faster
There's three different modes of running a selector in typical browsers:

  (a) Element#matches
  (b) Element#querySelector(All)
  (c) By the engine for updating style and layout

The GP seems to be talking about (b), but even then browsers are checking each element one by one not advancing through the selector state machine in parallel for every element. (There's one exception in the old Cobalt which did advance the state machines IIRC).

(a) and (c) are conceptually very similar except that when doing (c) you're checking many elements at the same time so browsers will do extra upfront costs like filling bloom filters for ancestors or index maps for nth-child.

In TFA they're doing .matches() which I would expect to be slower than a hash map lookup, but for a simple selector like they're doing (just tag name) it shouldn't do much more then:

  (1) Parse the selector, hopefully cache that in an LRU
  (2) Execute the selector state machine against the element 
    (2.1) Compare tagName in the selector

Apparently Nokogiri implements CSS in a very inefficient way though by collecting ancestors and then converting the CSS into xpath and matching that:

https://github.com/sparklemotion/nokogiri/blob/e8d30a71d70b2...

https://github.com/sparklemotion/nokogiri/blob/e8d30a71d70b2...

I'd expect that to be an order of magnitude slower than what a browser does.

esprehn··on We Built a Self-Healing System to Survive a Concurrency Bug at Netflix
We hit this in a past gig too. One of the big services had a leak, but deployed every 24 hours which was hiding it. When the holiday deploy freeze hit the pods lived much longer than normal and caused an OOM storm.

At first I thought maybe we should add a "hack" to cycle all the pods over 24 hours old, but then I wondered if making holiday freezes behave like normal weeks was really a hack at all or just reasonable predictability.

In the end folks managed to fix the leak and we didn't resolve the philosophical question though.

esprehn··on The business of gutting failed Bay Area tech companies
The back button trapping is something browsers should fix. Chrome has so far refused to do so which is frustrating.
esprehn··on I quit Google to work for myself (2018)
> Promotions often, if not always, come with much larger workloads for only marginal pay increases.

While this might be true in other industries, in big tech companies like TFA is talking about SWE promotions come with rather large increases in pay.

https://www.levels.fyi/?compare=Amazon,Facebook,Google&track...

The author was trying to go from L4 to L5. Promotions are also backwards facing, which means at the point you get promoted you're already doing the larger workload.

esprehn··on Ambulance hits cyclist, rushes him to hospital, then sticks him with $1,800 bill
IANAL but as long as the payment is covering the personal injury then it's not considered income and isn't taxable.

https://www.irs.gov/government-entities/tax-implications-of-...

esprehn··on SF MUNI approves $212M technology from Hitachi to replace floppy disks by 2028
Where the floppy disks still come from is quite interesting:

https://eyeondesign.aiga.org/we-spoke-with-the-last-person-s...

esprehn··on TinyJS – Shorten JavaScript QuerySelect with $ and $$
That's (much) slower and has surprising edge cases: https://news.ycombinator.com/item?id=32997636
esprehn··on Amazon tells employees to return to office five days a week
I'm not sure about those particular services, but in general the ground breaking and foundational things at the FANG and adjacent companies were convinced by people at much lower level than L7. It was a lot of L5-6 folks who then went on to be 7+ many years later.
esprehn··on A better HTML input experience (custom elements and the AOM) (2017)
This article is from a long time ago and the spec changed substantially.

It's now all done with properties on ElementInternals:

https://developer.mozilla.org/en-US/docs/Web/API/ElementInte...

They also decided not to ship AccessibleNode's which is unfortunate because it removed the clearest path for canvas+wasm based UIs.

https://github.com/WICG/aom/blob/gh-pages/explainer.md

esprehn··on Lucee: A light-weight dynamic CFML scripting language for the JVM
There were custom tags since 1997 (v3) and functions since 2001 (v5).

https://cfdocs.org/coldfusion-versions

CF is interesting because it started as basically server side includes with some extra features to connect to a database. It was meant to be very approachable and not general purpose. Like a distant ancestor to Jupyter and Observable.

That approachability made for some big messes, but it also spawned a huge community of software developers who might not have gotten into it otherwise.

esprehn··on Google Closure Library has been archived
I have very fond memories of joining Google and discovering the Closure library. It had everything and in an era before npm, JS modules, and ES6... it made writing JS feel magical. Impossibly large projects felt possible, and complex systems felt maintainable.

These days it feels a bit like boost is to modern C++. A monument to amazing engineering of the past, but something to keep in the archive.

esprehn··on Google Closure Library has been archived
While folks don't really use Closure Components anymore, the library is huge and both Wiz and JsLayout (and Fava) are built on Closure.
esprehn··on Google Closure Library has been archived
Even more confusing: inside Google they call the compiler JSC, unrelated to the JS engine in WebKit.
esprehn··on Google Closure Library has been archived
They archived the open source parts , but it's the same stack internally.
esprehn··on Google Closure Library has been archived
Fun fact: the code name for the editor was TrogEdit, with Trogdor the Burninator as their mascot. I believe they even had a life size cardboard Trogdor by their desks.

It's one of the oldest, most stable, and never rewritten parts of the Gmail codebase.

esprehn··on Fixing a bug in Google Chrome as a first-time contributor
That sounds like Servo?

https://servo.org/

← PreviousPage 4 of 18Next →