Era of Bloated Software Is Over
You might ask why ?
Let me give you a simple example:
Say a developer is creating a button that increases in width by 3% on hover, with smooth transition. Right now, most designers/UI devs would just slap on framer-motion without thinking, which increases the load and build time of that component. But it could be done using just default Tailwind classes.
Now in the case of AI platforms if they have the option to use motion vs raw Tailwind classes, they will (or should) take the Tailwind route. Why? Because these AI companies rent a lot of GPU to render the UI, and using framer-motion will costs more than just using plain Tailwind bcs more build time equal to more money spent on gpu.
And the positive side effect of this?
We’ll start seeing more optimized code. And since a lot of devs are lazy (let’s be real), they’ll directly paste whatever they get from the platform. So that’s a good side effect.
10 comments
[ 4.4 ms ] story [ 37.6 ms ] threadWhat AI company is rendering websites for me on their GPUs?
> We’ll start seeing more optimized code.
No. We'll see more AI-generated code. AI-generated code is derived from human generated code. Most human generated code is slow (see: your own title).
If so, there will be a zillion slightly different ways to do foo in the code base. I don’t see how that would decrease bloat.
Asking the LLM to reduce code duplication might help a bit, but (call me a pessimist) I think it will introduce subtle bugs, too.
Now, think about a new developer who has just started coding. Let’s say they build a side project called Top Million Developers, where the app fetches data from an API and renders a Table with simple pagination on client side. They launch it on Twitter, it goes viral, and suddenly they are getting thousands of page views. Very quickly, they wll notice their site is slow or even unusable because they didn’t know that rendering a large table in React is not that straightforward. They should have used virtualization to handle it efficiently.
In today’s world, though, the same developer doesn’t need to figure this out manually. Instead, they could simply ask an LLM to generate the code, and it would most likely return an optimized version with proper virtualization and pagination built in.
That is what I mean when I say LLMs can already output optimized code not perfect but quite a optimized code by default in context if UI.