HNHacker News
TopNewBestAskShowJobs

bichiliad

1,369 karma · joined December 12, 2012

[ my public key: https://keybase.io/salem; my proof: https://keybase.io/salem/sigs/SWoRZOAZijE9JNIZex93QGHwSe2UUcCTeMgcad5QV3M ]

Get in touch: hi at salem dot io

submissionscomments
bichiliad··on Webpack 5
The biggest thing I've been excited about is having an offline cache for fast recompilations. It'll make startup times a lot faster, which is a big improvement for developer experence (especially in larger codebases).
bichiliad··on Webpack 5
I have to sing some praises for Webpack for a second. I work at a company with a large (> 10k files) old (> 10 years) JS codebase. It used to rely on a home-grown build tool, but making our builds both fast and modern took the time of multiple full-time engineers. Webpack isn't "fast" like Rust is fast, and it's not old enough to be as well-documented or understandable as I'd wish, but:

1. it is flexible enough to fit all of our weird edge cases.

2. it has a really solid community of people working on it.

3. it made adopting new features like TypeScript extremely simple for us.

I don't see us upgrading from 4 to 5 eagerly (at least until it's been production-proven), but I'm excited about this release, and I love all the hard work that's gone into it. Congrats to the team — it's no small feat.

Edit: formatting

bichiliad··on If pay had kept pace with productivity gains, minimum wage would be $24 an hour
I think "kept pace" implies that if the trend were to continue. In your link, it looks like the trend for adjusted wages from the 40s to the early 70s is up and to the right, but after that point it reverses. Those two graphs still tell the same story to me.
bichiliad··on Covid-19 Vaccine Protocols Reveal That Trials Are Designed to Succeed
I think most, if not all, all vaccines prevent you from getting (the symptoms of) a specific infection. Plus, vaccinations do not prevent mutation if only some of a population gets them.
bichiliad··on Covid-19 Vaccine Protocols Reveal That Trials Are Designed to Succeed
I actually looked the author up as well. I was pretty surprised that what seem to be pretty glaring grammatical errors made their way into what ostensibly is a pretty important article. I wonder if he would publish it with Forbes on the condition that nothing was reworded.
bichiliad··on Trump’s Taxes Show Chronic Losses and Years of Income Tax Avoidance
What's wrong with the thread itself?
bichiliad··on Portland passes low-density zoning reform
For anyone interested in reading on density, neighborhoods, and what sorts of things work well in cities, I can't recommend The Death and Life of Great American Cities by Jane Jacobs enough[0]. She wrote the book in the 60s and it has really stood the test of time.

Edit: I'd add that the book does a good job about explaining the sorts of motivations there were behind un-densifying cities (or keeping density from rising) in the first place.

[0]: https://en.wikipedia.org/wiki/The_Death_and_Life_of_Great_Am...

bichiliad··on Welders set off Beirut blast while securing explosives
Possibly, but I’m surprised that this is the publication they’d choose to disclose such high-value information to.
bichiliad··on Welders set off Beirut blast while securing explosives
I’m having a hard time evaluating the credibility of this article. They mention “multiple sources,” but I can’t find any references. Can anyone find anything that vouches for the credibility of this report?
bichiliad··on I accidentally built a nudity/porn platform
I wonder if using Instagram Login has helped them filter out spam accounts.
bichiliad··on Fed announces details of new interbank service to support instant payments
There's a profit to be made on the funds held while seemingly-instant transactions settle. When you Venmo someone money, you send money to their Venmo account, which has to go through the 1-to-three-day-long ACH process to get to your actual bank account. If money sits in your Venmo account, interest can be accrued on it[0].

Plus, Venmo (and PayPal) has interest in being a trusted brand in financial transactions of other sorts, I'm sure. PayPal has a credit product now, for example. I would not be surprised if they have a rent-seeking lobbying interest in making federal bank transactions remain a worse experience than their own service.

[0]:https://www.marketplace.org/2018/02/20/what-are-apps-venmo-d...

bichiliad··on Brick Block (2016)
This is so simple and so enjoyable.
bichiliad··on Let's use more of Firefox, only YOU can stop Chrome from becoming the next IE
You don't really have much of a guarantee about anything from the client when they make a request. You have to take them at good faith when they report a user-agent to you. Plus, from real-world experimentation, I'm relatively confident that the performance benefits of the solution I mentioned outweigh the cost of supporting browsers that spoof their user agents:

https://news.ycombinator.com/item?id=23662405

bichiliad··on Let's use more of Firefox, only YOU can stop Chrome from becoming the next IE
Sorry for the long post; I'm half writing this for you and half writing this for everyone else who's responded.

I think in our case a lot of our decisions are based on two success criteria:

1. We want our developers to be able to use language features (like Promises, Maps, and Iterators) that make development easier.

2. We need to pick a solution that offers the best performance in the browser. We run an e-commerce marketplace; we pay for every additional byte we send over the wire in our conversion metrics, whether it's in the short term or the long term.

It's not really reasonable for us to only write JavaScript that works for the lowest-common-denominator of our traffic (we still support IE11!) but at the same time, we also can't drop support for them. So, we have to partition our traffic in order to allow modern browsers to skip the polyfills they don't need, while supporting the older browsers that need them. There really isn't a better way to do this than serer-side parsing of the user agent string. Identifying features in the browser means that we have to incur another round-trip, which delays the execution of any of our other JavaScript and hurts usability metrics like Time To Interactive[0]. I have to plug Polyfill.io[1] here; their service is open-source and works extremely well.

And as far as whether this is an anti-pattern or not, it's something that works really well for us. We've implemented both a general polyfill and a user-agent-specific polyfill solution, and there were in fact small performance benefits in the latter, with no cost to conversion.

Plus, whether user-agent parsing is an anti-pattern or not, it's the state of the world. As I've already mentioned above, we don't gain much by avoiding this anti-pattern, so what's our motivation to change our implementation? As a challenge, I'd encourage you (or anyone reading this) to try spoofing your browser's user agent to be IE11. You'd be surprised how little of the internet works, even on sites that claim to support IE11.

[0]:https://web.dev/interactive/ [1]:https://polyfill.io/

bichiliad··on Let's use more of Firefox, only YOU can stop Chrome from becoming the next IE
It looks like using an approach like Modernizr relies on downloading the detection code, running it, and then potentially kicking off additional downloads for polyfills. Or it would mean eagerly downloading polyfills on browsers that don't need them. In the former case, you pay the cost of a second network request, especially in older browsers that don't support HTTP/2, and in the latter case, you send a potentially large number of bytes of polyfill code to clients that don't use them. What makes using a browser's agent string an anti-pattern?
bichiliad··on Let's use more of Firefox, only YOU can stop Chrome from becoming the next IE
They're freezing everything but the significant browser version[0], which would still allow feature detection. Additionally, why do you say it wasn't intended to be used that way? As I recall, it's been used to identify supported features since it's inception; user agent strings for non-dominant browsers often contained the user agent strings of dominant browsers to spoof servers into sending features that they thought only specific browsers could support.

[0]:https://github.com/w3ctag/design-reviews/issues/467

Edit: added citation.

bichiliad··on Let's use more of Firefox, only YOU can stop Chrome from becoming the next IE
Both is a better option; sending polyfills for every browser feature you'd want to use is easily hundreds of kilobytes. We use user agents to identify a feature set, but we send feature detection down alongside the polyfills. Detecting features in the client side and sending a second network request to load polyfills for that features adds pretty significant round-trip time.
bichiliad··on Let's use more of Firefox, only YOU can stop Chrome from becoming the next IE
Please don’t do this! The only way of properly sending your browser code that it needs (like polyfills) is if we can accurately rely on your browser’s name and version string. I can’t tell you how many browsers I see that spoof their user agents and causing us to misidentify their list of implemented features.
bichiliad··on I think I’m done with HN
I think there's a lot more to discuss other than Derek Chauvin's culpability. HN is full of really bright people; I'd love to hear what they think about tech's role in enabling police brutality like this to exist, and what is in our capacity to do to help solve the problem.
bichiliad··on Nissan Figaro – Retro-inspired convertible from Japan [video]
This video is so good! I truly couldn't care less about cars (I live in New York and ride a bicycle) but this video had me hooked.
bichiliad··on Coronavirus researcher shot dead in the US
The fact that this has the word "Coronavirus" in the title feels like an inappropriate attention-grab here. Something truly terrible happened to a post-doc researcher. The title makes it sound like some sort of conspiracy is at play.
bichiliad··on [dead]
What is this newspaper even? How credible is it? The lack of citations makes me pretty skeptical.
bichiliad··on I push, therefore I am: two days at Etsy (2013)
Not strictly, and I'm not sure what's public knowledge and what isn't, but as I understand it the biggest win was being able to scale quickly (especially during the holiday season) without having to put in orders for hardware months in advance. As I understand it, cost wasn't a driving factor in the migration. I think with regards to performance, it's a bit hard; comparing a cloud-native solution to a custom solution running on a VM on a server you manage can be really tough to compare.
bichiliad··on I push, therefore I am: two days at Etsy (2013)
This is fairly old at this point; we were in the process of migrating to the cloud for several years and completed the bulk of the effort recently: https://cloud.google.com/press-releases/2020/0219/etsy-compl...
bichiliad··on Glimpse: A Photo Editor For Everyone
The FAQ's page is more useful than the homepage for now, it seems: https://glimpse-editor.org/about/#why-are-you-forking
bichiliad··on Breathing and Exercise: Strength Training for Your Diaphragm (2018)
That was a really interesting link. It sounds here like hyperventilation, in practice, is dangerous only if you might become oxygen-starved right after (like in diving). A lot of these breathing exercises, like the one in the video above, aren't necessarily dangerous for that reason.
bichiliad··on Cambridge University Press make their books free until May
This is wonderful! Does anyone have any particular recommendations (in any subject)?
bichiliad··on AirPods Pro
I had airpods and returned them because they fell out of my head, and because I couldn't use them on the subway because of all the external noise. I think these may be the thing for me — everything else about the original airpod experience was actually super nice.
bichiliad··on Ask HN: What are you working on?
I'm trying to get back into writing. I wrote a lot as an intern cuz that's what you do when you're an intern in SF, but recently I'm realizing that a lot of stuff I have a lot of first-hand experience is stuff that other engineers even within my own company don't have a ton of knowledge about (for context, I do a lot of frontend performance work).
bichiliad··on Slack – Degraded service affecting multiple features
We used to run an IRC server at work, and it was pretty exclusionary to non-engineers; setting up something that'd log backscroll required maintaining a vm somewhere, searching through history required another service, etc. If all slack does is chat (and video communication by way of an acquisiton), I'm happy letting them be 5 years old. I'd scrutinize a company that: 1. has no fallback mechanism of Slack is mission-critical and goes offline 2. isn't careful about including non-technical stakeholders in communications.

Edit: clarifying that I'm talking about my workplace, not a company I run.

← PreviousPage 7 of 14Next →