What if NextJS was just... Rust ft Perseus and Sycamore

  Рет қаралды 12,493

chris biscardi

chris biscardi

Күн бұрын

Пікірлер: 26
@thanatosor
@thanatosor 2 жыл бұрын
Can’t wait for Rust On Rails 😂
@ohturry5591
@ohturry5591 2 жыл бұрын
Trains will crash a lot 💀
@ploruto9661
@ploruto9661 2 жыл бұрын
Please more! and "long videos" are not something bad, so feel free to make even longer videos ;)
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
heh, since I make a video every day they can only be so long before setting up, recording, and editing takes longer than that 😅 I have a couple specific videos in mind that will run longer though (and thus will take more time to put together).
@verified_tinker1818
@verified_tinker1818 2 жыл бұрын
I've been waiting for this!
@Tobi-gl2lb
@Tobi-gl2lb 2 жыл бұрын
Very nice video, as usual! Would love a video about the different rendering strategies in perseus.
@larrymarso4492
@larrymarso4492 2 жыл бұрын
Straightforward to set up SSR plus hydration with Axum server side, on plain vanilla sycamore. I hope to hear more about Perseus templating. Advantages over other rust solutions or database driven homegrown?
@jcolindres001
@jcolindres001 2 жыл бұрын
Hi Chris, Go to know about all these projects in Rust. Which of these projects would be the best: Yew, Perseus, Leptos, Sycamore, etc.? according to your experience. Best regards, JA
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
They all have different tradeoffs and I don't think any one of them is "the best". If I was making a site for a client I'd probably reach for something that's been around longer like Yew unless they had requirements that fit Perseus better. Leptos is up and coming and is just about to see its 0.1 release so I'd only use it if you wanted to be on the early-adopter cutting edge.
@ryanmcwhorter8501
@ryanmcwhorter8501 2 жыл бұрын
Really cool video! I want to ask though, if you think that this tech stack is mature enough/good enough to justify using over any of the traditional JS/TS options. Could you justify this as a choice at a company?
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
I think it's *good enough*, but that's true for most things really. It's not hard to hit a low bar of "can build a webapp/website" for new technology these days and it's all about your project's constraints, etc. Perseus/Sycamore and the Rust ecosystem in general is much younger than the JavaScript ecosystem... but Rust is really good at WASM and maintaining Rust projects tends to be more achievable than JS/TS projects. You also tend to get better performance (in terms of memory usage, etc) with Rust server-side code than JS/TS. So yeah, I could see this being used at a company *but* that will not be a generally applicable sentiment to all companies. I wouldn't walk around telling everyone to rewrite their JS apps in Rust, or to retrain all of their JS developers, etc. Also If your company's expectations are built around specific technologies (ex: "what WordPress offers", or "NextJS has feature X,Y, and Z, and offers integrated paid hosting") it can be really hard to move on to any other ecosystem.
@ryanmcwhorter8501
@ryanmcwhorter8501 2 жыл бұрын
@@chrisbiscardi Cool! I might take a shot at making myself a resume site with this.
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
@@ryanmcwhorter8501 that sounds like a great project to try
@iamchu
@iamchu 2 жыл бұрын
Really cool! Do you anticipate a JSX/TSX style approach to the current view implementation down the line? (Asking as someone who has beginner level knowledge of Rust but wants to learn - also idea of .rsx seems cool to me)
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
Leptos and Dioxus already use an rsx style 👀 I've got two videos on leptos on the channel right now
@iamchu
@iamchu 2 жыл бұрын
@@chrisbiscardi ah cool will check them out!
@jaysistar2711
@jaysistar2711 Жыл бұрын
My problem with Perseus is fixable. I want a single binary that does both frontend SSR/static file and also serves the API. It may be fixed, now, but, the last time that I checked, it was reccomended to have a seperate API server. Even so, I'm pretty much done with SSR. It's not something that offers any benefit past the 1st page load, and 1st page load is already fairly fast in my apps. Code splitting (for WASM) is a much more interesting.
@chrisbiscardi
@chrisbiscardi Жыл бұрын
yeah I definitely think the recent surge to push SSR for everything adds complexity that isn't necessary for a lot of projects. A lot of this focus came from VC backed companies' marketing efforts in the JS ecosystem. The UI vs API split is something I do in all my projects so it doesn't particularly bother me. Having the server and the client be a consumer of the API also means that you can build other interfaces easier (admin APIs, native apps, etc).
@jaysistar2711
@jaysistar2711 Жыл бұрын
@@chrisbiscardi Unrelated: Have you looked at wasmCloud? It might make a good video topic. NATS and HarperDB are pretty interesting as well.
@chrisbiscardi
@chrisbiscardi Жыл бұрын
@@jaysistar2711 NATS is definitely interesting. I haven't looked at wasmCloud much or HarperDB at all. HarperDB looks like the pricing is pretty brutal so I'm not sure the average person watching would even be able to run it for a side project.
@tak68tak
@tak68tak 2 жыл бұрын
Does it support streaming HTML like Next.js 13 Server Components with suspense?
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
not that I know of, but fwiw NextJS doesn't even support that stably
@driedurchin
@driedurchin 2 жыл бұрын
Window manager / OS?
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
yabai/macos -- kzbin.info/www/bejne/l6GoiaCAhZqrrtk
@asdqwe4427
@asdqwe4427 2 жыл бұрын
Looks cool, terrible name for a framework tho
@christianf1480
@christianf1480 2 жыл бұрын
IMO, Perseus is still a young project that needs maturation. I browsed examples in github, and code is very dependant of the perseus version, API is unstable for the moment. So each version will require hassle migration. I can't recommand it to my company. Compilation takes a lot of time, ni comparaison with sycamore alone.
Leptos 0.5: No More Scope!
9:47
chris biscardi
Рет қаралды 11 М.
Fine Grained Reactivity with Leptos, Rust, and WASM
17:21
chris biscardi
Рет қаралды 18 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
8 deadly mistakes beginner Rust developers make
14:14
Let's Get Rusty
Рет қаралды 176 М.
TodoMVC in Rust with Sycamore
22:15
chris biscardi
Рет қаралды 5 М.
Is Next.js 15 any good? "use cache" API first look
8:16
Beyond Fireship
Рет қаралды 125 М.
Can We Make Yew Even Faster?
25:22
Greg Johnston
Рет қаралды 13 М.
5 deadly Rust anti-patterns to avoid
13:25
Let's Get Rusty
Рет қаралды 34 М.
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 144 М.
Arc instead of Vec? | Prime Reacts
37:18
ThePrimeTime
Рет қаралды 68 М.
Laravel Gems - Pipelines 💎
15:21
Laravel
Рет қаралды 9 М.
5 super useful CSS properties that don't get enough attention
16:23
Kevin Powell
Рет қаралды 149 М.
Looking Under the Hood of JavaScript
6:34
ThePrimeagen
Рет қаралды 188 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН