Hacker Newsnew | past | comments | ask | show | jobs | submit | maxmcd's commentslogin

Those care about quickly sending compact messages over the network, but most of them do not create a sparse in-memory representation that you can read on the fly. Especially in javascript.

This lib keeps the compact representation at runtime and lets you read it without putting all the entities on the heap.

Cool!


Amazon Ion has some support for this - items are length-prefixed so you can skip over them easily.

It falls down if you have e.g. an array of 1 million small items, because you still need to skip over 999999 items to get to the last one. It looks like RX adds some support for indexes to improve that.

I was in this situation where we needed to sparsely read huge JSON files. In the end we just switched to SQLite which handles all that perfectly. I'd probably still use it over RX, even though there's a somewhat awkward impedance mismatch between SQL and structs.


I did seriously consider SQLite, but my existing datasets don't map easily to relational database tables. This is essentially no-sql for sqlite.

Exactly. Low heap allocations when reading values is one of the main driving factors in this design!

They're implementing MVCC


does having to maintain the slatedb as a consistent singleton (even with write fencing) make this as operationally tricky as a third party db?


It’s not great UX on that angle. I am currently working on coordination (through s3, not node to node communication), so that you can just spawn instances without thinking about it.


Is this possibly an intentional reference to GNU Linux, or unrelated?


Within the book itself the clacks system has its own technical protocol which is briefly touched upon. The "overhead" is essentially packet or request metadata.

From the LSpace wiki, GNU is a metadata that means:

    G: Send the message onto the next Clacks Tower.
    N: Do not log the message.
    U: At the end of the line, return the message.

And yes, it is almost certainly a reference to GNU as in "GNU's Not Unix". =)

https://wiki.lspace.org/GNU_Terry_Pratchett


Quite intentional.


It's Terry Pratchett, so of course it's an intentional reference.


TCP performance gets quite poor over long distances. CDNs are very helpful if you're trying to make your site work well far away from your servers.


I think the bottleneck is rarely CDN. Think about it - my server sits in Germany. My target audience is in the US. My latency to the west coast is 150ms. I can see it being a big thing in competitive online game, but for website load performance it's less than the blink of an eye. The real bottleneck is usually poorly configured page or some bloated JS.


Quite surprising. It does seem like you can get an https download with

    aws s3 cp --no-sign-request s3://download.opencontent.netflix.com/sparks/creative-commons-attribution-4-intl-public-license.txt .
Which is hitting the bucket path route at: https://s3.amazonaws.com/download.opencontent.netflix.com/sp...

"aws s3 ls" similarly requests: https://s3.amazonaws.com/download.opencontent.netflix.com?li...



Index Size

    Biscuit 277.09 MB
    Trigram 86 MB
    B-Tree  43 MB
Pretty much you exchange space for speed


I think a lot of the original temporal/cadence authors were motivated by working on event-driven systems with retries. They exhibited complex failure scenarios that they could not reasonably account for without slapping on more supervisor systems. Durable executions allow you to have a consistent viewpoint to think about failures.

I agree determinism/idempotency and the complexities of these systems are a tough pill to swallow. Certainly need to be suited to the task.


Great article for demystifying durable execution: https://lucumr.pocoo.org/2025/11/3/absurd-workflows/


I believe you are making use of gVisor’s userspace TCP implementation. I’m not sure if there is something similar in Rust that would be so easy to set up like this.


There isn't something as mature as gVisor afaik. https://github.com/smoltcp-rs/smoltcp implements many of the same abstractions as gVisor.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: