Better HN
topnewbestaskshowjobs
Log inSign up

typingmonkey

665 karma · joined Apr 16, 2020 (6y ago) · 103 submissions

https://twitter.com/pubkeypubkey
Submissions

61.

Offline-First Database Comparison(github.com ↗)

415 points · by typingmonkey · 5y ago · 155 comments

comment 5y ago · link · parent

So the plain data is smaller because some information comes from the schema instead of the object. Guess what, you can do the same with json already [1]

[1] https://github.com/pubkey/jsonschema-key-compression

comment 5y ago · link · parent

I would say most browser users do not care about developer tools. They are normal people, they do not debug stuff.

comment 5y ago · link · parent

Yes this clarifies it, thank you.

comment 5y ago · link · parent

I do not understand this. You have better "desktop CPUs" and want to be 4x faster then github actions? Most of CI time is spend on downloading stuff or moving files, how can this ever be 4x faster with just better CPUs?

> On average it reduces the CI run time by 50% (we forked and tested on ~100 public repos)

So in reality is is just 2x faster on non-optimized public repos?

comment 5y ago · link · parent

Yes, most of them. I think the risk by using strike is much less and you do not have to be online to accept payments.

Which is not a good sign for general LN adoption.

67.

Why NoSQL(rxdb.info ↗)

90 points · by typingmonkey · 5y ago · 120 comments

comment 5y ago · link · parent

If it is an DNS error, why is the .onion site also offline?

- https://en.wikipedia.org/wiki/Facebook_onion_address

- facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd.onion

comment 5y ago · link · parent

That gave me a smile :)

Yes, I totally missed this side of the dice. Having your data stored locally, being in control, being able to reset the state to it's origin, export the local state as json and import it somewhere else, knowing what is stored and how long.

comment 5y ago · link · parent

Yes. I have written both of them, mostly to make sure I trigger 100% of people, no matter if they like offline first or not.

I mean, read all these comments on both articles. People say offline first does not work, then they say that every software is offline first by default and it is nothing new.

It was totally worth it spending two 3 days on it :)

71.

Downsides of Offline First(rxdb.info ↗)

355 points · by typingmonkey · 5y ago · 208 comments

72.

RxDB 10.0.0(github.com ↗)

3 points · by typingmonkey · 5y ago · discuss

comment 5y ago · link · parent

Same here, they gave me credits 2 weeks after migration to gh actions.

comment 5y ago · link · parent

Does having private fields mean we can securely minify them?

comment 5y ago · link · parent

Firestore is not really offline-first. Your app wont start without internet connection because the auth handler needs that.

comment 6y ago · link · parent

Yes. It can even work fully without any server synchronization. It is just a db in the browser, sync is optional.

comment 6y ago · link · parent

You should try RxDB. It is based on pouchdb and therefore supports offline first [1]. Also you can use the graphql replication so that you are not limited to couchdb backend. Also there is a course made by hasura about using RxDB with their backend [2]

disclaimer: I made RxDB

[1] https://github.com/pubkey/rxdb

[2] https://hasura.io/learn/graphql/react-rxdb-offline-first/int...

comment 6y ago · link · parent

Yes, indeed an impressive project. I think we should not use the termination "stored at IPFS" like they do. Distributed via IPFS would be much more correct in a technical sense.

comment 6y ago · link · parent

Yes I fully understand this. Also with vue2 you often get problems with the internal version of "array" that is wrapper around a normal array to detect changes.

comment 6y ago · link · parent

There is a big difference between having a changestream of writes to the database, and observing results of multiple queries.

comment 6y ago · link · parent

There are many mobile apps out there which work great and are offline first. For example the whatsapp client. So saying it is "fundamentally flawed" sound weird to me.

I have no deep knowledge of Firebase RTDB so I cannot do any comparison on that point.

comment 6y ago · link · parent

Yes and no. Read "realtime" not like "realtime computing" but like a marketing keyword introduced by firebase which means something like live-replication. https://firebase.google.com/docs/database?hl=en

comment 6y ago · link · parent

Yes I did :D . I wrote a full master thesis about the differences and tradeoffs of these "realtime" databases.

comment 6y ago · link · parent

No it does not work with appsync, but it could be hacked into doing that by modifiing the GraphQL plugin. There would be a huge value in replacing the aws datastore mainly because of its missing basic features like complex queries or queries with sort params.

comment 6y ago · link · parent

I updated my profile. I do not know supabase, is it similar to hasura? They spend quite some effort [1] to make the RxDB graphql replication working with their backend. Maybe supabase can use a similar wrapper over GraphQL.

[1] https://hasura.io/learn/graphql/react-rxdb-offline-first/int...

comment 6y ago · link · parent

Actually, the long term plan is to move away from pouchdb. Before the last major release [1] I decided to make RxDB useable with other frontend/backend databases but then found out that I first should refactor some pain points.

[1] https://github.com/pubkey/rxdb/issues/1636

comment 6y ago · link · parent

It runs fully on the client and is offline first. A listener to PostgreSQL will not work when the device goes offline.

comment 6y ago · link · parent

Yes and no. Read "realtime" not like "realtime computing" but like a marketing keyword introduced by firebase which means something like live-replication. https://firebase.google.com/docs/database?hl=en

comment 6y ago · link · parent

Yes pouchdb does not get the love it deserves. But it is still actively maintained, the last bug I had was timely fixed by the community and merged.

90.

RxDB – a real-time database on top of PouchDB(github.com ↗)

172 points · by typingmonkey · 6y ago · 47 comments

1234