vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.68k stars 2.15k forks source link

Reactjs style for building GUI app? #187

Closed leedstyh closed 4 years ago

leedstyh commented 5 years ago

Hi,

Any plan to support reactjs ( or Flutter ) style for building GUI app?

ansarizafar commented 5 years ago

Svelte https://svelte.dev would be much better than React.

medvednikov commented 5 years ago

Yes, this would be nice.

A bit tricky to build this on top of native toolkit APIs.

hamad-almamari commented 5 years ago

Please keep V away from JAVASCRIPT Madness. Focus on Native Platforms instead of flutter or react. I hope to see V Runing soon in Android and IOS.

medvednikov commented 5 years ago

I'm not a fan of JavaScript myself :)

This has nothing to do with JavaScript. The question is about using a more modern style for the GUI library.

Native iOS/Android support is coming later this year.

ansarizafar commented 5 years ago

Would it be possible to develop a full stack progressive web app with V without using JavaScript like Blazor https://www.youtube.com/watch?v=y7LAbdoNBJA or new rust web frameworks?

medvednikov commented 5 years ago

Would it be possible to develop a full stack progressive web app with V without using JavaScript like Blazor

Yes.

ansarizafar commented 5 years ago

Good to hear that. I am excited. A Svelte https://svelte.dev like full stack web framework in V would be a game changer.

medvednikov commented 5 years ago

Yes, I'm excited as well. Time to free the world from JavaScript oppression :)

medvednikov commented 5 years ago

Apple just released SwiftUI, looks interesting.

I like the declarative approach and will use it in V ui.

diamondburned commented 5 years ago

Depends on the approach I'm seeing here. Svelte "compiles" to JavaScript, which the client runs. "Rust web frameworks" are server-side rendered, similar to PHP. Both are different and has different purposes. Personally I'd prefer the "Rust web frameworks" approach.

ansarizafar commented 5 years ago

Rust also has this https://github.com/DenisKolodin/yew Server side only framework can't be used for more responsive UIs rich user interactions, client side validation, animations, state management etc.

pyrossh commented 5 years ago

If V compiles to wasm then its even easier to rid this world of javascript. yew compiles to wasm btw.

ansarizafar commented 5 years ago

I had suggested the same on slack.

pyrossh commented 5 years ago

Anyways golang has a really good frontend framework called vecty which is a react like framework in golang. I think the first step would be get a framework like this setup after the wasm target is completed. It will help in exploring to build a common UI interface across all platforms. There is also ebiten which actually works on all platform. The same codebase. Anyone here want to take a shot at building the wasm target? I think it shouldn't be too difficult.

nedpals commented 4 years ago

A proper syntax has been selected for V UI. Closed