3/13/2026 at 10:05:02 AM
Yeah, it makes you wonder how much computing power the industry has wasted over the years on tools that nobody questioned because "that's just how long builds take." We planned our work around it, joked about creating breaks, and built entire caching layers to work around it.Kudos to the Vite maintainers!
by raydenvm
3/13/2026 at 1:58:03 PM
The waste of slow JS bundles is nothing compared to the cost of bloated interpreted runtimes or inefficient abstractions. Most production software is multiple orders of magnitude slower than it needs to be. Just look at all the electron apps that use multiple GB of ram doing nothing and are laggier than similar software written 40 years ago despite having access to an incredibly luxurious amount of resources from any sane historical perspective.by semiquaver
3/13/2026 at 2:28:40 PM
Something I realized while doing more political campaign work is how inefficient most self hosted solutions are. Things like plausible or umami (analytics) require at least 2 gigs of ram, postiz (scheduled social media planner) requires 2 gigs of ram, etc.It all slowly adds up where you think a simple $10 VPS with 2 gigs of ram is enough but it's not, especially if you want a team of 10-30ish to work sporadically within the same box.
There can be a lot of major wins by rewriting these programs in more efficient languages like Go or Rust. It would make self hosting more maintainable and break away from the consulting class that often has worse solutions at way higher prices (for an example, one consulting group sells software similar to postiz but for $2k/month).
by shimman
3/13/2026 at 4:48:42 PM
So you have free software that requires 2 GB of RAM and the alternative is $2k per month and you're complaining that the free solution is inefficient? Really?Why do you expect to be able to replace a 2k/month solution with a $10/month VPS?
by ahtihn
3/13/2026 at 5:15:09 PM
Because the fundamental task many of these programs are doing is neither complicated nor resource intensive.In the age of cheap custom software solutions everyone should at least try to make something themselves that's fit for purpose. It doesn't take much to be a dangerous professional these days, and certainly more than ever before can a dangerous professional be truly dangerous.
by xyzzy_plugh
3/13/2026 at 7:34:44 PM
Thank you, I get so confused when people think a $5/vps shouldn't be able to do much. We're talking about 99% of small business that might have 5 concurrent users max.2 gigs of ram should be considered overkill to cover every single business case for a variety of tools (analytics, mailer/newsletter, CRM, socials, e-commerce).
by shimman
3/13/2026 at 5:43:28 PM
Your criticism contradicts itself.He's saying that the software seems free, but is so inefficient that it bloats other costs to run it. And he never said he wanted to replace $2K/month with $10/month.
by MoonWalk
3/13/2026 at 7:26:21 PM
I'm not saying it's so bad I don't recommend it, quite the opposite; but these things can be written in more performant languages. There's no reason why a cron job scheduler requires 500 mb of ram in idle. Same for the analytics. That is just a waste of resources.Software can be drastically way less resource intensive, there is no excuse outside of wanting to exacerbate the climate crises.
This period of our history in the profession will be seen as a tremendous waste of resources and effort.
by shimman
3/14/2026 at 3:31:08 PM
Dude you're complaining about the efficiency of free software.Go write the software yourself, no one owes you anything.
Maybe if you had to actually write it yourself, you'd quickly figure out why people prefer "inefficient" languages for these things.
A cron job scheduler does not in fact require 500 MB of memory. You're just being disingenous, that software is doing a lot more than just that.
by ahtihn
3/14/2026 at 5:04:11 PM
I am writing software myself and your attitude is just weird. We should always strive for better more efficient software, the climate crisis is a real thing and our industry has done an excellent job exacerbating it with more inefficient tools, libraries, and languages.People prefer JS because all they know is JS, it's that simple. Please tell me why you think devs choose JS, I'm legitimately curious but your attitude of constant dismissal and disparagement makes it seem you just want to beat people down and not engage.
by shimman
3/15/2026 at 2:04:38 PM
People choose JS because it’s the only first class browser language. Why they choose it on the backend I honestly couldn't tell you.by semiquaver
3/13/2026 at 7:30:26 PM
Dude, the $2k solution is not only worse than postiz they charge an additional thousand for each channel.It's just garbage software, I brought it up as an example IDK why. Commentators here like knowing snippets about other industries in the profession, I know I do at least.
But to answer your Q, yes I do expect a cron job schedule, analytics, and a CRM not to require 8 gig of ram in order to not barf on itself too hard.
These things are incredibly resource intensive for their actual jobs. The software is incredibly wasteful.
A $5/vps should be enough to host every suite of software a small business needs. To think otherwise is extremely out of touch. We're talking about 3 concurrent users max here, software should not be buckling under such a light load.
by shimman
3/14/2026 at 3:34:09 PM
> A $5/vps should be enough to host every suite of software a small business needsWhere is this weird expectation coming from?
Why should that be the case?
by ahtihn
3/14/2026 at 5:00:38 PM
The expectation is that these aren't complicated tools, they should not command that many resources. Why do you think a $5/vps with half a gig of ram can't handle basic CRON/background jobs or management software? 512 mb of ram can do so much if you choose the appropriate tools but if you start with a weak foundation that requires 512 mb of ram to just stay idle it hurts a class of users that could benefit from this software.These things aren't complicated, but when you choose NodeJS/Javascript they become way more complicated than expected. I say this as someone who has ever worked professionally with JS and nothing else for a 15 year long career.
Writing software that can only be used by the affluent is not the direction I want our industry to go in.
by shimman
3/13/2026 at 2:36:20 PM
I guess there's the distinction between capacity that could be taken up by other things, and free capacity that doesn't necessarily cost anything.For a server built in the cloud those cycles could actually be taken up by other things, freeing the system and bringing costs down.
For a client computer running electron, as long as the user doesn't have so many electro apps open that their computer slows down noticeably, that inefficency might not matter that much.
Another aspect is that the devices get cheaper and faster so today's slow electron app might run fine on a system that is a few years away, and that capacity was never going to be taken up by anything else on the end user's device.
by awongh
3/13/2026 at 4:24:20 PM
It’s more likely that Electron app uses poor code and have supply chain issue (npm,…). Also loading a whole web engine in memory is not cheap. The space could have been used to cache files, but it’s not, which is inneficient especially when laptops’ uptime is generally higher.by skydhash
3/13/2026 at 8:28:04 PM
Don't forget the human time wasted by an app being slow and laggy.by patmorgan23
3/13/2026 at 5:46:23 PM
> Most production software is multiple orders of magnitude slower than it needs to be.at least 100x slower than it needs to be?
by jjtheblunt
3/13/2026 at 6:23:59 PM
Easily. Lots of things can take 3ms that actually take 300ms. Happens all the time.by eudamoniac
3/13/2026 at 10:26:07 PM
what's an example?by jjtheblunt
3/14/2026 at 12:01:55 AM
A poorly written SQL query, an algorithm on large data sets using suboptimal bigO, the Home Depot or Lowe's website search bars, etcby eudamoniac
3/14/2026 at 2:50:22 AM
good examples, i agreeby jjtheblunt
3/13/2026 at 4:51:05 PM
Why are electron apps memory intensive compared to other cross platform frameworks. Is it language, UI system or legacy?by blackoil
3/13/2026 at 5:53:46 PM
Electron apps tend to use a lot of memory because the framework favors developer productivity and portability over runtime efficiency.- Every Electron app ships with its own copy of Chromium (for rendering the UI) and Node.js (for system APIs). So even simple apps start with a fairly large memory footprint. It also means that electron essentially ships 2 instances of v8 engine (JIT-compiler used in Chromium and NodeJS), which just goes to show how bloated it is.
- Electron renders the UI using HTML, CSS, and JavaScript. That means the app needs a DOM tree, CSS layout engine, and the browser rendering pipeline. Native frameworks use OS widgets, which are usually lighter and use less memory.
- Lastly the problem is the modern web dev ecosystem itself; it is not just Electron that prioritises developer experience over everything else. UI frameworks like React or Vue use things like a Virtual DOM to track UI changes. This helps developers build complex UIs faster, but it adds extra memory and runtime overhead compared to simpler approaches. And obviously don't get me started on npm and node_modules.
by gamefamecame
3/13/2026 at 5:46:05 PM
Loading a browser context isn't helping.by PacificSpecific
3/13/2026 at 5:08:51 PM
Imagine the amount of useful apps that would not have been made without Electron.by spiderfarmer
3/13/2026 at 8:40:49 PM
> Yeah, it makes you wonder how much computing power the industry has wasted over the years on tools that nobody questioned because "that's just how long builds take."I feel the same way about tools like ESLint and Prettier as well after discovering Oxc https://oxc.rs/
by KronisLV
3/13/2026 at 11:43:54 AM
I wonder what will be the parallel hindsight about waste, but for matrix multiplications, in a few years.by Zopieux
3/13/2026 at 11:47:55 AM
By then I understand that matrix multiplication will have cured cancer and invented unlimited free energy, so no hindsight of waste needed.by _heimdall
3/13/2026 at 1:25:14 PM
Cure cancer? It doesn't have to cure cancer for it to make billions.All it has to do is put price pressure on your salary. (And it is already doing that.)
by echelon
3/13/2026 at 3:40:07 PM
The economic incentives line up much better there. You charge for tokens -> cost is GPUs -> you work very hard to keep GPUs utilized 100% and get max tokens out of those cycles.Compare this to essentially any modern business app, the product being sold has very little relationship with CPU cycles, or the CPU cycles are SO cheap relative to what you're getting paid, no one cares to optimize.
by xxpor
3/13/2026 at 11:32:58 AM
Build performance has been a pet topic for me for quite some time when I realized I was wasting so much times waiting for stuff to build 14 years ago. The problem is especially endemic in the Java world. But also in the backend world in general. I've seen people do integration tests where 99% of the time is spend creating and recreating the same database over and over again (some shitty ruby project more than a decade ago). That took something like 10 minutes.With Kotlin/Spring Boot, compilation is annoyingly slow. That's what you get with modern languages and rich syntax. Apparently the Rust compiler isn't a speed daemon either. But tests are something that's under your control. Unit tests should be done in seconds/milliseconds. Integration tests are where you can make huge gains if you are a bit smart.
Most integration tests are not thread safe and make assumptions about running against an empty database. Which if you think about it, is exactly how no user except your first user will ever use your system.
The fix for this is 1) allow no cleanup between tests 2) randomize data so there are no test collisions between tests and 3) use multiple threads/processes to run your tests to 1 database that is provisioned before the tests and deleted after all tests.
I have a fast mac book pro that runs our hundreds of spring integration tests (proper end to end API tests with redis, db, elasticsearch and no fakes/stubs) in under 40 seconds. It kind of doubles as a robustness and performance test. It's fast enough that I have codex just trigger that on principle after every change it makes.
There's a bit more to it of course (e.g. polling rather than sleeping for assertions, using timeouts on things that are eventually happening, etc.). But once you have set this up once, you'll never want to deal with sequentially running integration tests again. Having to run those over and over again just sucks the joy out of life.
And with agentic coding tools having fast feedback loops is more critical than ever.
by jillesvangurp
3/13/2026 at 1:36:07 PM
> I've seen people do integration tests where 99% of the time is spend creating and recreating the same database over and over again (some shitty ruby project more than a decade ago). That took something like 10 minutes.For anyone that doesn't know: With sqlite you can serialize the db to a buffer and create a "new" db from that buffer with just `new Datebase()`. Just run the migrations once on test initialization, serialize that migrated db and reuse it instantly for each test for amazing test isolation.
by Sammi
3/13/2026 at 4:50:59 PM
Assuming you use sqlite in prod or are willing to take the L if some minor db difference breaks prod...This method is actually super popular in the PHP world, but people get themselves into trouble if they tidy up all the footguns that stock sqlite leaves behind for you (strict types being a big one).
Also, when you get a certain size of database, certain operations can become hideously slow (and that can change depending on the engine as well) but if you're running a totally different database for your test suite, it's one more thing that is different.
I do recognize that these are niche problems for healthy companies that can afford to solve them, so ymmv.
by yurishimo
3/14/2026 at 10:32:51 AM
We've had this exact same issue (clean db for every test) - the way we solved it was with ZFS snapshots - just snapshot a directory of our data (databases, static assets, etc) - and the OS will automatically create a copy-on-write replica that can be written to, and the modification can be just thrown away (or preserved).Once you've created a zfs snapshot, everything else is basically instant and costs very little perf.
by torginus
3/13/2026 at 3:30:17 PM
> Most integration tests are not thread safe and make assumptions about running against an empty database. Which if you think about it, is exactly how no user except your first user will ever use your system.Yea, cypress has this in their anti-patterns:
https://docs.cypress.io/app/core-concepts/best-practices#Usi...
Dangling state is useful for debugging when the test fails, you don't want to clean that up.
This has been super useful practice in my experience. I really like to be able to run tests regardless of my application state. It's faster and over time it helps you hit and fixup various issues that you only encounter after you fill the database with enough data.
by panstromek
3/16/2026 at 1:55:57 AM
>With Kotlin/Spring Boot, compilation is annoyingly slow. That's what you get with modern languages and rich syntax.This is because the kotlin compiler is not written in the way people write fast compilers. It has almost no backend to speak of (if you are targeting the jvm), and yet it can be slower at compilation than gcc and clang when optimizing.
Modern fast compilers follow a sort of emerging pattern where AST nodes are identified by integers, and stored in a standard traversal order in a flat array. This makes extremely efficient use of cache when performing repeated operations on the AST. The Carbon, Zig, and Jai compiler frontends are all written this way. The kotlin compiler is written in a more object oriented and functional style that involves a lot more pointer chasing and far less data-dense structures.
Then, if run on a non-graal environment, you also have to pay for the interpreter and JIT warmup, which for short-lived tasks represents nontrivial overhead.
But unlike header inclusion or templates, which are language level features that have major effects on compilation time, I don't think kotlin the language is inherently slow to compile.
by charleslmunger
3/13/2026 at 2:09:27 PM
Kotlin compiles fast; I don't have any problems with ktor. Spring Boot and Rust do not.by esafak
3/14/2026 at 9:55:08 AM
No worries, projects will soon catch up by throwing more code at the build system.by flohofwoe
3/13/2026 at 5:12:48 PM
[dead]by gtsop