Better HN
topnewbestaskshowjobs
Log inSign up

nathanmarz

2,568 karma · joined Sep 27, 2009 (17y ago) · 325 submissions

Founder of Red Planet Labs

Twitter: @nathanmarz Blog: http://nathanmarz.com

[ my public key: https://keybase.io/nathanmarz; my proof: https://keybase.io/nathanmarz/sigs/GQL-L253FL3Kx_QbCQ601_zpXzu9-xWPmKOalUA5Ijc ]

Submissions

1.

Teaching LLMs to one-shot complex back ends at scale, report #1(blog.redplanetlabs.com ↗)

3 points · by nathanmarz · 5mo ago · discuss

2.

The pain of microservices can be avoided, but not with traditional databases(blog.redplanetlabs.com ↗)

6 points · by nathanmarz · 7mo ago · discuss

3.

Rama matches CockroachDB's TPC-C performance at 40% less AWS cost(blog.redplanetlabs.com ↗)

1 points · by nathanmarz · 8mo ago · discuss

4.

Rama matches CockroachDB's TPC-C performance at 40% less AWS cost(blog.redplanetlabs.com ↗)

1 points · by nathanmarz · 8mo ago · discuss

5.

Modular Diffusers – Composable Building Blocks for Diffusion Pipelines(huggingface.co ↗)

3 points · by nathanmarz · 8mo ago · discuss

6.

Replacing a complex Postgres, Memcached, and Kafka back end with Rama(blog.redplanetlabs.com ↗)

6 points · by nathanmarz · 11mo ago · discuss

7.

Diving into Rama: A Clojure LSH Vector Search Experiment(shtanglitza.ai ↗)

3 points · by nathanmarz · 1y ago · discuss

comment 1y ago · link · parent

It's not meant as just a demo of what Rama can do. It's a fully featured tool that supports the end-to-end workflow of building and maintaining robust LLM agents. It has an easy-to-learn API and you don't need to learn how to program Rama itself.

Rama isn't open source, but it's far from a black box. All data structures and computation are fully visible in the UI. You can inspect depots, topologies, and PStates, and see exactly what's stored and how it changes over time. Everything is also accessible through the Rama client API for direct querying. The PState schemas used by Agent-o-rama are defined here: https://github.com/redplanetlabs/agent-o-rama/blob/master/sr...

Backups are easy: you configure a “backup provider” (we provide one for S3) and a schedule for incremental backups. The free version can also be backed up with a short maintenance window. Full details are here: https://redplanetlabs.com/docs/~/backups.html

comment 1y ago · link · parent

I'm only somewhat familiar with Koog, but these these are major differences according to my understanding:

- Execution model: Koog is a library for defining agents that run within a single process. AOR agents execute across a distributed cluster, whether one node or thousands.

- Deployment and scaling: Koog provides no deployment or scaling mechanisms. That's something you need to figure out on your own. AOR includes built-in deployment, updating, and scaling.

- Integration complexity: Koog must be combined with other tools (monitoring tool, databases, deployment tools, etc.) to approximate a complete agent platform. AOR is fully integrated, including built-in high-performance, durable storage for any data model.

- Experimentation and evaluation: Koog has no features for experimentation or online evaluation. AOR includes extensive support for both.

- Scalability: AOR scales horizontally for both computation and storage. With Koog, you'd need to design and operate that infrastructure yourself.

- Observability: Koog's observability is limited to traces and basic telemetry exposed via OpenTelemetry. AOR provides a much broader set of telemetry, including "time to first token" and online evaluation charts. You can also split all time-series charts automatically by any metadata you attach to your runs (e.g. see how agent latency differs by the choice of model used). Plus, it's all built-in and automatic.

Please correct me if I'm wrong on any aspect of Koog.

comment 1y ago · link · parent

Hey, project lead here. I'm happy to answer any questions you have about Agent-o-rama or its technical internals.

11.

Make Worse Software, Slower(blog.redplanetlabs.com ↗)

4 points · by nathanmarz · 1y ago · discuss

12.

Netcetera used Clojure+Rama to 100x a product used by millions(blog.redplanetlabs.com ↗)

2 points · by nathanmarz · 1y ago · discuss

13.

Netcetera used Clojure+Rama to 100x the performance of product used by millions(blog.redplanetlabs.com ↗)

5 points · by nathanmarz · 1y ago · discuss

comment 1y ago · link · parent

Yes, Rama emerged from following this approach exactly. The "make it possible" phase was grinding for years on innumerable backend infrastructure problems. These included problems I worked on directly at BackType and Twitter, and also the thousands of use cases I helped with through my open-source work (especially Storm).

The "make it beautiful" part involved unifying all these use cases into a single set of abstractions that could express them all concisely, with high performance, and without needing any other infrastructure. Since I was building such a general platform, I was also able to consider use cases I hadn't directly worked on – basically just looking at popular web applications and their features.

Leaving Twitter in 2013 was the start of the "make it beautiful" phase. By that point I had already figured out the broad outlines of what such a next generation platform would look like (event sourcing + materialized views, indexing with data structures instead of data models). It was a long road from there to figure out the details and turn it into a production platform.

15.

Scalable recommendation engine with Rama in 80 LOC(blog.redplanetlabs.com ↗)

1 points · by nathanmarz · 1y ago · discuss

16.

Scalable collaborative text editor back end with Rama in 120 LOC(blog.redplanetlabs.com ↗)

3 points · by nathanmarz · 1y ago · discuss

17.

Next-level back ends with Rama: storing and traversing graphs in 60 LOC(blog.redplanetlabs.com ↗)

4 points · by nathanmarz · 1y ago · discuss

18.

Rama, the 100x developer platform, is now free for production use(blog.redplanetlabs.com ↗)

18 points · by nathanmarz · 1y ago · 1 comment

19.

AfterHour built an ultra-scalable chat service in one month with Rama(blog.redplanetlabs.com ↗)

1 points · by nathanmarz · 1y ago · discuss

20.

AfterHour built an ultra-scalable chat service in one month with Rama(blog.redplanetlabs.com ↗)

4 points · by nathanmarz · 1y ago · discuss

21.

Migrating terabytes of data instantly (can your ALTER TABLE do this?)(blog.redplanetlabs.com ↗)

1 points · by nathanmarz · 2y ago · 1 comment

comment 2y ago · link · parent

Yes. The second Rama language will have a co-author and will lose the purity of the first language by adding many keywords each with a lot of emotional backstory.

comment 2y ago · link · parent

Those are explained in the post starting here: https://blog.redplanetlabs.com/2024/10/10/rama-on-clojures-t...

comment 2y ago · link · parent

That Python code has the same effect, but the equivalent Python in CPS would be:

  def explode(args, cont):
    for e in args:
       cont(e)
  
  (explode [1, 2, 3, 4], print)

comment 2y ago · link · parent

It's named after the Arthur C. Clarke book.

comment 2y ago · link · parent

That would make it so you can't do "use" on com.rpl.rama. Since Rama is a full language, doing a "use" on the namespace is generally preferred as otherwise you would have to write "rama/" everywhere, which is irritating.

I also don't like overloading "defn" with something that's completely different. Also, a deframafn is more than a Clojure defn since it can emit to other output streams.

comment 2y ago · link · parent

A depot is a distributed log of events that you append to as a user. In this case, there's one depot for appending "deposits" (an increase to one user's account) and another depot for appending "transfers" (an attempt to move funds from one account to another).

A microbatch topology is a coordinated computation across the entire cluster. It reads a fixed amount of data from each partition of each depot and processes it all in batch. Changes don't become visible until all computation is finished across all partitions.

Additionally, a microbatch topology always starts computation with the PStates (the indexed views that are like databases) at the state of the last microbatch. This means a microbatch topology has exactly-once semantics – it may need to reprocess if there's a failure (like a node dying), but since it always starts from the same state the results are as if there were no failures at all.

Finally, all events on a partition execute in sequence. So when the code checks if the user has the required amount of funds for the transfer, there's no possibility of a concurrent deduction that would create a race condition that would invalidate the check.

So in this code, it first checks if the user has the required amount of funds. If so, it deducts that amount. This is safe because it's synchronous with the check. The code then changes to the partition storing the funds for the target user and adds that amount to their account. If they're receiving multiple transfers, those will be added one at a time because only one event runs at a time on a partition.

To summarize:

- Colocated computation and storage eliminates race conditions

- Microbatch topologies have exactly-once semantics due to starting computation at the exact same state every time regardless of failures or how much it progressed on the last attempt

The docs have more detail on how this works: https://redplanetlabs.com/docs/~/microbatch.html#_operation_...

12345
11