topcoat: A batteries-included framework for building web apps

14 points by 355E3B


goldstein

A $(...) expression is ordinary type-checked Rust that Topcoat evaluates on the server for the initial render and also translates to JavaScript

my immediate question was “translates to JavaScript how?”, and the answer is “very manually, on AST level”, so Rust syntactic constructs get directly translated into similar JS constructs. unless I’m missing something, that means you shouldn’t be able to call functions from outside context, because their definitions would (obviously) be inaccessible. it’s not really “ordinary Rust”, it’s, like, “a subset of Rust that has easy syntactic correspondence to JS and also doesn’t use functions from the rest of the crate”.

ssokolow

This looks like another one of those frameworks which are based on blurring the lines between client and server side in ways that just make extra work and introduce extra footguns for developers like me who want to QA our creations for graceful degradation in the presence of uMatrix or NoScript.

...plus, even if I'm just missing the docs on how to do server-side rendering with hydration, I don't see what the value proposition is compared to more mature entries in this niche like Sycamore and Leptos.

Juan

Off-topic maybe, but I'd like to see statistics on the amount of posts we have with the vibecoding tag since its introduction