Better HN
topnewbestaskshowjobs
Log inSign up

carllerche

1,833 karma · joined Aug 11, 2010 (16y ago) · 158 submissions

Submissions

comment 6d ago · link · parent

I would take that wager! $1000 says Switzerland joins the EU before I die.

comment 1w ago · link · parent

fwiw, I suspect that a "low effort" AI-generated artifact will not be protected by copyright law. I suspect there will be a line somewhere, and it will be very unclear where it is. That said, I think it is important to be clear that this is uncharted territory, and while everything you said is true, the USCO does not establish precedent.

> It would be a surprising result

Yes, but also not the craziest thing the courts have ruled.

comment 1w ago · link · parent

I think most expect the courts will land on training AI on copyrighted works is fine, as long as the output of the LLMs is transformative enough to not violate the original copyright. Exactly the same as if a human learned on copyrighted material and outputted their own artifacts.

comment 1w ago · link · parent

The US copyright office is not the body that owns interpretation of the law though. They don’t determine in court if an artifact can be protected by copyright law.

comment 1w ago · link · parent

That is not the Thaler v. Perlmutter conclusion. That case was about whether the machine itself could be made an author under copyright law. That is very different than whether AI output can be protected by copyright law. I am not aware of any cases that test that question yet.

comment 1w ago · link · parent

What is transformative enough to be legal is fuzzy. At the end of the day, it only matters how the courts rule. I do know that the amount of actual mechanical change has less bearing on determining if the work was transformative. There are cases where you can copy 90% of a code base verbatim legally, and there are cases where no code is copied verbatim and it is a copyright violation. What you are describing most likely would not fly in court.

comment 2mo ago · link · parent

Just needed a different name for it. What should it have been called? `#[component]` is not reachable from the client. We went with `#[shard]` to make it clear that it is different (callable from the client).

comment 2mo ago · link · parent

Of course there is. I consider there to be very little overlap. Axum is the router. You can do anything with it. API, web, whatever. Topcoat is a heavy layer on top focused on views.

comment 2mo ago · link · parent

Exactly my point. Everyone says agents are “best” at their language. Which probably translates to agents generate equally well for all programming languages. So, why would you not pick the programming language that gets you the best (fastest, least memory) end product?

comment 2mo ago · link · parent

That is in reference to the entire software industry. I’m not confident that we’re we’ll be building apps at all in 10 years vs just AI integrations

comment 2mo ago · link · parent

Do you have feedback on what you don’t like re: the migration system? It is inspired by drizzle. Is it something we missed or just not a fan of that style entirely?

comment 2mo ago · link · parent

Phoenix, HTMX, Data Star are all big sources of inspiration. Both HTMX and Data Star have built in support too.

comment 2mo ago · link · parent

The trend has been to move back to this style in general (see most modern JS frameworks). The main point is less about combining code and view, but breaking up the page into many small components and pushing data loading down into where it is needed vs up front.

Doing that enables a bunch of performance tricks like starting to steam the page before data i loaded and concurrently render components.

If you have to split your page into many small components, a separate view file for each becomes tedious.

14.

Topcoat is pushing the boundary of server applications with Rust(tokio.rs ↗)

7 points · by carllerche · 2mo ago · discuss

comment 2mo ago · link · parent

https://github.com/tokio-rs/tokio

16.

Principles for Fast Tokio Applications(dial9-rs.github.io ↗)

249 points · by carllerche · 2mo ago · 66 comments

comment 3mo ago · link · parent

Topcoat (Rust) is aiming taking this approach as well: https://github.com/tokio-rs/topcoat. The project is still in the early days. It won't require WebSockets, but WebSockets will be an option.

comment 4mo ago · link · parent

I know the repo was posted here a few days ago (https://news.ycombinator.com/item?id=48952067). The intent was to open the repo at the same time as the blog post, but we ran out of private repo CI credits, so opened it up early and it got posted.

We still wrote the blog post. It provides a bit more context. Feel free to ask questions here.

19.

Topcoat: A framework for building full-stack reactive web apps with Rust(tokio.rs ↗)

8 points · by carllerche · 4mo ago · 2 comments

comment 4mo ago · link · parent

All on the roadmap :) topcoat-ui is already usable with Shadcn components (recent Pr: https://github.com/tokio-rs/topcoat/pull/118) we are still working on pulling in more components.

Re: OpenAPi you want to consume or provide an OpenAPI endpoint? I’m assuming you want to provide one. This is probably on the medium term roadmap after other stuff like UI, tighter ORM integration, email, etc…

comment 4mo ago · link · parent

> Will have to see if Toasty solves it and whether it lets one query for arbitrary structs and add fields to structs from query results (e.g., in the README example for Toasty, explicitly joining on TODOs and mapping them to a simple field on the User objects as opposed to using ORM `has_many`)

I'm not 100% following. Feel free to ping me in discord (https://discord.gg/tokio) or open an issue on Toasty and we can dig into it. Toasty is also pretty new, but maturing fast.

The other points are valid. There are challenges with extracting params and a type system. This is how topcoat does it: https://docs.rs/topcoat/latest/topcoat/router/attr.path_para...

comment 4mo ago · link · parent

Topcoat is entirely server rendered. Reactivity is added using attributes and other signals to a JS “runtime” shipped with topcoat. It is a similar idea to htmx/datastar/hotwire where as Leptos uses wasm to run rust in the browser as well as the server, more like nextjs or solidjs

comment 4mo ago · link · parent

Depends on what you mean by that. Tokio the runtime is lean, and stable. Tokio the org is a collective of devs working on creating and maintaining a full ecosystem for building client and server apps with rust.

comment 4mo ago · link · parent

The ORM is here: https://github.com/tokio-rs/toasty/. Tighter integration between the two is on the near-term roadmap.

comment 4mo ago · link · parent

Both Loco and Topcoat aims to be "batteries included" but that means very different things to each project. Topcoat aims to make it easy to build reactive apps without writing any browser JS (or Rust). It uses a similar strategy to Hotwire, HTMX, Datastar, ... It also will default to using the Toasty ORM (though topcoat is modular so you a swap it out). Topcoat is very young and there is a lot more to build.

comment 4mo ago · link · parent

Don't remind me... I'm old. (I was involved w/ Ruby on Rails in the early days)

comment 4mo ago · link · parent

I don't take offense from differences in design opinion. The goal of topcoat is to be opinionated and not make everyone happy. And JS libs are a heavy inspiration. They do a lot right and have years of experience in the browser-app space. If you don't like it, Axum aims to be the lower-level HTTP router that anyone can build their own abstractions on top of.

That said, if you are up to it, I would ask that you try using it and provide your thoughts after using it as an issue. Feedback is appreciated.

comment 4mo ago · link · parent

It's built: github.com/tokio-rs/toasty/, just not tightly integrated yet. That is on the roadmap.

comment 4mo ago · link · parent

Yes, that is the goal. Those frameworks have a bit (more than a decade) head start though :) there is a lot to build.

There already is an ORM (https://github.com/tokio-rs/toasty/). You can see a sketch of the roadmap here: https://github.com/tokio-rs/topcoat/issues/104

comment 4mo ago · link · parent

Roadmap: https://github.com/tokio-rs/topcoat/issues/104 ORM: github.com/tokio-rs/toasty

It is early, a lot is coming, but you can already build good stuff now.

123456