HN user

jaffathecake

2,724 karma
Posts69
Comments356
View on HN
jakearchibald.com 23d ago

The Goldilocks customizable <select> height

jaffathecake
2pts0
github.com 2mo ago

Mozilla's opposition to Chrome's Prompt API

jaffathecake
663pts231
jakearchibald.com 9mo ago

Importing vs. Fetching JSON in JavaScript

jaffathecake
5pts0
jakearchibald.com 1y ago

Give footnotes the boot – alternatives to footnotes on the web

jaffathecake
41pts33
jakearchibald.com 1y ago

Animating zooming using CSS: transform order is important sometimes

jaffathecake
2pts0
jakearchibald.com 1y ago

How should the new <selectedoption> element work?

jaffathecake
65pts48
jakearchibald.com 1y ago

Video with Alpha Transparency on the Web

jaffathecake
4pts0
jakearchibald.com 1y ago

JavaScript garbage collection and closures

jaffathecake
138pts69
jakearchibald.com 2y ago

Handling aspect ratio changes in CSS view transitions

jaffathecake
2pts0
jakearchibald.com 3y ago

The case against self-closing tags in HTML

jaffathecake
133pts158
jakearchibald.com 3y ago

The gotchas of unhandled promise rejections in JavaScript

jaffathecake
1pts0
jakearchibald.com 4y ago

Cross-fading DOM elements is impossible in CSS due to a missing feature

jaffathecake
5pts0
jakearchibald.com 4y ago

How to win at CORS

jaffathecake
389pts122
jakearchibald.com 5y ago

JavaScript: `export default thing` is different to `export { thing as default }`

jaffathecake
3pts0
jakearchibald.com 5y ago

Half the size of images by optimising for high density displays

jaffathecake
1pts0
jakearchibald.com 5y ago

In JS functions, the ‘last’ return wins

jaffathecake
102pts75
jakearchibald.com 5y ago

Don't encode POST bodies like GitHub Copilot, use URLSearchParams

jaffathecake
387pts333
jakearchibald.com 5y ago

In JavaScript functions, the last return wins

jaffathecake
6pts0
jakearchibald.com 5y ago

Don't use functions as callbacks unless they're designed for it

jaffathecake
2pts0
www.youtube.com 6y ago

Video: How image compression works, and some more advanced encoder settings

jaffathecake
1pts0
jakearchibald.com 6y ago

DOM event listeners and garbage collection

jaffathecake
1pts0
jakearchibald.com 7y ago

Who has the fastest website in F1? A deep-dive into real-world web performance

jaffathecake
1pts0
jakearchibald.com 7y ago

What happens when packages go bad?

jaffathecake
74pts69
developers.google.com 7y ago

Background Fetch: New service worker feature for handling large upload/downloads

jaffathecake
1pts0
news.ycombinator.com 7y ago

Video: Old JavaScript vs. new. How new APIs and syntax have changed how we code

jaffathecake
1pts0
jakearchibald.com 8y ago

Breaking the origin-model in Edge, using range requests and web audio

jaffathecake
14pts0
jakearchibald.com 8y ago

How symbols are both the most and least unique things in JavaScript

jaffathecake
1pts0
jakearchibald.com 8y ago

Netflix “dropping” React actually reflects well on React

jaffathecake
4pts0
medium.com 8y ago

Apple’s refusal to support Progressive Web Apps is a detriment to the web

jaffathecake
370pts443
jakearchibald.com 9y ago

The browser bugs and edge cases of HTTP/2 push

jaffathecake
117pts20

The user agent is the proper channel for the agency Jake is seeking here. Theres nothing preventing the user & their user agent from negotiating what model they use.

This isn't how it works. As the developer, you use the system prompt to set a particular personality for the chat bot. Eg, when you use an LLM in VSCode, it comes with a system prompt to make it an effective code assistant.

Now, in VSCode, you can select a different model, which is maybe where your misconception comes from. But when you select a different model, it will also use a different system prompt, designed to achieve the same personality, but tailored for that particular model.

Once you figure out why they do that, you'll understand why your position here doesn't make sense.

Thank you for posting this.

On interoperability, time will tell I guess. I've only been working on Firefox for a few months, but general interop issues are way worse than I realised when we worked together at Chrome. Firefox frequently gets bug reports for not behaving like Chrome, even when Firefox is complying with the spec, and Chrome is not. We end up having to just behave like Chrome.

On developer signals… I'm sure there's better evidence of positive sentiment than Chrome provided, but there's a lot of negative sentiment too. I think it would be fair to call the developer signal "mixed", or maybe even "polarised".

Agreed. Maybe Google will propose a CSS text formatting property that cannot be used on paragraphs that are critical of the US administration.

Like, that sounds daft, but it's not really far from what they're doing here.

I think the objection here is unrelated to the love or hate of LLMs. It's about the viability of this particular proposed open web API.

I personally use LLMs for coding assistance, and some home automation stuff, but I do not think this particular API is good for the web.

Aww thanks! To be fair I didn't toe the party line when I was at Google (imo). Although, that caused me increasing amount of grief internally, until I left. From what I hear, things have gotten exponentially worse in that regard for folks still on the team.

The Chrome model requires either "16 GB of RAM or more and 4 CPU cores or more" or "Strictly more than 4 GB of VRAM", and "22 GB of free space" (it uses around 4.4GB but it doesn't want to use the remaining free space).

The model is pretty slow on my M4 Pro mac.

The API allows the browser to use a cloud service instead, but then privacy is lower. So, more privacy for the rich.

I know this isn't quite what you mean, but when you first hit the page, the list is in a random order, but it's then stable across reloads.

I considered the 'vs' approach, but I worried that there might be a lot of iterations where one or two of the options would be things that the person didn't understand, or didn't care about.

How do you feel about something like this: The user goes through the long list, picking what they understand and don't dislike, then the 'vs' system is there for helping determine the order of those items. Then the user gets the ranking which they can tweak.

Author of the app here. This was quickly thrown together, and something we'd like to improve on next year. Any & all feedback is welcome.

We've already been looking at the results, and it has influenced the direction of multiple vendors in the process, but of course it isn't the only thing we look at.

We're going to continue to look at this throughout the process, so it's still worth getting a list together.

Whether we can release the raw results of this (and to what degree), will involve discussion between browser vendors, so it isn't something we can commit to right now. I know that's not… great… but it's a delicate process (one that I'm still personally getting used to - it's my first year 'on the inside').

Browsers don't want to add new ways of running script. That said, I wonder if `<?xml-stylesheet type="text/javascript" href="script.js"?>` could work. It's kinda weird, but `xml-stylesheet` can already run script via XSLT, so it isn't a new way to run script.

I guess you're being downvoted as a general nay-sayer, but you're right. I tried this feature last month and a bunch of browser bugs and design issues got in the way. I reported them, and they're being worked on https://github.com/w3c/csswg-drafts/issues/12466

The `margin:0` issue was particularly frustrating & imo should have been covered in the article, as it's a real gotcha when trying to use popover & anchor positioning in combination.

It's ok, but you're still being taken out of the flow. Especially as the notes appear arbitrarily on the left or right. And yeah, you have to find your place again afterwards. It's way better than scrolling solutions though.

That particular example on mobile falls back to a revealing pattern, which is pretty good.

It still has the problem where it's just a test of your curiosity. You don't really know what the supplementary content covers until you expand it. The link text is just a superscript number which is kinda useless.

This is why I prefer the solutions in the article where the supplementary content has a heading that hints at the content.