this post was submitted on 18 Jul 2023
268 points (98.9% liked)

Rust

6034 readers
3 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

Quoting the author

I’ve starting working on a lemmy front end called lemmy-ui-leptos using leptos, a Rust UI framework with isomorphic support, and tailwind + daisyUI for the component styling. This could eventually replace the frankenstein’s monster that lemmy-ui has become.

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 18 points 1 year ago (2 children)

Isomorphic support? Isomorphic to what?

[–] [email protected] 23 points 1 year ago* (last edited 1 year ago)

Same code renders ui and handles interactions on both server and browser/app

See the leptos docs on SSR

[–] JakeHimself 1 points 1 year ago

Itself, via the identity function

[–] [email protected] 15 points 1 year ago

Very good news!

[–] popcar2 14 points 1 year ago

Sounds good, but I hope it doesn't take too much time that they ignore some of Lemmy's issues and missing features.

[–] nerdblood 3 points 1 year ago

This is cool. I'm a front-end focused dev by trade and have been 11 years now. I've been picking up Rust as a side hobbie for 6 months or so and have not even peaked at these front-end frameworks. I know Lemmy is all about Rust, but I still think it's pretty cheeky they're using Rust for the front-end.

About Leptos specifically... If there's no shadow dom / rerenders and not trying to be react, I already like it better than it's competitor.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Isomorphic rendering seems horribly inelegant.

My first instinct is to just use server-side rendering for this, although that may not be possible since posting a comment involves rendering part of the page on the client side.

In light of that, my second instinct is to render entirely on the client side, but then Lemmy won't work without JS, which may or may not be a problem. Mastodon seems to get away with it, but I dunno if Lemmy can. Also, client-side rendering makes it difficult to avoid breaking the back button, which the UI currently does.

Sheesh. Web development is such a mess.

[–] roze_sha 2 points 1 year ago

Why is it a problem to not work without js?

[–] choroalp 1 points 1 year ago

Unifiying the tech stack was a good idea + Fixing the internals

load more comments
view more: next ›