Telegram moving in this direction very fast. At this moment, telegram is used as news, blogs, file transfer app, chat etc. Recently added miniapps with real payments integration, "stars" as internal currency
Indeed, which is why the premise is false. So if a liar who always lies says that thing about ten foot men, ten foot men must exist, and at least one does not have brown hair.
If you do limit/offset on database side, page number is enough. Though this doesn't work well for bigger page numbers. There's other ways to do pagination, e.g. with "cursors", where cursor is simply id of last record on previous page. SQL query is very efficient, but jumping to page X is impossible. In this scenario storing cursors for past pages is needed
Careful that this library last I used it (2020 or so) used a particularly insecure encoding of the cursor that basically allows remote execution. Not sure if they ever addressed it.
There's also "char", with quotes, as a special type. It's always 1 byte.
The other types have overhead. A single-byte bytea will actually use 2 bytes, char(1) will use at least that much, and bit(8) will use 7 bytes. Smallint is strictly better for representing small numbers.
A good reason not to use it is that 49::"char"::int == 49, but 49::"char"::smallint == 1. In other words, int casts directly interpret the value as an integer, but smallint (and bigint) casts interpret it as an ASCII character, '1', which they then convert to the integer 1.
Having N leading zeroes is very similar to what "Bitcoin mining" consists of. Brutforcing small-ish N is possible on Raspberry PI in seconds, large-ish is almost impossible
> Should elephants have the same rights as people?
Only if they pay taxes.
Jokes aside, there's no legal framework for this kind of stuff. "Full rights" means citizenship, passport, ability to travel, requirement to pay taxes etc etc. There's no other kinds of not-exactly-people-rights
> There's no other kinds of not-exactly-people-rights
There are rights without requirements for people that can't function in society: babies, infants, mentally handicapped, elderly with alzheimers, etc.
They all have rights even though they can't fight for them themselves. Especially the right to not be imprisoned or killed by humans, which are the typical fundamental rights sought after for animals with high cognitive capabilities. It's not all or nothing.
Paying taxes, citizenship and ability to travel are one level of abstraction higher and has nothing to do with these fundamental rights. Similarly some other rights like the right to vote are not granted to all citizens.
Except SAF is slow as hell, working on multiple files means separate calls for every little thing like file size via java API. Means everything going to be VERY slow and drain battery a lot. I've seen test from 2019 where directory listing operation is 25-50 times slower in SAF
reply