8 ms·
Good news they adopted Rust as Tier-1 language. I hope their Weather app stop consuming more than 1GB RAM https://www.notebookcheck.net/Windows-11-s-built-in-We
by meerita 6d ago
Good news they adopted Rust as Tier-1 language. I hope their Weather app stop consuming more than 1GB RAM https://www.notebookcheck.net/Windows-11-s-built-in-Weather-app-wastes-more-than-1-GB-of-RAM.1364205.0.html https://www.notebookcheck.net/Windows-11-s-built-in-Weather-...
- geodel 6d agoBut Tier-1 app consuming Tier-1 RAM seems officially approved.
- pjmlp 6d agoThe problem is the Webview2 prevalence, and note many Rust projects love their webviews as well.
- Verdex 6d agoI feel like the weather app makes a lot of sense from a corporate politics point of view. A 1mb weather app would have a significantly less impressive pie chart associated with it come "here are our improvements" presentation. Also if times get tough and you're told to reduce headcount by 10%, who do you want to get rid of. Sally who knows the USB driver end to end or Todd who wrote the bloated 1gb weather app. (Don't feel bad for Todd, he knew what he was getting himself into.)
- Escapado 6d agoDid Todd just know or did his PO tell him to add telemetry tool number 24 while he was protesting and begged to be allowed to migrate to a newer rendering library but got shot down promptly because "KPI line must go up"? :)
- miroljub 6d ago[flagged]
- ldobre 6d agoAlso, showing the weather is a great excuse to ask permissions for the user location.
- swozey 6d agoI've been doing forest service stuff for a year with almost no signal and often no gps without antenna and it's incredible what asks for location permission to run. My amazon bought LEDs (15+, 3-5 diff types) all check location before I can connect them. I wind up waiting 30 seconds sometimes more to turn lights on. My generator and inverter have to phone home so that lags constantly. Also I've been shadowbanned from a bunch of social media sites and had problems with payment systems, etc because Starlink confuses companies tracking user locations to geoips etc. Won't even get into the apps that look downloaded and usable until you open them with no signal and they don't work before phoning home. I've been meaning to go through ALL my apps and delete everything I don't use, I haven't installed a new app in years. Then you have MacOS now that has the most "wtf" level permission prompts that make you think everything is phoning home or trying to access stuff on your network when it's just connecting bluetooth devices or something daily. I don't know how many games I've installed that now show up as having full screen or keyboard control permissions just to use input devices. I work on this stuff and can deduce what it's doing, especially after googling it, but "Stupidgame needs control of your system" is wild to someone who doesn't, I'm sure. I've been wondering if it's almost nefarious that they want to get people used to allowing these seemingly system wide controls to be given to.. everything, by hiding the security-ok things behind a giant red flag warning. Sorry went on a tangent. I miss specific permissions notifications I can trust. edit: Oh, my "fix" for most of this is fakegps and mocking my android systemwide gps location to whatever, if you go through this.
- nicman23 6d agoi prefer the macos mindset if not the actual OS
- swozey 6d agoI just looked and I think what I'm talking about, where they folded more specific permission callouts under a broad term "Full disk access" "local devices" etc used to be more granular before they updated that UI to match the iphone. If I got a jumpscare permission prompt on macos, I used to actually be concerned. Now they're all jumpscares for basic stuff. But I could be misremembering. I haven't liked any of the recent macos releases. I will begrudgingly install Golden Gate to hopefully fix my m1 max 64gb slowing ot a crawl with Tahoe.
- xyst 6d agoIn this day and age, both Sally and Todd are expendable. Both have been silently training their replacement by feeding the data models. Replaced by LLM and an offshore contractor. CaPiTaLiSm, right?
- villish 6d agoThe list of professions made obsolete is very long. Why should programming be protected if AI in the future can make software better, safer, and cheaper?
- jm4 6d agoNot to mention, they have 1 GB of headroom in their back pocket if/when they need to make Windows more efficient. Quick rewrite of that app or just scrap it and they've saved months of optimization.
- throwaway27448 6d agoI think it's less about pie charts and more that weather apps can be very eyecandy-heavy. This sort of marketing works well for both consumers and board members.
- zahlman 6d ago1GB is space for almost half an hour of 5000kbps ("YouTube Premium") video. Just what kind of eye candy are we talking about here?
- monocasa 6d agoIt's also only 45 frames uncompressed at 4k. It's remarkably easy to hit that if your base assets are mostly raster rather than vector for a dynamic scene. Obviously, they should try harder, and this is an explanation rather than an excuse, but the graphics assets are mostly why.
- zahlman 5d agoWhy would you need that kind of resolution for a weather app? What are you even going to depict with all those pixels?
- monocasa 5d agoBecause people are looking at it on 4k screens.
- zahlman 5d agoI mean, I usually check the weather by putting "weather" into a search engine. And this will show me little SVG icons that take up a tiny fraction of my low-resolution screen and probably involve like less than a kilobyte of path description. And I think this looks perfectly fine and I can hardly even fathom why anyone would want it to be fancier than that. I think that even animating them would make the display actively worse.
- throwaway85825 6d agoBased on windows bloat Sally got fired because she was an old timer and cost to much so all the Sally's are gone and they're all Todd's now and windows is an unstable bloated mess.
- missingcolours 6d agoThe corporate dilemma between "I hired some less competent engineers and they're dragging the team down" and "I hired only highly capable engineers and now I have to give 10% of them bad reviews in stack ranking and later let them go"
- torginus 6d agoI don't think this is a real dilemma - people hell bent on avoiding work can get by without shipping a single line of code for years.
- nikanj 6d agoSally, obviously. Todd is much more likely to have a perfect haircut and immaculate fluency in corpotalk
- isolay 6d agoWhether vibecoded Rust will be better than whatever they are doing now remains to be seen.
- dismalaf 6d agoInstead of leaking memory it'll just clone the whole heap over and over.
- mr_00ff00 6d agoThe question in terms of memory is, will vibe coded rust get around ownership issues by .clone()-ing everything. Maybe this has changed since I wrote Rust, but that was a classic beginner fix. Just throw memory at it.
- bluGill 6d agoThe other things I've seen beginners do is throw unsafe at everything.
- tredre3 6d agoThe things that unsafe enables are arbitrary pointers, FFI, and accessing union members in a C struct. It seems highly unlikely to me that unsafe would fix any beginner's problem. .clone() on the other hand is indeed an easy/quick fix for a lot of issues you'd face when learning rust.
- suddenlybananas 6d agoI think beginner programmers are unlikely to use unsafe when learning rust but people coming from c or c++ who are beginners at rust might use unsafe all over the place.
- bluGill 6d agoExactly - we have been using C or C++ for decades and most of us have a lot of experience. We think like programmers in the languages meaning we often do things that Rust won't allow without unsafe. A small percent of the time that is the right thing (which is why Rust have unsafe), but very often there is a Rust way that is just as performant if only we knew how to think like Rust programmers.
- onlyrealcuzzo 6d agoThat's less because of what it's implemented in - and more to do with all the tracking and libraries they want to reuse... BigCo apps will take up lots of space and memory for BigCo reasons - obviously less if it's in Rust vs Go vs Python, but you could easily write Go apps that use far less memory than Rust apps written at BigCo due to BigCo reasons. It's just not really that much of a priority for them to have their weather app use less than 1GB of memory. It's a far bigger priority for someone to insist that somebody else uses some bloated framework so they can get promoted.
- throwaway894345 6d agoI've been having _a lot of fun_ writing Go apps that don't allocate anything and that use small, preallocated buffers to stream through requests/etc. Basically TigerStyle for Go. I don't use arenas, I just size everything for the worst case (or make the sizes configurable at startup) and still end up using much less memory. This is really only possible because I told Fable to build the underlying allocation-free HTTP, JSON, etc libraries and consequently I'm not building anything serious yet (although the libraries are well-tested using pre-existing corpuses from reputable projects e.g. curl as well as fuzz tested). Most "outputs" are passed as out parameters for the function to fill in, and results are Rust-like enums (a Go tagged union containing only small data). I could also have returned (T, error) but I would have to take care that the thing I pushed into the error argument doesn't allocate--not sure if I made the right decision or not, but for now it feels nice. The worst part is that I don't really have a good way to communicate detailed error information, but that hasn't bitten me yet. This has also been a lot less effort than writing Rust, although Rust would have real checks for lifetimes and im/mutable and enum exhaustiveness and so on--so far I haven't been bitten, and I suspect things like enum exhaustiveness can be addressed via linter if necessary.
- afdbcreid 6d ago> This has also been a lot less effort than writing Rust I have never written such Go, but as an experienced Rust programmer I can tell you Rust is not hard to write after learning it. Learning it can take more time than usual (although there is also contrary evidence, e.g. from Google) but after you're used to it, you're basically as proficient as in other languages, except some glitches (that can be expensive - rewriting your main structure, but are fortunately rare). Considering the effort involved in coding in such unnatural Go variant, I tend to believe it is far easier to code in Rust (including coding in Rust using this style, since it is more suited to it). Of course, if you're just vibe coding everything, maybe it is easier because maybe the LLMs write such Go better that they write Rust. But if you're not, even if you're only reviewing the code, I believe it's easier to review Rust code than to review such Go code (and potentially than reviewing any Go code, but that is a different matter).
- delta_p_delta_x 6d agoCalling the Weather app an 'app' is doing all the Win32, WPF, WinForms and WinUI developers a huge disservice. It is essentially an entire Chromium instance around msn.com/weather.
- MarleTangible 6d agoOutlook, Teams, and other all show up as msedgewebview2.exe, so you also don't know which app is consuming gigs of memory doing nothing.
- pocksuppet 6d agoThat is how apps work in 2016 onwards (the last decade).
- unixhero 6d agoAnd that the calculator does not take 5 seconds to load
- jordand 6d agoIt won't, that 1GB+ belongs to Microsoft's advertisers and their many video ads
- MarleTangible 6d agoReminds me of how they allow OEMs to install bloatware through Windows update now. I believe LG did something that leads to various app installs when you connect their monitors via HDMI.
- nalekberov 6d agoDoes it matter when one embeds web browser into their app?
- pessimizer 6d agoIf they can't do it with infinity budget and infinity AI, they're not going to be able to do it with that plus Rust. Hilarious that the article is like "Apple's weather app is only 200MB!" The day that OS vendors started abandoning native apps was a hilarious day.
- ls-a 6d ago[dead]
- _s_a_m_ 6d agoare they launching for the graphics in the background the whole MS Office and PowerPoint?
- iw2rmb 6d agoI can't comprehend why 250 MB for a weather app on macOS is considered normal.