Better HN
topnewbestaskshowjobs
Log inSign up

maxmcd

1,941 karma · joined Sep 7, 2011 (15y ago) · 690 submissions

maxmcd.com

gmail: max.t.mcdonnell

github.com/maxmcd

Submissions

comment 2w ago · link · parent

Sure, but there was a plan, and I think a reasonable one: https://github.com/val-town/val-town-product/issues/242

comment 3mo ago · link · parent

I'm not sure how accurate this is, but there is pricing here: https://openrouter.ai/provider/cloudflare

comment 8mo ago · link · parent

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!

comment 9mo ago · link · parent

They're implementing MVCC

comment 10mo ago · link · parent

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

comment 10mo ago · link · parent

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

comment 10mo ago · link · parent

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.

comment 10mo ago · link · parent

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

comment 11mo ago · link · parent

I found some more info here: https://biscuit.readthedocs.io/en/latest/benchmark_roaring.h...

comment 11mo ago · link · parent

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.

comment 11mo ago · link · parent

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

comment 11mo ago · link · parent

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.

comment 11mo ago · link · parent

"Reply in the tone of Wikipedia" has worked pretty well for me

comment 11mo ago · link · parent

> > You can force an fsync after each messsage [sic] with always, this will slow down the throughput to a few hundred msg/s.

Is the performance warning in the NATS possible to improve on? Couldn't you still run fsync on an interval and queue up a certain number of writes to be flushed at once? I could imagine latency suffering, but batches throughput could be preserved to some extent?

comment 11mo ago · link · parent

Maybe this? https://forums.foundationdb.org/t/swift-or-c-20-coroutine-wh...

comment 11mo ago · link · parent

Oh nice, yes I think your threads should be able to perform reads concurrently when the write lock is not held. Would make sure you are in WAL mode as well, since I think that will improve your concurrency.

comment 11mo ago · link · parent

This will block threads while waiting for other threads to write. That might work great for your threading model but I usually end up putting the writer in one thread and then other threads send writes to the writer thread.

comment 1y ago · link · parent

Just that row should be locked since it's: "for update skip locked".

I agree the concurrency limitation is kind of rough, but it's kind of elegant because you don't have to implement some kind of timeout/retry thing. You're certainly still exposed to the possibility of double-sending, so yes, probably much nicer to update the row to "processing" and re-process those rows on a timeout.

comment 1y ago · link · parent

I went here next: https://www.youtube.com/@CMUDatabaseGroup

comment 1y ago · link · parent

Are there any open sourced sharded query planners like this? Something that can aggregate queries across many duckdb/sqlite dbs?

comment 1y ago · link · parent

There are a few different styles: https://github.com/orgs/community/discussions/16925

comment 1y ago · link · parent

Do they mention transactions anywhere? Maybe it will be OLAP?

comment 1y ago · link · parent

I think this is the comparable view: https://www.energydashboard.co.uk/live

comment 1y ago · link · parent

zero deps, nice instructions, how nice
12345
23