upvote
Show HN: Nectar, a Rust-like React that compiles to WebAssembly

(buildnectar.com)

This is neat. It's like a framework and language in one. Congrats on the launch! The tooling for it feels quite novel. I get the allure of having zero dependencies but... the reason why I have dependencies in the first place is because the ecosystem provides tons of functionality out of the box. Do you want the language/framework to provide all the functionality?

The landing page's main value prop is removing the dependency on JS. Thing is... I don't hate JS. Typescript has quite a lot of fans.

I feel like you should demonstrate performance metrics or app size or just some other value prop other than hating on Javascript.

reply
Nice! Heads up that unfortunately the demos don't appear to scroll on mobile
reply
Demos are not usable on android/chromium. Can't scroll or interact with the elements, clicking the buttons works but only sometimes and the rest of the time flashes a skyblue overlay.
reply
How is this different / better than Leptos or Dioxus?

https://leptos.dev/

https://dioxuslabs.com/

reply
I have the same question, but it doesn't look like this is actually Rust code; it's just a compiler for their custom... syntax (?) written in Rust.

https://buildnectar.com/docs/language-reference

This random custom language, I guess.

reply
This is genuinely very useful. In rust all you have is egui which is amazing but no proper ergonomic setup. Floem is a serious contender here but you went with a different approach. Watching this closely because I have some requirement where I need same codebase to work in desktop without electron and on wasm single binary single canvas.

How is your system different from floem? Are you doing pure immediate mode or retained mode partially? What are you using for 2d? Is this portable between webgl and webgpu? Do you need help? I am happy to drive this along if this is useful.

reply
Demo does not work in Fx on android
reply
Wow that demo is slow on iOS
reply
Demos dead on iOS on iPhone 16 pro.
reply
Safari on my Mac can't run it either, but Chrome can.

In Safari, the page seems to render once, and if I resize the window, it just stretches the canvas? The thing seems to die after rendering one frame.

reply