Live data from Hacker News

I ported Kubernetes to the browser

ngrok.com

21–30 of 110 posts

Re: I ported Kubernetes to the browser

#21
There's even a blog/article write-up with a more succinct demo of Kubernetes: https://ngrok.com/blog/i-ported-kubernetes-to-the-browser

   > Is this just slop?
   > Almost all of the webernetes code was authored by LLMs
   > ...
   > I did two things that I think make this a slop-free project:
   > 1. I reviewed every line of code.
   > 2. I created hundreds of tests that assert webernetes behaves the same as a real cluster.
edit: added the slop-free remarks

Re: I ported Kubernetes to the browser

#23
A meta-trend I find interesting is there's a lot of projects using AI to rewrite existing systems in new programming languages. Most often in Rust.

  1. Bun rewritten in Rust
  2. Flow rewritten in Rust
  3. The react compiler was rewritten in Rust
  4. Grit is a new implementation of Git in Rust
  5. I've made my own rust rewrite of postgres that passes 100% of the regression and isolation tests[0][1]
I think AI changed the economics of these projects even more than it has the economics for software engineering work in general. Though direct AI code translation is usually slop for me.

One of the many things I did to deal with this was an audit skill that would:

  1. Find a small chunk of code to rewrite
  2. Have a list of things that it was looking for in each piece of code that's being rewritten
  3. Place that next to the code being translated
  4. If that document didn't exist and/or didn't say the code was passing the audit, code wouldn't be merged
  5. As I found problems and anti-patterns I would add those to the skill over time
This by itself still let a lot of slop slip through, but also preemptively caught a ton of issues as part of my overall process.

Complicated old "boring" infra software might actually be the most AI-rewriteable code right now

[0] https://pgrust.com

[1] https://github.com/malisper/pgrust

Re: I ported Kubernetes to the browser

#24

A meta-trend I find interesting is there's a lot of projects using AI to rewrite existing systems in new programming languages. Most often in Rust. 1. Bun rewritten in Rust 2. Flow rewritten in Rust 3. The react compiler was rewritten in Rust 4. Grit is a new implementation of Git in Rust 5. I've made my own rust rewrite of postgres that passes 100% of the regression and isolation tests[0][1] I think AI changed the e…

+1 CC helped me finally shipped a Rust project I had been sleeping on for years.

Re: I ported Kubernetes to the browser

#26

A meta-trend I find interesting is there's a lot of projects using AI to rewrite existing systems in new programming languages. Most often in Rust. 1. Bun rewritten in Rust 2. Flow rewritten in Rust 3. The react compiler was rewritten in Rust 4. Grit is a new implementation of Git in Rust 5. I've made my own rust rewrite of postgres that passes 100% of the regression and isolation tests[0][1] I think AI changed the e…

I have been experimenting in this general area myself. I started by doing a port of Lua to Rust, then did Valkey to Rust using my Rust Lua for scripting, and now I've been working nginx in Rust.

I was thinking for all of these that the end goal is to take some existing technology and add some novel features rather than just X in Rust so what I have so far.

1. The Lua project bundles Lua 5.1 - 5.5 in one binary and one npm package so it's easy to run in the browser or CloudFlare Worker etc.

2. The Valkey (Redis) port builds something called EdgeStash - lets you run Valkey with Lua scripting in a CloudFlare Durable Object programmable with Lua scripting.

https://edgestash-valdr.ianmclaughlin1398.workers.dev/ that's a demo of the Edge Valkey node running.

I've been meaning to take take it and do something like yours that is sweet!

Re: I ported Kubernetes to the browser

#29
post #27

I wonder if stuff like this will also be created when token costs explode.

So your prior is that token costs are only going to go up. Doesn't stuff like GLM 5.2 and Deepseek change this? I.e. something close to Opus 4.5 that runs 10X + more performantly.

No, because those loans still have to be repaid.

Re: I ported Kubernetes to the browser

#30
First of all, this is wonderful stuff!

As a minor thought / question – I'm a little surprised that this isn't (yet) wired up for pods to run in Web workers.

I appreciate that there is a Clock mechanism (allowing you to step the cluster), which would be more difficult in that setup, but... I feel like especially with SharedArrayBuffer (which admittedly requires the right COOP/COEP), that could be pulled off with atomics.

Would be very cool to be able to actually thread in earnest with this design!

Post reply on HN