4 ms·
> It seems we will run out of hardware by March? What happens when an unstoppable force (building everything in Electron because hardware is cheap) meets an im
by jsheard 8mo ago
> It seems we will run out of hardware by March?
What happens when an unstoppable force (building everything in Electron because hardware is cheap) meets an immovable object (oh no hardware is expensive now)?
- ieie3366 8mo ago[dead]
- Betelbuddy 8mo ago2026 will be the year of Rust...
- NoiseBert69 8mo agoDue to lack of memory leaks which will stop increasing RAM prices?
- Betelbuddy 8mo agoThe efficiency... https://users.rust-lang.org/t/energy-consumption-in-programming-languages/95625 https://users.rust-lang.org/t/energy-consumption-in-programm...
- xnorswap 8mo agoI see that's from almost 10 years ago, it would be interesting to see how that's changed with improvements to V8, python and C# since. Also, Typescript 5 times worse than Javascript? That doesn't really make sense, since they share the same runtime.
- embedding-shape 8mo agoWhy is that so unbelievable? TypeScript isn't JavaScript, and while they have the same runtime, compiled TypeScript often don't look like how you'd solve the same problem in vanilla JS, where you'd leverage the dynamic typing rather than trying to work around it. See this example as one demonstration: https://www.typescriptlang.org/play/?q=8#example/enums https://www.typescriptlang.org/play/?q=8#example/enums The TS code looks very different from the JS code (which obviously is the point), but given that, not hard to imagine they have different runtime characteristics, especially for people who don't understand the inside and outs of JavaScript itself, and have only learned TypeScript.
- xnorswap 8mo agoEnums are one of only a few places where there is significant deviation, I don't believe that makes it 400% less efficient.
- embedding-shape 8mo agoMaybe read the paper and see if you can figure out their reasoning/motivation :) https://dl.acm.org/doi/10.1145/3136014.3136031 https://dl.acm.org/doi/10.1145/3136014.3136031 One thing to consider, is that with JavaScript you put it in a .js file, point a HTML page at it, and that's it. TypeScript uses a ton more than that, which would impact the amount of energy usage too, not to mention everything running the package registries and what not. Not sure if this is why the difference is bigger, as I haven't read the paper myself :) But if you do, please do share what you find out about their methodology.
- Zababa 8mo agoThis image comes from running the different versions of the benchmark games programs. Some of the difference between languages may actually be just algorithmic differences, and also those programs are in general not representative of most of the software that runs.
- gck1 8mo agoThat, and also because rust compiler is a very good guardrail & feedback mechanism for AI. I made 3 little tools that I use for myself without knowing how to write a single rust line myself.
- Imustaskforhelp 8mo agoI can see that a reality but I am more comfortable using Golang as the language compared to rust given its fast compile times and I have found it to be much more easier to create no-dependices/fewer-dependencies project plus even though I wouldn't consider myself a master in golang, maybe mediocre, I feel much easier playing with golang than rust. The resource consumption b/w rust and golang would be pretty minimal to figure out actually for most use cases imho.
- nicoburns 8mo agoBecause it's more memory efficient than most other languages. So you can achieve the same result with lower RAM requirements.
- throwaw12 8mo agoconsumer RAM is not what's creating shortage. Data centers doesn't run electron to train the model or for inference
- malfist 8mo agoSure, consumer ram isn't causing a shortage, but it's affected by the shortage.
- bayindirh 8mo agoEvery RAM producer is stopping their consumer grade RAM production to provide ECC-RAM and VRAM now. Micron discontinued and closed down Crucial brand as a whole. So, getting systems with higher RAM capacity is getting harder (from laptops to smartphones). So, for a couple of years, we need to stop using Electron so much and use what we have efficiently. Data centers, esp. AI hyperscalers do not care about efficiency for now, because they can suffocate consumer-grade part of the hardware marketplace and get anything and everything they want. When their bubble pops, or the whole capacity ends, they need to learn to be efficient, too. For reference, a well-optimized cluster runs at ~90% efficiency even though they have thousands of users. AI hyperscalers are not there. Maybe 60% efficient, at most. They waste a lot of resources to keep their momentum.
- spockz 8mo agoI have a silent hope that because of this change we all will get ECC ram and that consumer CPUs will get proper support for them.
- fullstop 8mo agoI guess we have to get creative again.
- interleave 8mo agoI actually think you're right here. Resource constraints have often helped me come up with stuff that I'm actually proud of.
- fullstop 8mo agoAbsolutely. It's why I find working on a microcontroller with 1KB of memory so much more rewarding than, say, a Raspberry Pi.
- pjmlp 8mo agoWe go back to the demoscene days, being creative with what we have instead of shipping Electron junk.
- nozzlegear 8mo agoInshallah
- spiderfarmer 8mo agoIf the FSM wills
- UltraSane 8mo agoStop using Electron to save massive amounts of RAM.
- andix 8mo agoMaybe we need to let go of our auto-scaled 100 pod service mesh for a todo list app, and just deploy it bare metal on 2 servers.
- fireant 8mo agoYou joke, but I remember seeing a talk by Wunderlist CTO who has pretty much that. Also polyglot company and microservices in random languages. Can't find the talk now, but https://www.infoq.com/news/2014/11/gotober-wunderlist-microservices/ https://www.infoq.com/news/2014/11/gotober-wunderlist-micros... mentions 60 services at least.
- andix 8mo agoI need to get more ideas for my side project. A todo list app with micro services, but everything in bash scripts. So far it's just 6 services. https://github.com/andi0b/vibe-todo https://github.com/andi0b/vibe-todo
- lima 8mo agoEverything gets more expensive?