I had Claude cost me ~$130 in a day because of how it structured a blog post I wrote that was on the front page of HN. I wrote about what happened here: https://www.josh.ing/blog/vibes-tax
Author of the article here. Appreciate your sentiment here, but my goal wasn’t trying to make a hit song or shortcut the obvious very significant time and effort that goes into creating any sort of art. It was meant as a fun experiment to try to highlight a feeling that we’re barely scratching the surface of the breadth of things that agentic coding may be able to tackle. I’ve been learning guitar and taking painting classes in my free time, but it’s not my profession nor something I was encouraged to do when I was young. Thanks for the comment, it’s helpful to see ways I can improve my writing style
Hm, not sure I totally understand what you mean, but I shared some examples of when it's been helpful. My favorite is using it as a continuous cleanup tool for dead code. You wouldn't necessarily want that to just run all the time, but it's nice in a nightly cadence
AI is a bubble; well, the stock market as a whole is, being led by an AI boom. At the end of a bubble (and it's not clear if we're there yet) markets find ways to self-finance. A crash means not just that the value is lower, but that the leveraged bets are now due, and those have to be paid by selling more.
When it crashes (and it's not clear when that will be), it will crash back to a cash-value baseline. And, sigh, it's not clear where that is. But it won't magically start going back up. The cyclic reinvestment engine needs to be reinvented every time.
> There's over 20k files in the app, 17k of which are under 4 kB. In iOS, the minimum file size allocation is 4 kB, so having many small files causes unnecessary size bloat. Gmail could save 56.4 MB by moving their small files to an Asset catalog
Yep, localization is a huge size bloat for enterprisey apps that support many locales. There is no Apple provided way to dynamically download select localization packs based on the device locale. Meta came up with their own solution: https://engineering.fb.com/2022/05/09/android/language-packs...
The small filesize issue is something we commonly see in games, was surprised to see it for Gmail.
130 MB for localization? At 50 languages that would be 2.6 MB/language. If we assume an average 50 bytes per string and another 50 for an identifier, that's 27,000 strings.
That doesn't seem right. Localization feels like it should add a few MB. Not over 100. (Plus shouldn't it be compressed, and locally uncompressed the first time a language gets used?)
Localization doesn’t just mean string translations. Apple platforms give you the freedom to redo the UI to fit the language. For example, parts of System Preferences (not sure about Settings) would look completely different in languages with long words because the original design for English simply didn’t fit. The translators rearranged buttons to make the text fit.
I just looked. In this case, it is just string translations.
In the version I'm looking at there are 27,470 .strings files totaling 69 MiB, but they take up 155.9 MiB of disk space due to the 4 KiB filesystem block size.
The keys for the strings take up 39% of the space while the values take up 61%. About 12% of translations are duplicated (the word "Cancel" is translated like 53 times)
So 55% of the space used for strings localization is just pure waste due to having so many small files. The long keys are rather wasteful too and about 12% of the translations are duplicated (i.e. the word "Cancel" is translated 50+ times per language).
Some of this is arguably Apple's fault. Their whole .string file per table per language is incredibly space inefficient by default.
Android traditionally puts resources into a compressed archive, though, so by simply using an archive for storage, Google may be avoiding the 4k size problem.
Google Play offers such functionality already, it's called App Bundles. Instead of uploading an entire APK, the developers can upload the app assets that get bundled into device-specific APKs containing only the resources necessary for the end device. So you'd only get native libs for your phone CPU architecture, translations for the device language and image assets matching the device resolution for example. In fact, I think it's mandatory now to use the app bundles format (but you're still free to configure it to some extent)
I now see the article is about iOS app, but it looks like the Android app is anywhere between 50mb and 100mb (depending on the apk download side I look at) which is much more reasonable
Author here. Thanks for sharing this. It seems they released an updated version of this analysis last year [1]. It matches what I saw when analyzing the IPA. I tried to do a deeper analysis on the code itself using several tools, including Google's own bloaty [2] which was not very useful without symbols, classdumpios [3] which revealed something like 50k interfaces starting with "ComGoogle", and Ghidra [4], which I left running for a day to analyze the binary, but kept hanging and freezing so I gave up on it. Perhaps comparing the Android and iOS code could lead to something more fruitful.
Looks like it's mostly strings, probably due to localization. They should consider compressing each localization/language, and decompressing the needed bundle on first startup (or language change). Even better: Download the language bundle when needed.
Well, that's a question for OS level. If the OS doesn't require the user to download the language and so language-switching to a new language is doable as an offline operation, I could see it being frustrating that switching to a new language must be done online.
So compression/deduplication is probably the better option. Rather than storing as 1 zip per language, though, you'd probably want a compression format that also eliminates duplication that may occur between languages if you're storing all languages compressed on the system. That means you'd need compression to handle the entire language complex being in one massive compressed blob and you'd just extract out the languages you needed. I assume there are some forms of zipping that do this better than others.
This high pitched noise issue happened to me last week using noise cancellation on a flight, but I was using Airpods 4 (not Pro). I think this problem isn't only limited to the Pro models
Sentry helps devs catch & fix bugs — used by millions of devs worldwide. We’re growing the platform and product surface area and hiring aggressively across engineering:
reply