News for hackers. Stuff that matters.
Re:New F-Droid repository format for faster and smaller updates by RicoElectrico on Thursday March 02, 2023 @07:27PM (#35004084)
It shouldn't need to download the whole repo index for a mobile app store. It's a flawed assumption to begin with.
Re:New F-Droid repository format for faster and smaller updates by blendergeek on Thursday March 02, 2023 @08:05PM (#35004446)
Offline search and metadata is a really nice feature to have. I'm glad it is present and I'm happy to see it being improved rather than abandoned.
Re:New F-Droid repository format for faster and smaller updates by Aachen on Thursday March 02, 2023 @08:15PM (#35004531)
I've got mixed feelings about that as well, but on the whole it's about even and I'm not sad that the search is local and instant. It's not that big a deal to me to download a few megabytes on top of the f-droid apk.

Then again, to download anything (including screenshots and other app info, let alone the app itself) you need a server connection so it's only mildly useful to not have to ask a server. And the search algorithm is... nonexistent I think is the most correct word to use. You get what you ask for. The top three hits for "camera" are Telegram and two identical looking SIP clients, of course. (There's not being influenced by algorithms and there's this.) I wonder if te project would accept a better algo if I'd contribute one; I've made one before at work for a not dissimilar dataset so I have some notion of what works, though it's not rocket science anyway.

Re:New F-Droid repository format for faster and smaller updates by notepalf on Thursday March 02, 2023 @11:11PM (#35005723)
I believe the whole repo is also used to check available app updates
Re:New F-Droid repository format for faster and smaller updates by jeroenhd on Thursday March 02, 2023 @11:25PM (#35005797)
It's not strictly necessary, but if the entire repo can fit inside 8MiB of compressed data I can understand why they chose this rather than server-side search. That's "three clicks on Twitter" in terms of data, not exactly the end of the world, though less is always better. F-Droid's main servers are always overloaded anyway, so just sending a nice and cacheable compressed archive seems like a fine trade-off to me.
Re:New F-Droid repository format for faster and smaller updates by gnramires on Friday March 03, 2023 @03:57AM (#35007326)
It would be nice to use some kind of delta compression to only download latest changes. There could be a version-stamp on your local data, the client would send the timestamp to the server, and it would send a delta from your version to current version of db (easy to cache). Integrity checks would be important I think.
Re:New F-Droid repository format for faster and smaller updates by ptx on Friday March 03, 2023 @06:03AM (#35008082)
That's essentially what they're announcing, isn't it?
Re:New F-Droid repository format for faster and smaller updates by gnramires on Friday March 03, 2023 @07:25AM (#35008612)
Woops, yes. I didn't read the article, and thought it was referring to apk diffs, my apologies.

That said, apk diffs seem important as well, some updates are significantly large (more than 100MB) and see frequent updates. Although in that case it might need to cache apks which requires space as well (I would opt in, though!).

Re:New F-Droid repository format for faster and smaller updates by eighthave on Tuesday March 07, 2023 @06:06AM (#35053995)
We welcome contributions to support APK diffs, it would make a big impact: https://gitlab.com/fdroid/fdroidclient/-/issues/450
Re:New F-Droid repository format for faster and smaller updates by rakoo on Friday March 03, 2023 @03:18AM (#35007090)
I don't won't to be tethered 24/7 to the internet to use my mobile phone. Data exchange isn't free, both in money and in environmental impact. That's a flawed assumption to begin with.
Re:New F-Droid repository format for faster and smaller updates by never_inline on Friday March 03, 2023 @06:13AM (#35008137)
On the other hand having to download all app details at once takes many MBs, not always fast. You can instead cache details of some applications.

I think homebrew moved away from repository approach too.

Re:New F-Droid repository format for faster and smaller updates by rakoo on Friday March 03, 2023 @08:47AM (#35009556)
I usually update repos while on wifi, then search, then use wifi again to download. I like the flexibility of not having to be connected, my phone has more than enough storage space to store a few MBs of repo database
Re:New F-Droid repository format for faster and smaller updates by never_inline on Wednesday March 15, 2023 @02:42AM (#35164724)
Yeah you have wifi. Not everyone has. In rural India, for example, mobile data is predominant way of getting internet.
Re:New F-Droid repository format for faster and smaller updates by izacus on Friday March 03, 2023 @07:38AM (#35008747)
You're talking about an app store here though - by definition it needs to retrieve the app itself and assets related to each entry (e.g. screenshots), so it's not like you're achieving anything useful by downloading the database offline.

This isn't something like a news reader.

Re:New F-Droid repository format for faster and smaller updates by rakoo on Friday March 03, 2023 @08:44AM (#35009527)
It is useful to me. It allows me to search for apps while offline, and wait for non-metered data to actually download it; it's something I find myself using a lot
Re:New F-Droid repository format for faster and smaller updates by justsomehnguy on Friday March 03, 2023 @04:33AM (#35007549)
Then you would need to check every app on the phone against some server.

Your assumption on how it works is flawed to begin with. Check the comment from one of the original authors https://news.ycombinator.com/item?id=35003844