-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gccx and Inferno (React alternative) #3
Comments
Hi @IngwiePhoenix, |
Hey :) Well first, let me tell you what I would like to do - and more precisely, why. I am very used to writing C or C++. I started as a PHP developer and used type hinting wherever I could and went from there to C++. So, typing feels natural...but it only really does on the left: So, when I saw that JSX was possible with TypeScript, I was a little bit upset and actually avoided learning it for the simple reason that I just did not feel confortable with it. Picky it may be - but not the end of the world either :) I then had a three-year-long break due to a hospital visit (issues with my eyes) and came back and... WebAssembly happened. Right now, I am trying to look for a setup in which I can use C++ with either Emscripten or Cheerp in order to write both front- and backend in a unified language. And when I saw gccx, I was quite sure I had found that! :) My goal is to use WebAssembly to perform business logic (Controllers, Components, Models, ...) and ES6 to perform serving logic (HTTP server bootstrapping, WS server bootstrapping, process watching, ...). Now, for frontend development, there is a gazillion of libraries to use - with the most known ones being React, Vue and a few of their of their alternatives (Preact, for instance). I (kind of) decided to use Inferno for the frontend, since it allows me to do pre-rednering on the server, is lightweight in code-size and gets the job done quite well. So, what I was looking out to do, is to customize the calls being generated by Is that possible? :) I know that me being picky about the language of choice is a little bit over the top... But, that's just me, really. I want to reach a point where I can use one language for everything and get the most speed out of it - which I could definitively do with C++. If I stay with Inferno or go to Sorry for the long post, by the way... ^^; Kind regards, |
Hi @IngwiePhoenix, |
General Information
Description
Hello there :)
With the strong influence that WebAssembly is having, Web apps may no longer just be written in JavaScript, but also C, C++, Rust, Go or many others. Basically, "the web" is crossing borders between languages in more or less successful ways.
However, some libraries are written in JS and were started before the uprise of WASM and they might still want to be used - and a lot of them use JSX (namely React, but there are a lot more alternatives).
This is why I really like the sight of GCCX - A "JSX for C++" syntax enhancement which looks really promising to me! However, that still leads me to a question:
Will GCCX only work with
asm-dom
, or will it also work with other libraries like Inferno, Preact or any other JSX/Hyperscript based application?In my case, I am very used to C++ and would like to utilize WASM/ASM.js for my application. But due to what I want to achieve, I'd like to utilize, partially, server-side rendered content by using Inferno's
.hydrate()
method.Kind regards,
Ingwie!
The text was updated successfully, but these errors were encountered: