News for hackers. Stuff that matters.

wyuenho

Re:HTTP Caching, a Refresher on Wednesday December 24, 2025 @09:43AM (#46375979)
HN is full of noobs loudly proclaiming what they don't know is true these days. Ubiquitous HTTPS does not change the nature of private browser caches, and only nullify the proxy related cache headers if the origin encrypts traffic all the way to the client, which is quite rare in real life, unless we are merely talking about a dude serving this blog from his basement computer.

In general, your answer depends on where the TLS cert terminates. In most situation a CDN or a reverse proxy is involved, and the TLC cert you use to encrypt traffic from the origin to the proxy is different from the one the proxy uses to encrypt traffic from it to the browser. Whenever a MITM intermediary is involved, you should read the intermediary's documentation. These usually include Cloudflare, AWS Cloudfront, Akamai etc. With with exceptions, like the Vary header as pointed out elsewhere, these vendors largely follow HTTP caching semantics for proxy caches.

Re:Claude Code IDE Integration for Emacs on Wednesday August 06, 2025 @10:53PM (#44820086)
Oh you mean something like active file awareness and selection context? This code seems quite well architected and has websockets well integrated, both features sound like a lunch break’s worth of work if you file a ticket. Other than that, I couldn’t care less about how these capabilities are implemented or whether /ide works.
Re:Claude Code IDE Integration for Emacs on Wednesday August 06, 2025 @02:42PM (#44815954)
It absolutely does. Give it a try.
Re:Claude Code IDE Integration for Emacs on Wednesday August 06, 2025 @12:00PM (#44813779)
While I'm happy that simultaneously there are at least 5 known Emacs/Claude Code integration packages, with seemingly 2 or 3 battling it out on Reddit and elsewhere, I feel like the best implemented one is the quiet one that no one has ever talked about.

https://github.com/yuya373/claude-code-emacs <- it literally implements every feature that every other ones have.

The UK has a petition website. It logs the signatory by constituency. Once a threshold os signatory has cross, the government has to respond and parliament will have to consider a debate on the topic.
Re:It's time for modern CSS to kill the SPA on Friday July 25, 2025 @08:37PM (#44690219)
I swear if I see another "SEO" guy or some rando web dev who joined the workforce after Covid complaining about SPAs by misrepresenting it, I'm gonna explode.

As someone who's been developing web apps since the 2000s, let me tell you the origin of SPA has few things to do with the "false promise of SPAs" he listed, but largely due to companies in the late 2000/early 2010s wanting to go "mobile first". This usually meant they still had a desktop second somewhere, which implied they were architecting the entire system to completely separate the frontends and the backend.

Before, what web devs meant by frontend was essentially server-side rendered HTML templates with perhaps a little bit of jQuery running on the client-side. Now, since mobile and desktop web apps are to share some business logic and the database somehow, people had to rediscover REST by reading Roy Fielding's Phd dissertation that inspired the original HTTP. This meant now every company was moving to service-oriented architecture and started exposing their backend APIs onto the open internet so their mobile apps and SPAs running in the browser can share the same APIs. This was a cost saving measure.

This period also coincided with the steady decline of full-stack webapp frameworks like Ruby on Rails and Django because for a couple of years, these frameworks had no good ways to support an API only applications. Django hadn't even reached 1.0 back then. This was a time when NodeJS was really starting to pick up momentum. Once people had started being more comfortable with JS on the server-side, lots of people suddenly realized they could push a lot of business logic to increasing powerful desktop browsers and phones, application hosts people now call "edge devices".

This is the true impetus of SPA. How is CSS going to kill this need?

Most developers weren’t deploying simple stateless functions. They were building full-stack apps: apps that talk to a database, that almost always is located in a single region.

I wonder if this is true in general for most people on serverless these days. If so, whether this is what the original intention of this movement and whether these people just don't want to deal with docker/k8s.

Re:Why pipes sometimes get "stuck": buffering on Friday November 29, 2024 @08:32PM (#42278685)
An equally important but opposite problem with pipes getting stuck is pipes getting broken because some commands at the front of the pipe expects buffering down the pipe. Some years ago I was scratching my head trying to figure out why

  curl ... | grep -q
was giving me a "Failed write body error". I knew "grep -q" would close stdin and exit as soon as a match is found, and therefore I needed a buffer in front of grep but I was on a Mac, which to this day still doesn't come with "sponge" (or stdbuf and unbuffer for that matter), so I had to find a cross-platform command that does a little buffering but not too much, and could handle stdout being closed. So I settled on:

  curl ... | uniq | grep -q
To this day people are still confused why there's not a "sort" in front of uniq and the comment about this cross-platform buffer thing I put in the script.
iPhone since 12 has not used the Intel modem, and while newer iPhones supports Beidou, it’s not clear which chip supports it and whether it is used outside of China, or even iPhones sold outside of China has support for Beidou. Even if it does, its civilian frequency only has a 10 meter accuracy outside of APAC, so it’s not clear to me it is used globally in the sense that GPS is.

Also, Loongson and OpenATOM lol. Are they industry standards?

Let me know when you have an example of an open source Chinese industry standard, essentially subsidized by the Chinese government. The only example I can think of is Beidou, which nobody uses.
And the Chinese says thank you Uncle Sam for giving us RISC-V for free.
What happened to the level playing field? China doesn't invest and open source anything, why should the US subsidize their technological advancement?
Re:50 years later, is Two-Phase Locking the best we can do? on Saturday September 30, 2023 @08:33AM (#37714832)
[delayed]
Re:Show HN: Advanced Tab Manager for Firefox on Tuesday August 29, 2023 @08:39AM (#37306863)
[delayed]
Re:Bun v0.8.0 on Thursday August 24, 2023 @08:47AM (#37248146)
Is that still the case tho? Recent Deno releases have obscured how well it's Node compatibility mode is, I was just wondering if you have more details.
Re:Why KPIs are destroying businesses on Tuesday August 22, 2023 @09:14AM (#37222236)
There is this thing called stretch goals in OKR that is supposed to be really hard to achieve. So if you meet all 100%, you either don’t have these stretch goals or the team is lying.

Now of course, whether OKR works depends on culture as well. Sometimes, asking people to stretch amounts to asking them to work harder, so naturally the system will be gamed in that context.

Re:Why KPIs are destroying businesses on Tuesday August 22, 2023 @09:08AM (#37222174)
It’s even funnier when it’s apparent that company isn’t really doing OKR. First of all, the Os are supposed to be somewhat resistant to change in direction. Second of all, you shouldn’t be doing KPI on top of OKR. If you set the OKRs right, you’ll set stretch goals so ambitious, even if you game the completion percentage, the simple answer to whether you are doing the right things or performing should still be immediately answerable.
Re:Why KPIs are destroying businesses on Tuesday August 22, 2023 @08:27AM (#37221694)
It appears to me this is another case of the slow evolution of European businesses and management practices.

There exists a practice called OKR. Intel has been using it since the early 70s, Google since year 2, and pretty much everyone in SV has switched over since around the time that John Doerr book came out. It’s designed to solve exactly all the problems of KPI. You shouldn’t spend much time figuring out what to measure and whether you are measuring the right thing or how to put what you measured into context. You should be defining simple objectives and key results what will give you a binary answer at regular intervals. Practicing KPI solely is putting the cart in front of the horse. You should know your objectives and milestones before you figure out how to measure them.

"low" after some 20 years or so of decay. But yes, you are correct.
Re:ChatGPT broke the EU plan to regulate AI on Monday March 06, 2023 @09:19AM (#35041283)
I’m pretty sure your contact in a major company will be even more shocked if they knew what all these European FinTech companies do with their customer’s data.

All the important things such as purchasing habit that used to require indirect guesses are now directly available in their databases as essential functions.

Re:The 'Buy Now, Pay Later' Bubble Is About to Burst on Sunday January 15, 2023 @06:26AM (#34388616)
> 800 you put in at the beginning, 50 you have to chip in at the end, you just paid 850 for that mixer.

Honestly, if in 2 years you still haven't managed to save > $800 worth of your time with the stand mixer, you probably shouldn't focus on that $50 of depreciation.

Re:The 'Buy Now, Pay Later' Bubble Is About to Burst on Saturday January 14, 2023 @01:55PM (#34382879)
The amount of what you owe is fixed at the time of a 0% interest BNPL purchase, just like a real purchase. Even if the interest rate is not 0, it’s still fixed.

It’s not a margin account where you have to call it if the value dips too low over time.

What in such simple concept is so hard for you to understand?

Re:The 'Buy Now, Pay Later' Bubble Is About to Burst on Saturday January 14, 2023 @04:08AM (#34378660)
If you parked the money and it lost value, it doesn't matter, because that's only relative to everything other than the stand mixer you bought. The price of the stand mixer is fixed at the time of purchase, it doesn't go up as time goes by.
Re:The YAML Document from Hell on Saturday January 14, 2023 @02:01AM (#34377961)
We are talking about a configuration language here, which is never about markups. Also, most of the so-called whitespace problem in Ansible or k8 configs comes from embedding config that's not YAML. In these cases you need a path or URI for the processor to resolve before applying, not inverting the entire configuration language to cater to 1 uncommon use case.
Re:The 'Buy Now, Pay Later' Bubble Is About to Burst on Friday January 13, 2023 @01:00PM (#34371395)
So you buy a stand mixer, make a bunch of dough, bake some bread and sell them. Plenty of ways to offset the cost. The how is not important, the important thing is you can. The worst it can happen is you have to pay exactly the labeled price some 3 months later.
Re:The YAML Document from Hell on Friday January 13, 2023 @10:48AM (#34369372)
All you need is some sort of Python’s raw string or triple quote or HEREDOC. What’s so hard about that?
Re:The 'Buy Now, Pay Later' Bubble Is About to Burst on Friday January 13, 2023 @10:20AM (#34368915)
Just because you are financing, doesn’t mean you are buying things with money you don’t have, only financially illiterate people of a particularly dim nature would say that.

There are plenty of reasons to delay paying for things as much as possible, especially if the financing has zero cost. Say you bought a new £800 stand mixer on Black Friday. Splitting the costs in 3 allows you to deploy the funds elsewhere, such as investing in an index fund, buying bonds or put into a CD account or anything productive to offset some of the cost or if you are lucky, cover it. A dollar today is not the same as a dollar tomorrow.

Another common reason for that is to stretch your credit limit without affecting your credit score. Say your credit card has a £30k credit limit. There is an expensive 4-5 figure gift you want to buy for your girlfriend for Christmas or take an expensive holiday to some exotic location. You can afford it, but it’s going to cost a few months’ salary and a dip in your credit score. You can pay for your purchase with BNPL without leaving you nothing at the end of the next few months and have no impact on your credit score.

BNPL is a great financial buffer for everyone, as long as you have some baseline discipline to pay off what you owe.

Re:The YAML Document from Hell on Friday January 13, 2023 @04:23AM (#34365597)
I consider this a fallacy. The condition you are given is not a common occurence. In the event they do occur, the solution can be found in your editor or viewer. It does not make sense to inject spurious junk into what is designed as a data interchange format, in which includes network information interchange.

There's probably a name for this kind of fallacy that exaggerate the effect of a problem and the resulting contortions that were engineered around it.

Re:The YAML Document from Hell on Thursday January 12, 2023 @11:30AM (#34356069)
XML is a mistake. 80% of every XML document is just redundant noise because the IBM lawyer who invented the SGML syntax had never heard of S-expression.

Older »