logoalt Hacker News

phpnodetoday at 11:48 AM4 repliesview on HN

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.


Replies

rapnietoday at 2:32 PM

Gleam might be a great choice perhaps. Compiles to typescript and Erlang/BEAM.

rglullistoday at 1:13 PM

> 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.

show 1 reply
2ndorderthoughttoday at 11:52 AM

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.

show 1 reply
ForHackernewstoday at 2:02 PM

You can use webassembly in both places https://developers.cloudflare.com/workers/runtime-apis/webas...