Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Web Assembly... Compiling U++ code to run in the web browser...
Web Assembly... Compiling U++ code to run in the web browser... [message #47784] Sun, 26 March 2017 05:28 Go to next message
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
With the dawn of a new age in web technology, it would be neat to be able to have one's U++ program compile to Web Assembly and run on any web browser!
Re: Web Assembly... Compiling U++ code to run in the web browser... [message #47789 is a reply to message #47784] Sun, 26 March 2017 14:03 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

We developed the ability to run u++ application inside the web browser using JavaScript. If you are interested you can check WebWorld (examples assembly). You can compile it by your own.

The current problem now is that WebAssembly doesn't support direct c++ api for events etc. Everything should be done on JS side. But, I see the big potential in the future when the biggest drawbacks will be eliminated.

Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Sun, 26 March 2017 14:03]

Report message to a moderator

Re: Web Assembly... Compiling U++ code to run in the web browser... [message #47809 is a reply to message #47784] Sun, 02 April 2017 00:24 Go to previous messageGo to next message
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
Klugier,

It will be nice when JS isn't needed any more.

Finally found it, the Unreal Engine demo making use of Web Assembly:

https://s3.amazonaws.com/mozilla-games/ZenGarden/EpicZenGard en.html

Wonder how they implemented their use of events?


Peter
Re: Web Assembly... Compiling U++ code to run in the web browser... [message #47817 is a reply to message #47809] Sun, 02 April 2017 21:43 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

Thanks for tech demo. I am pretty sure that events is handle by calling web assemblies code from java scirpt (like bindings to other languages).

Sicnerely,
Klugier


U++ - one framework to rule them all.
Re: Web Assembly... Compiling U++ code to run in the web browser... [message #47825 is a reply to message #47784] Wed, 05 April 2017 04:33 Go to previous messageGo to next message
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
Here's another demo, "Tanks! Demo":

http://webassembly.org/demo/


Looks like they have a Unity tutorial titled, "Unity - Tanks Tutorial":

https://unity3d.com/learn/tutorials/projects/tanks-tutorial
Re: Web Assembly... Compiling U++ code to run in the web browser... [message #48346 is a reply to message #47789] Sun, 25 June 2017 07:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Klugier wrote on Sun, 26 March 2017 14:03


The current problem now is that WebAssembly doesn't support direct c++ api for events etc. Everything should be done on JS side. But, I see the big potential in the future when the biggest drawbacks will be eliminated.



How is that a problem? It should be possible to wire JS events to C++, similiar to how it is done in WebWorld...
Re: Web Assembly... Compiling U++ code to run in the web browser... [message #48356 is a reply to message #48346] Sun, 25 June 2017 22:11 Go to previous message
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

It is not a problem, but it requires additional language layer that can be avoid on the library level. For example in Android, Google allows event handling on C++ level.

Sincerely,
Klugier


U++ - one framework to rule them all.
Previous Topic: Very impressed!
Next Topic: Nightly build versioning
Goto Forum:
  


Current Time: Thu Mar 28 17:04:54 CET 2024

Total time taken to generate the page: 0.01658 seconds