Tap to unmute

TodoMVC in Rust with Sycamore

  Рет қаралды 5,130

chris biscardi

chris biscardi

Күн бұрын

Пікірлер
@CuriousSpy
@CuriousSpy 2 жыл бұрын
started to use sycamore myself - amazing tool!
@CuriousSpy
@CuriousSpy 2 жыл бұрын
i also setup tailwind/windicss so i dont have to write css myself
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
Are you using just sycamore or something like Perseus with it?
@CuriousSpy
@CuriousSpy 2 жыл бұрын
@@chrisbiscardi thank you for saying about Perseus - ill look into it! Looks promising. My setup is Tauri + Sycamore + WasmPack (for wasm build) + Vite (frontend build) Right now im experimenting with GUI for my "discord" app.
@raff7739
@raff7739 2 жыл бұрын
can you make a video on Perseus, it's built on Sycamore but with many more features
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
Coming tomorrow
@dfntlynotjorn
@dfntlynotjorn 10 ай бұрын
Please do a video of sycamore with ssg without perseus.
@thurston04
@thurston04 Жыл бұрын
But how and where does it get styled? How does it handle UI changes on DOM events?
@chrisbiscardi
@chrisbiscardi Жыл бұрын
It's styled by CSS in the same way CSS normally works everywhere else (selectors, DOM, etc). In this example there's a link tag to a stylesheet all the todomvc projects use. UI changes on DOM events are supported by binding those events to functions or values to Signals that are then reacted to by your application. -- github.com/sycamore-rs/sycamore/blob/ce74cb52f2f46ef285c10101b85a49e6bfbaa3f5/examples/todomvc/src/main.rs#L200-L201
@llblumire
@llblumire 2 жыл бұрын
Leptos next perhaps? If you're doing the rounds of frontend web stuff! :) it's a bit like sycamore but it has a more yew feeling jsx style template format. It also doesn't do `app_state.todos.get()` but instead `app_state.todos()` which feels a bit nicer to me
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
yep, leptos is on the list. Tomorrow's video is on perseus (already uploaded/scheduled) and I'm probably going to end this week with some Rust releases/new features videos then pick back up with UI stuff after that.
@lukechu1
@lukechu1 2 жыл бұрын
We could have this pretty easily in sycamore as well if we were to use nightly features. Leptos just uses nightly by default and stable is opt-in rather than opt-out.
@ChanceDinkins
@ChanceDinkins 2 жыл бұрын
dioxus is probably worth looking into if it isn't on your list already.
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
it is, and I've worked with it before so we'll likely talk about it at some point.
@ChanceDinkins
@ChanceDinkins 2 жыл бұрын
​@@chrisbiscardi Awesome! Also, great videos. One thing I don't get is why all of the rust front-end frameworks model themselves after react. Regardless, it's interesting to watch this space develop. I'm not sure its ready for prime-time yet but interesting none the less.
@chrisbiscardi
@chrisbiscardi 2 жыл бұрын
@@ChanceDinkins it's a bit of a long story. tldr; is that React made some good choices years ago and rose in popularity sharply in the JS ecosystem. Being the leader in the space grants you some significant influence. Not every framework is a React-alike but most feel the need to compare themselves to React at least. Sycamore in particular models itself more after SolidJS than React.
@ChanceDinkins
@ChanceDinkins 2 жыл бұрын
@@chrisbiscardi Yea, I did a good bit of UX/front-end dev, ending with AngularJS but backbone, jquery, and vanilla before I took a 5+ year hiatus from development & computers in general. On my way out, React was already picking up steam. Google had just shipped Angular (2?) and really upended a lot of effort the community had put in to build out an ecosystem. A ton of folks were soured over that and jumped ship so I guess it shouldn’t have come as too much of a surprise to me when I got back into the field. Still though, I’d really like to see perhaps a svelte-like (which may be a bit too magical, I don’t know) implementation or even something novel.
@Luxalpa
@Luxalpa 2 жыл бұрын
if you think the Keyed is weird, then you should take a look at Angular...
@rez188
@rez188 2 жыл бұрын
Really don't like how cumbersome the iteration loops are in sycamore. Completely ruins the entire development experience. The way they're done in svelte is the gold standard in terms of syntax. The closer we can stick to that, the better. Seed has very nice syntax for this, so it's not like rust is incapable of being writable and readable. Clean syntax is actually one of the biggest selling points of rust and we shouldn't forget that
Refactoring The Yew Tutorial
10:44
chris biscardi
Рет қаралды 5 М.
Fine Grained Reactivity with Leptos, Rust, and WASM
17:21
chris biscardi
Рет қаралды 18 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Leptos TodoMVC
19:49
chris biscardi
Рет қаралды 19 М.
Can We Make Yew Even Faster?
25:22
Greg Johnston
Рет қаралды 13 М.
Mocking Rust 🤪 and Testing 🧪
11:58
Code to the Moon
Рет қаралды 40 М.
How to make a triple A game in Rust Bevy? Part 1.
10:29
altpotato
Рет қаралды 805
The Yew Tutorial
22:41
chris biscardi
Рет қаралды 39 М.
What if NextJS was just... Rust ft Perseus and Sycamore
17:26
chris biscardi
Рет қаралды 12 М.
I made my own Text Editor (in Rust)
8:16
FaceDev
Рет қаралды 142 М.
Can we have Redux in Rust? (Yewdux)
15:56
chris biscardi
Рет қаралды 6 М.
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 189 М.
Rust’s most popular framework just got a major upgrade
4:58
Let's Get Rusty
Рет қаралды 74 М.