Page 1 of 1

WebAssembly

Posted: Thu Oct 05, 2017 6:09 am
by DoubleDutch
WebAssembly looks like it now has a consensus. It would be great if a future version of (both) PureBasic and SpiderBasic would export to this. By Christmas it will be supported by all major browsers.

"WebAssembly has a pretty conventional ISA: 8-bit bytes, two’s complement integers, little-endian, and a lot of other normal properties. Reasonably portable C/C++ code should port to WebAssembly without difficultly."

http://webassembly.org/roadmap/

https://developer.mozilla.org/en-US/docs/WebAssembly

Re: WebAssembly

Posted: Thu Oct 05, 2017 3:33 pm
by djes
Thank you for the information.

Re: WebAssembly

Posted: Thu Apr 04, 2019 9:24 pm
by Tenaja
DoubleDutch wrote:... It would be great if a future version of (both) PureBasic and SpiderBasic would export to this. ...
+1

Re: WebAssembly

Posted: Wed Jul 03, 2019 11:41 am
by crgimenes
I use Golang every day and with Go and I have basically two options, compile to JavaScript using
gopherjs or more recently to webassembly.

The problem is that in both options the generated executable is giant and this is bad
because download time matters a lot.

This huge executable happens due to the need for a garbage collector and other Go runtime
resources that were never intended to generate small executables.

But unlike Go, PureBASIC seems to have the right characteristics to generate a tiny WASM binary.
I hope to see webassembly be supported soon and I will have fun creating 2D games for the web
with the best language for it. :D

Re: WebAssembly

Posted: Wed Jul 03, 2019 1:23 pm
by skywalk
+100 :!:
This solves code obfuscation and speedier pages.

Re: WebAssembly

Posted: Wed Jul 03, 2019 2:16 pm
by Justin
I hope webassembly never becomes a standard. I don't like the idea of executing binary code from a website, it will be a hackers dream, security will be bypassed.

HTML was designed in plain text for a reason.

Re: WebAssembly

Posted: Wed Jul 03, 2019 2:40 pm
by crgimenes
Justin wrote:I hope webassembly never becomes a standard. I don't like the idea of executing binary code from a website, it will be a hackers dream, security will be bypassed.
I also prefer plain text.
But I prefer webassembly than javascript, at least I can choose the language.
And I do not believe that webassembly will be a bigger security problem than today is the javascript.

Re: WebAssembly

Posted: Wed Jul 03, 2019 3:04 pm
by skywalk
The browser is sandboxed for security regardless of underlying code.
Javascript is wide open. Webassembly is compiled gibberish.
The internet, while nobly serving up and handshaking with text, has wasted untold electrons/clock cycles with binary conversions and hoops. We enjoy the compression algorithms developed to deliver our binary content, but it is far past time for a native binary internet. :wink: