HNHacker News
TopNewBestAskShowJobs

esprehn

2,029 karma · joined July 18, 2011

submissionscomments
esprehn··on Show HN: Retool Mobile
That's really helpful thanks! Why do some versions of Android use an old node.js?
esprehn··on Show HN: Retool Mobile
This seems to be a marketing page, are docs or tech details available anywhere? I couldn't find how it actually works without creating an account.
esprehn··on Ask HN: What have you built more than twice and wish someone had built for you?
Have you tried gn or bazel?
esprehn··on Ruby 3.2’s YJIT is Production-Ready
You have his name slightly wrong, it was Chris Seaton.

Here was the announcement:

https://twitter.com/flavorjones/status/1600436490885947393

esprehn··on Internal document explains why Google has become slow and bureaucratic
Without commenting on the contents of the memo Komoroske was not some random employee, he was one of the most senior PMs at the company and now heads up strategy for Stripe.
esprehn··on The gotcha of unhandled promise rejections
I didn't say it's globally ignored (I understand how promises work :)), I said what you did in the code sample adds a catch that ignores the error (it's an empty catch). In real code that wouldn't be empty though, it should have error reporting logic or something to handle that situation in the UI. Once you do that it's not a "hack" anymore, it's just reasonable error handling.
esprehn··on The gotcha of unhandled promise rejections
I also posted the same thing (and have had this discussion with Jake on Twitter :))
esprehn··on The gotcha of unhandled promise rejections
I disagree that the fix is to catch and ignore the error. The fetch handling logic should be catching the errors and reporting them somewhere (ex. Sentry or the UI). In a production app where you report and log errors this "issue" doesn't manifest.
esprehn··on HTML with Superpowers: An Introduction to Web Components
Right, if you want `value` to be part of the public interface of your component you need to add a value property to expose it.
esprehn··on HTML with Superpowers: An Introduction to Web Components
That's handled by shadow dom event retargeting. When the events pass over the boundary of the component the target becomes the component itself instead of the input.
esprehn··on A Lecturer Showed a Painting of the Prophet Muhammad. She Lost Her Job
From a quick Google search it looks like both Heterosexual and Cisgender have flags, ex. https://prideflags.info/
esprehn··on Why Google and Apple work to snuff out the mobile web
Modern v8 does on disk byte code caching, things have come a long way since Palm. In many cases PWAs have faster startup than native apps (also the on disk size of a PWA is usually an order of magnitude smaller than a similar native app.)

https://v8.dev/blog/code-caching-for-devs

https://github.com/thlorenz/v8-perf/blob/master/snapshots%2B...

esprehn··on Why Google and Apple work to snuff out the mobile web
You have the history backwards. MS decided to switch to Chromium long before Chrome team googlers went over there.
esprehn··on Why Google and Apple work to snuff out the mobile web
There's a bunch that run very well on Android: Twitter, Instagram, Uber, Lyft, even TikTok all have very good PWAs.

TikTok aggressively funnels you into the native app for various business reasons, but the experience is well polished if they'd let you use it all the time.

Safari (really that iOS won't let you pick a different browser) has definitely been holding back the growth of PWAs though. Without decent install to home screen support (apple doesn't implement install banners for web), no push notifications, many of the native API integrations missing, it's hard to go too far down the web path before the business folks want the native app for growth angles. It's a lot more about making money than the better UX that can be had with native.

esprehn··on Why Google and Apple work to snuff out the mobile web
As someone close to that situation, Firefox OS's failure had nothing to do with being web based beyond the fact that it was incompatible with the two dominant mobile platforms.

Ex. If you can't run the Android or iOS YouTube app, what you have left is the web one... which could be amazing, but is hardly a fully functional PWA because Google would rather you used the native app.

Firefox OS would have failed all the same had it been based on Qt, or even if it was based on Java without the Android runtime and SDK.

esprehn··on Airbnb removed my negative review
Added more server capacity? They just shut down an entire data center (they had 3, so that's a -33% reduction if you assume they're the same size.)

https://www.nytimes.com/2022/12/29/technology/twitter-elon-m...

What's the speed enhancements?

esprehn··on Project Ritos
For reference the computer interface is called LCARS:

https://en.m.wikipedia.org/wiki/LCARS

LCARS has always seemed so beautiful and simple, but in practice you can't get real UI complexity into a button layout like that. On the shows the buttons mostly display random numbers (which of course made it easier to produce and reuse the panels).

esprehn··on Social Security denies disability benefits based on list with jobs from 1977
Public transit or taxi/ride share? Lots of people with medical conditions where you can't drive work just fine. Also if you live in a city you can probably walk to work.

Also even with seizures you can drive if you're on medication and haven't had one in a while.

esprehn··on Nuklear – A single-header ANSI C immediate mode cross-platform GUI library
Your demos are really cool!

https://floooh.github.io/sokol-html5/

Interestingly the imgui and nuclear both work on mobile while the microui demo doesn't appear to handle any input. Imgui works surprisingly well (although everything is a bit small for touch).

esprehn··on Linux /proc/pid/stat parsing bugs
The system level fix is to create a structured record format. That could mean quoting all the records or maybe Linux should finally adopt a standardized format like JSON.
esprehn··on Devpod: Remote development environment at Uber
The post clearly shows they're not using RDP.

That said Projector round tripped all the key strokes to get new draw commands (unlike VSCode) which also results in lag. The new IntelliJ remote architecture is much better, and it seems Uber is moving that way too.

esprehn··on Atom was archived today
Atom predated the LSP and leaned heavily into customizations with all the plugins running inside the UI thread (more like a traditional web page and 3p scripts). At the time they viewed the extreme customization support as a feature, and there was a thriving ecosystem of folks making plugins.

That architecture has a major flaw though. A default install was fast, but a real configuration with all the plugins ended up quite slow.

VSCode's architecture worked much better in real world configurations, and it turns out better performance wins in the editor space, even if it meant losing certain customizations (up to a limit). The architecture also allowed seamless remote editing, something Atom never could have done.

The interesting thing has always been that both were built on Electron. Atom's developers had built all the tools and primitives needed, they just didn't have the understanding of the long term ecosystem effects of their design.

esprehn··on Rewriting TypeScript in Rust?
As someone who's been part of the team who tried to do exactly this, I don't think it can work. Once you start subsetting things it quickly turns towards being "better" than the existing web, and soon all backwards compatibility is gone.

All those legacy features and existing pages are the back pressure that keeps the evolution of the web stable.

esprehn··on Rewriting TypeScript in Rust?
Allowing literal strings and type aliases of unions of strings to represent enums doesn't seem unreasonable. It's the same concept as many other languages with some extra quotes, ex. https://ocaml.org/docs/data-types#a-simple-custom-type
esprehn··on How does GPT obtain its ability? Tracing emergent abilities of language models
This is by design (and implemented as explained in the sibling comments). The reason for the randomness is to avoid returning the same thing all the time. For example if you ask it "write me a poem" you don't want it to return the exact same one each time.

You can also set the "temperature" parameter to 0 to remove the non determinism (though I'm not sure that's exposed in the web interface).

esprehn··on I am frustrated with Stable Diffusion
To be fair in the case of airplane wifi this is compounded by the exorbitant pricing.

If you pay a premium price you expect premium service.

There's no competition for airplane wifi though, you either use it or you don't. It's not like you choose between two different vendors... So they're competing against no wifi at all which allows for pretty mediocre and unreliable service as that's "better than nothing".

These free ML models exist in a slightly different world.

esprehn··on McDonalds Event Driven Architecture
The background process is just threads in the monolith, that's not a microservice. That a different pod running the same code might pick up the async task doesn't make it less of a monolith either.
esprehn··on Front end developers: stop moving things that I’m about to click on
This is why everyone switched to overlay scroll bars. It's also better for performance because you don't need to do layout on a screen worth of content only to realize you need to reserve 16px and do layout again.
esprehn··on The Twitter Advertiser Exodus
Both those things can be true. If many of the top advertisers pulled their ads then they could be going out to the long tail and showing a larger number of lower value ads to compensate.

It's also possible you're in an A/B test to show a different ad volume.

In general sample size of 1 for ads (or feed ranking) is hard to reason about.

esprehn··on Cobalt – a stripped down Chromium for apps, Linux and embedded systems
I think cobalt has about as much in common with chromium as chromium does with khtml these days. There's some vague shared lineage but it's entirely its own project now with different algorithms and approaches to implementing web standards.

It's a pretty cool project, and the source is a fun way to learn about web standards (same with reading Ladybird browser code). The major browsers are so complex they're not as approachable.

← PreviousPage 10 of 18Next →