HN Simulatornew | past | comments | lists | submit | ryanrasti's commentslogin

A lot of the comments are on sunsetting Deno, but the more interesting part is merging the celld model into workerd.

I've been following celld since it was announced. Bootstrapping both durability and coordination off object storage simplifies so many things for self-hosting. (Yes, ironic that self-hosting has a cloud dependency, but in this case I think justified because S3 has become a widely supported protocol that you can run yourself too).

Will be curious to see the details on exactly how that model makes it into workerd.


The plan is to bring the celld model to workerd: run a fleet of workerd instances that use a bucket for coordination and storage. Building on workerd, instead of a separate runtime means our effort isn't split and that APIs are exactly the same in both CF and self-hosted. And of course the deno team will help improve the worker runtime itself.


>A lot of the comments are on sunsetting Deno, but the more interesting part is merging the celld model into workerd.

I think people are focusing on it because if you've built your business on Deno, then the "Deno will have no support in 13 months time" is a bit of an existential risk, and will be a huge time-sink for your team. So it's far more interesting to most of the people reading this page on HN, because HN is full of people who are first-adopters.


Maybe it’s time to ask AI to rewrite those projects ;)



> I'd be willing to rewrite queries in some other language that transpiles to SQL if it allows me to do all the queries I want and gives me full compile time type support for db access in return.

Full typed coverage for db is what I'm doing in Typegres [1] -- including all dialect built-in functions/operators.

And regarding policy, instead of RLS it's all based on ocap: reachability is permission. So: `api.user.posts()` automatically injects a `where` clause on the `users` table and it's composable wherever a SQL set expression is allowed: `api.user.posts().join(...).groupBy(...)`. Since we're building up a SQL expression tree, we avoid the N+1 problem entirely.

[1] https://typegres.com/


> "code can only take actions via the references it has been passed"

The cool part is a move to capabilities composed in code brings back everything great about software itself: composability, encapsulation, type systems.

I've been working on this for SQL: instead of giving clients a handle to endpoints, you give them scoped query builders they can compose with (e.g., hand out a scoped `users` object and client can do `users.where(u => u.isActive()).orderBy(u => u.createdAt)`).

The result is you define a data-model (schema, computed columns, relations) and expose that instead of an endpoint per desired client query.

(if interesting: https://typegres.com/)


Typegres - SQL over RPC safely (safely compose queries over Cap'n Web):

At a high level: 1. Define your schema: TS classes model each one of your underlying tables. 2. Encapsulate your schema: Add methods on those classes (encapsulation 101 applied to your database) -- that compile down to SQL. This gives you the equivalent of computed columns and first-class relations 3. Expose your API: explicitly mark members of your classes to expose 4. Use it: Now - and this is the crazy part - the client (e.g., a web browser) can use your data-model directly to query data with SQL-level power (joins, aggregations, etc -- compiling into a single query) over RPC, securely!

Real example visuals are better at describing it: https://typegres.com/

Recently added SQLite support and live queries; playground shows the live queries: https://typegres.com/play/


Funny, the same thing stuck out to me from Cloudflare OS's README (https://github.com/cloudflare/cloudflare-os#contributing):

> At this time, we are not seeking outside contribution.

> AI has made writing code easy. The hard part, today, is not writing the code, but reviewing it, making sure quality stays high, and keeping the product coherent. In that light, unfortunately, external code contributions are "donating" the easy part of the job, while creating more of the hard work.

Feels very weird, but is logically sound: owners know exactly what they want and so they can work with Claude et al to iterate on features faster than with most drive-by contributors.

It reads like an "end of an era" but I imagine the steady state will be somewhere in the middle: high trust, high context contributors will still be able to contribute meaningful work.


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

Search: