Better HN
topnewbestaskshowjobs
Log inSign up

typingmonkey

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

https://twitter.com/pubkeypubkey
Submissions

1.

Local-First Web Development(localfirstweb.dev ↗)

10 points · by typingmonkey · 3y ago · 4 comments

comment 3y ago · link · parent

The use case is to build a RxDB plugin that backups the users data into the prequel api.

comment 3y ago · link · parent

Is there a way to get a stream of changes out of prequel (via websocket)? That would make it possible to live-sync between the customer's devices.

comment 3y ago · link · parent

EventReduce - An algorithm to optimize database queries that run multiple times

https://github.com/pubkey/event-reduce

comment 3y ago · link · parent

Using SQLite in the browser is great until you have users that open your app in more then one browser tab.

comment 3y ago · link · parent

Zuckerberg will stop developing the metaverse.

comment 3y ago · link · parent

To not fix other peoples bugs on my github repos.

comment 3y ago · link · parent

Mark Rober also gets support from the LA police while they do not care about normal peoples theft.

comment 3y ago · link · parent

That would only confirm that the new lichess version is faster, but not that scala3 is faster then scala2.

10.

Replication between Firestore and a local RxDB Database(rxdb.info ↗)

1 points · by typingmonkey · 3y ago · discuss

11.

React Native Database(rxdb.info ↗)

1 points · by typingmonkey · 4y ago · discuss

comment 4y ago · link · parent

Isnt that what twitter has already done in the last years?

comment 4y ago · link · parent

Fair point. From my experience people often think ipfs works equal to sth like a shared drive or filecoin, so I had to point that out.

comment 4y ago · link · parent

You cannot "put stuff" on ipfs. Either you seed it or someone else does. If noone seeds it, it is gone. I bet most of it will be offline in 3 months.

comment 4y ago · link · parent

See also the Event-Reduce algorithm which is a more lightweigt version of the similar principle. https://github.com/pubkey/event-reduce

comment 4y ago · link · parent

In germany it is called the holy-johannes-grasp.

comment 4y ago · link · parent

Satoshi Nakamoto used 2 spaces after a period.

comment 4y ago · link · parent

> reimplement IndexedDB using FoundationDB. IndexedDB is also a key value..

I did sth pretty similar last month: https://rxdb.info/rx-storage-foundationdb.html

It supports indexes, mongoDB queries etc. to store and query JSON documents via RxDB on top of FoundationDB.

19.

React and Observables from RxDB(sabre.com ↗)

4 points · by typingmonkey · 4y ago · discuss

comment 4y ago · link · parent

I mostly listen to raindrops on a tent [1]

[1] https://mynoise.net/NoiseMachines/campingRainNoiseGenerator....

comment 4y ago · link · parent

Originally it was 3200 eth, but the price has risen too much.

comment 4y ago · link · parent

Ok now I understand.

You can come to the RxDB discord for a chat if you want. I am really interessted in using WebAssembly for browser side storage.

I look forward to the day where someone reimplements IndexedDB via Webassembly, with the exact same API, so that we have a faster IndexedDB which uses the old one as storage layer :)

comment 4y ago · link · parent

Thank you for these links, I will inspect that.

As far as I know, accessing IndexedDB from WebAssembly only works by passing the data through the JavaScript layer (correct me if I am wrong). So from how I think WebAssembly works, it is likely not any faster then directly doing that in JavaScript. I mean, the storage layer does not have to do any heavy computations, so tunneling the data would be more expensive then what you get from plain js.

When you store the data into an IndexedDB based key-value store, how does the querying work? Do you still use IndexedDBs secondary indexes when a query only matches a range of documents, or does the K-V store has any method to support querying a subset of the data without fetching the whole database state?

comment 4y ago · link · parent

There are 2 things called "file system api" in the browser. One is the "File System Access API" to store files on a users OS. This cannot be used to store data of a database.[1]

The other one is the "real" filesytem api, which is not supported by most browsers. [2]

[1] https://developer.mozilla.org/en-US/docs/Web/API/File_System...

[2] https://caniuse.com/filesystem

1234