Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aboodman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
181.
▲
by
aboodman
5y ago
> all an NFT does is state "author X gives ownership of Y to Z", Incorrect. As @saurik says, but I'll just restate: an NFT also tells you the ordering of all such statements within one context (a single blockchain). So yo
182.
▲
by
aboodman
5y ago
> will be dated more recently than the other How does the receiver of such a transfer know that the transfer is final? There's no way for them to know that an "earlier" transfer of same item won't show up days later.
183.
▲
by
aboodman
5y ago
The key is the "any arbitrary program". With zk-snarks, I can, theoretically, run some complex analysis of some data -- imagine something that requires millions of compute hours -- and provide a receiver (a) the answer, and (b) a
184.
▲
by
aboodman
5y ago
No it has to be a pure function with no reference to outside systems, and the function has to be in the complexity class np.
185.
▲
by
aboodman
5y ago
zksnarks are one of the most wonderful results in computer science and mathematics. On first learning of them, I had the common reaction of "I can't believe this is even possible to do". The way that I came to intuitively und
186.
▲
by
aboodman
5y ago
I think it’s a little different because people do regularly maintain bridges without replacing them and rerouting all traffic. But I get your drift. What a crazy thought to have these completely autonomous programs moving billions in value.
187.
▲
by
aboodman
5y ago
Thank you for the information. Yes, I was talking about the proxy pattern. My mental model was that this was the classic approach. I did not know that popular major projects were using immutable smart contracts. This seems crazy to me, but
188.
▲
by
aboodman
5y ago
This makes sense to me and I think can be considered decentralized. How common are completely immutable contracts though? It seems like for any contract that holds significant value it would be insane to make it immutable, particularly when
189.
▲
by
aboodman
5y ago
Your comment doesn't address the point of the article. The author isn't talking about Ethereum itself, which they acknowledge up front can comfortably be considered decentralized. The point is smart contracts. They are code, and t
190.
▲
by
aboodman
5y ago
Alright, there is some naming collision then. "offline-first" (terrible name, but here we are) generally refers to a classic web application that wants to be able to run offline either for network resiliency reasons or for perform
191.
▲
by
aboodman
5y ago
For a SaaS style (aka client-server) application, the right way to think of client-side storage is as a persistent cache, for a few reasons: * it can be deleted at anytime (by browser, or even by user!) * you generally want the server to be
192.
▲
by
aboodman
5y ago
aww, thanks.
193.
▲
by
aboodman
5y ago
You should take a look at my project, Replicache: replicache.dev. While it is true that you have to duplicate the mutations in the basic setup, you do not have to share the querying/reading code as it lives primarily on the client. A
194.
▲
by
aboodman
5y ago
ooc, where does Google Firestore fall short?
195.
▲
by
aboodman
5y ago
Ah, when I brotli compress it locally, it's 188 (which is where I remembered 100 from) but I guess it uses different settings than the auto-brotli in Vercel.
196.
▲
by
aboodman
5y ago
Cool, I need to look into this more. I think for many customers the authoritative server is an advantage. It's useful in SaaS apps for the server to be able to override the clients, for all kinds of reasons -- antiabuse, authorization,
197.
▲
by
aboodman
5y ago
> How should we reconcile these changes, if simply allowing either one to take precedence means discarding data from the other? Exactly. This is why Replicache expresses change as high-level operations, like createPost or deletePerson th
198.
▲
by
aboodman
5y ago
Replicache is not hosted - it's client-side only. You bring your own backend.
199.
▲
by
aboodman
5y ago
I’m not sure if you are understanding that when Replicache rebases operations locally it actually re-executes code which can have arbitrary effects. This design yields a lot of flexibility to preserve intent: the function can look at curren
200.
▲
by
aboodman
5y ago
The release build is 100k brotli I believe. It’s possible this site is using the dev binary.
201.
▲
by
aboodman
5y ago
> 30kg flying on Mars? Wow! How massive is this thing gonna be? It’s gonna be 30kg =P … I’ll show myself out.
202.
▲
by
aboodman
5y ago
OK but, it usually matters. If the events represent changes to some object, those changes almost always have to be handled in order if you are to arrive at the same end state as the source. edit: Also, idempotent is not the right term her
203.
▲
by
aboodman
5y ago
It the system is moving fast this is still somewhat complicated to implement robustly because by the time the "catchup" request to t0 returns, more time has passed and more events have happened, so you still can't resume cons
204.
▲
by
aboodman
5y ago
Did you check the website? The value prop is incredibly clear: they give you a Postgres database you can query with SQL rather than having to either (a) learn and code to a custom API or (b) setup your own sync system to get that Postgres d
205.
▲
by
aboodman
5y ago
I noticed the same thing when I stopped working ft. I was surprisingly bad at predicting my own interests and what would make me feel happy day to day. It was almost as if I didn’t know myself, and in retrospect I suppose that was true. Aft
206.
▲
by
aboodman
5y ago
They can tell by where you shop and where you live.
207.
▲
by
aboodman
5y ago
Real time, if accurate, allows you to establish relative ordering without coordination. With logical clocks, you can only establish partial order.
208.
▲
by
aboodman
5y ago
This preview version of Next.js Live doesn't do anything special for text editing. It just locks the document while one user is editing. We are excited to work with Vercel to add true collaborative text editing on top of Replicache soo
209.
▲
by
aboodman
5y ago
The keystrokes edit the local in-memory state and are synchronized in batches to the server and other collaborators. Learn more here: https://replicache.dev/
210.
▲
by
aboodman
5y ago
Yeah, Replicache is in beta right now, and we haven't quite finished the detailed server-side documentation. Apologies . However, there is a walkthrough of implementing the server side starting here: https://doc.replicache.d
More ›