HNHacker News
TopNewBestAskShowJobs

realPubkey

610 karma · joined January 27, 2017

submissionscomments
realPubkey··on Don't use Discord as your Q&A forum
This sounds like a great deal for the maintainer, who is also a busy person and does not want to answer the noob questions.
realPubkey··on Some notes on local-first development
I am the developer of RxDB, a local-first javascript database, and I made multiple apps with it and worked with many people creating local first apps. The problems you describe are basically solved.

> What to do with stale user data?

Version/Schema migration in RxDB (same for IndexedDB and watermelonDB) can be done in simple javascript functions. This just works. https://rxdb.info/data-migration.html

> What about data corruption?

Offline first apps are built on the premise that internet connections drop or do not exist at all. The replication protocols are build with exact that purpose so they do not have any problems with that. https://rxdb.info/replication.html

> What happens when you have merge conflicts during a sync?

You are right, CRDTs are not the answer for most use cases. Therefore RxDB has custom conflict handlers, which are plain javascript functions. https://rxdb.info/replication.html#conflict-handling

> What happens when the user has millions of items?

There is a limit on how much you can store on a client device. If you need to store gigabytes of data, it will just not work. You are right at that point.

> How do you handle backups? How do you handle exports?

- live backups: https://rxdb.info/backup.html

- json export/import https://rxdb.info/rx-collection.html#exportjson

realPubkey··on ChangeDetection, monitor any website change
They should add an url into the description text. This will render as backlink any there are many pages out there which replicate github-topic pages which will then give your site many links for free.
realPubkey··on Expo – Open-source platform for making universal apps for Android, iOS, and web
With expo on android you are forced to use a 3 years old version of SQLite which is just painful. They just refuse to update it.

https://expo.canny.io/feature-requests/p/expo-sqlite-ship-ne...

realPubkey··on Show HN: 400 sites to submit your startup to, reviewed
Awesome. I was keeping a similar list in my browser bookmarks
realPubkey··on Why SQLite is so great for the edge
SQLite is great, but it is not great for the edge. Handling conflicts and replication is just too complex for SQL based systems.
realPubkey··on Bakhmut Is Gone: An Aerial Look at the War’s Destruction
About 800000
realPubkey··on First Solar Bike Path in Germany Is Now Live
Cost was about 1 million € [1]

[1] https://efahrer.chip.de/news/geniales-pilotprojekt-ist-ferti...

realPubkey··on Neutralinojs – Build lightweight cross-platform desktop apps with JavaScript
Vscode is electron. Discord is react-native.
realPubkey··on Offline is just online with extreme latency
Just retry each X seconds. Also browsers have a navigator.onLine property which emits an event at the exact time the client is online again. I am doing this with rxdb and it works great.
realPubkey··on Offline is just online with extreme latency
P2P in browser was improved a lot in the past years. Your two machines could now connect via WebRTC and then send data to each other directly, no need for bluetooth. This works great and has a low latency. With rxdb you could even realtime-sync the whole application state [1] without connection to a server farm in virginia.

[1] https://rxdb.info/replication-p2p.html

realPubkey··on Offline is just online with extreme latency
Related: https://rxdb.info/offline-first.html
realPubkey··on KV.js
The expire() function should be made to work without a setTimeout. This makes it possible for the kvjs() instance to be garbage collected automatically when there is no more reference to it.

I recommend to use window.requestIdleCallback() directly after each read/write and the try to clean up old values, otherwise leave them there. That will also ensure that the cleanup never happens while the event loop is in a hot path.

realPubkey··on [dead]
The "fall" is not even noticeable on the stock chart. This is made up news just talking negative about alphabet.
realPubkey··on IPFS-tiny: attempting to take IPFS to Space
Latency for random file access is still about 45 seconds.
realPubkey··on Google denies training Bard on ChatGPT chats from ShareGPT
Thankfully archive.org exists, otherwise it would not be possible to get good training data in a few years when the internet is flooded with AI content.
realPubkey··on Google Bard waitlist
Clubhouse was even more stupid by launching iOS only which killed themself.
realPubkey··on Google just shut down our $1M business
Yes. This works even better if you use a coupon code.
realPubkey··on Local-First Web Development
It is not about being offline. It is more about running queries locally which makes them fast enough that you do not even need a loading spinner [1]. Imagine your whatsapp client would have to do a http request on each UI interaction.

[1] https://rxdb.info/offline-first.html

realPubkey··on Local-First Web Development
Using RxDB as state management there is much you get for free like sharing the state between multiple browser tabs and reusing a singe replication socket even when the user has opened 1000ths of tabs.
realPubkey··on Password protect a static HTML page
Should have used the WebCrypto API instead of the crypto-js npm package. https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_...
realPubkey··on Millennials who buy less are happier
Get even richer an rent a house in the middle of the city, ed voila you "save" even more money.
realPubkey··on Nepal's Kusunda language has no words for "yes" or "no"
This must be yaml
realPubkey··on Discord has forums now
"Please stop closing forums and moving people to Discord"

[1] https://news.ycombinator.com/item?id=28549739

realPubkey··on Official Firefox add-on bringing offline translation support to Firefox
Thank you
realPubkey··on Official Firefox add-on bringing offline translation support to Firefox
How good is the tranlation result compared to deepl?
realPubkey··on Million: less than 1kb virtual DOM that is fast
Same for me on mobile chrome
realPubkey··on How to build an open-source business (2021)
This is great and goes into detail, thank you.
realPubkey··on Show HN: StoneDB – A real-time HTAP database built on MySQL
Wikipedia: Hybrid transaction/analytical processing (HTAP) is a term created by Gartner Inc.:

> Hybrid transaction/analytical processing (HTAP) is an emerging application architecture that "breaks the wall" between transaction processing and analytics. It enables more informed and "in business real time" decision making.

realPubkey··on The SQLite Index Suggester
Yes of course you better store the birthday normally. This was just a projection of the real data set, used in my testings.
← PreviousPage 2 of 8Next →