logoalt Hacker News

godwinson__4-8 • today at 7:28 PM • 2 replies • view on HN

Ads are just one particular case of the problem.

Sites everywhere are fat with JavaScript doing all sorts of unnecessary things. Why trust anyone's JavaScript at all?

Everything should be API first and ship with a JavaScript less default. Your local AI agent who you engineer your trust model around builds any desired runtime scripting for you at runtime, dynamically the first time and iteratively tuned to you thereafter. For many sites you won't care and will accept defaults or a buddy's template.

We need legislation to enforce API only access to any public website. Any public frontend must be rebuildable with data from a public API.

The problem with AI is the incentives of people shoving JavaScript in your face (or useless exposition when trying to divine a Thanksgiving recipe vs the ease of AI mode, for instance) undermine the promise of the entire AI technology - every frontend for every person can be entirely unique and yet entirely coherent. No gatekeepers. Instead of ads send a microtransaction if need be to every API, or the government can subsidize.

Focusing on ads is missing the point. The real issue is your client running scripts you did not explicitly ask or delegate it to. The entire Internet is adversarial in this way, not because of ads but because people expect access and no one wants to pay for anything. People who block ads simply contribute to this problem, they don't offer a solution.

AI offers a way out. AI belongs to all of us given its broad corpus. Let it be the client and leave government or some regulated utility as little more than the clearing house.


Replies

hathawsh • today at 7:50 PM

You find AI more trustworthy than JS? JS isn't perfect, but at least it's deterministic.

➕ show 2 replies
radlad • today at 7:49 PM

Not sure I understand the connection between Javascript, AI and APIs. I've found Javascript SPAs often have the best APIs.