[HN Gopher] A Graph-Based Firebase ___________________________________________________________________ A Graph-Based Firebase Author : stopachka Score : 98 points Date : 2022-08-25 16:16 UTC (6 hours ago) (HTM) web link (stopa.io) (TXT) w3m dump (stopa.io) | fhur wrote: | Very interesting. I came to many similar conclusions completely | independently, even attempted to build a typesafe in memory | datalog in typescript. | | I also came to the conclusion that just exposing datalog triples | as a query language would never feel right and tried to expose a | graphql like language that generated the datalog triples. | | IMO react relay offers a great similar offering with their | normalized cache. Relay has great DX too and can be totally type | safe. To my knowledge datalog is way too dynamic for static | analysis. | | That being said, I would love to try Instant out. I'm really | happy to see innovation in this area. | fernandohur wrote: | Another project with similar goals in mind: | https://paulbutler.org/2020/the-webassembly-app-gap/ | | Also backed by YC. | kevmo314 wrote: | > These triples say that the Layer with id 1 has a fontSize 20 | and backgroundColor blue. Since they are different rows, there's | no conflict. | | This sounds a lot like Bigtable | (https://cloud.google.com/bigtable), which also does last-write- | wins conflict resolution layer. So this is adding a GraphQL + | frontend layer to it? | revskill wrote: | I use Hasura for this purpose. With some hooks, you can achive | offline mode, too. | | You need a bit tricky hacks to use Hasura permission system the | way you want, though. | alexashka wrote: | Hasura does not offer syncing. | | Syncing is hard :) | revskill wrote: | Aha, yup. My way of offline, is just store all commands | offline and sync the command only. Syncing the view is hard. | kennymeyers wrote: | Tell me more about this! ___________________________________________________________________ (page generated 2022-08-25 23:00 UTC)