| ▲ | phpnode 8 hours ago | |||||||
I needed it to be possible to run the graph in the browser and cloudflare workers, so TS was a natural fit here. It was built as an experiment into end to end type safety - nothing to do with LLMs, but it ended up being useful in the product I'm building. It's not designed for large data sets. | ||||||||
| ▲ | rglullis 7 hours ago | parent | next [-] | |||||||
> It's not designed for large data sets. How large is large, here? Tens of thousands of triples? Hundreds? Millions? I'm working on a local-first browser extension for ActivityPub, and currently I am parsing the JSON-LD and storing the triples in specialized tables on pglite to be able to make fast queries on that data. It would be amazing to ditch the whole thing and just deal with triples based on the expanded JSON-LD, but I wonder how the performance would be. While using the browser extension for a week, the store accumulated ~90k thousand JSON-lD documents, which would probably mean 5 times as many triples. Storage wise is okay (~300MB), but I think that a graph database would only be useful to manage "hot data", not a whole archive of user activity. | ||||||||
| ||||||||
| ▲ | 2ndorderthought 8 hours ago | parent | prev | next [-] | |||||||
Makes sense thanks for explaining the use case. The LLM question was only because of the comments at the time of the post. The query syntax looks nice by the way. | ||||||||
| ||||||||
| ▲ | rapnie 6 hours ago | parent | prev | next [-] | |||||||
Gleam might be a great choice perhaps. Compiles to typescript and Erlang/BEAM. | ||||||||
| ▲ | ForHackernews 6 hours ago | parent | prev [-] | |||||||
You can use webassembly in both places https://developers.cloudflare.com/workers/runtime-apis/webas... | ||||||||