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 » About WebAssembly
Re: About WebAssembly [message #56209 is a reply to message #56206] Mon, 08 February 2021 23:00 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
mirek wrote on Mon, 08 February 2021 14:49
Novo wrote on Mon, 08 February 2021 19:35
AFAIK, WebAssembly requires all data to be aligned by at least the word size. This can be a problem ...


Even char? Like you cannot do char *s = ...; *s++?

Probably, you can do that. Last time I had to deal with compiling C++ to Web was, probably, ~5 years ago. And that was Emscripten.
The only thing I remember for sure I had to properly align unaligned data structures, otherwise we were getting runtime exceptions. Part of the code had to be disabled because of problems with data alignment.

This was ~FIVE years ago. Life has changed since that time. And we have WebAssembly in addition to Emscripten now.

Another thing: compilation with Emscripten wasn't a problem at all.

P.S. I personally would prefer to use Turtle because of security reasons. WebAssembly can be easily decompiled, and in case of Turtle the only thing people can steal is a picture in a Web-browser. Rolling Eyes


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Strange Architecture
Next Topic: Best way to chat between two pc
Goto Forum:
  


Current Time: Sat May 11 11:31:22 CEST 2024

Total time taken to generate the page: 0.02782 seconds