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
WebAssembly
- DoubleDutch
- Addict
- Posts: 3219
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
WebAssembly
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Re: WebAssembly
Thank you for the information.
Re: WebAssembly
+1DoubleDutch wrote:... It would be great if a future version of (both) PureBasic and SpiderBasic would export to this. ...
Re: WebAssembly
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.
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.
Re: WebAssembly
+100
This solves code obfuscation and speedier pages.
This solves code obfuscation and speedier pages.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: WebAssembly
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.
HTML was designed in plain text for a reason.
Re: WebAssembly
I also prefer plain text.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.
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
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.
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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum