December 17, 2015
https://hacks.mozilla.org/2015/12/compiling-to-webassembly-its-happening/
December 18, 2015
On Thursday, 17 December 2015 at 20:22:41 UTC, yawniek wrote:
> https://hacks.mozilla.org/2015/12/compiling-to-webassembly-its-happening/

Thanks for sharing! This looks promising.

December 23, 2015
On Friday, 18 December 2015 at 10:21:49 UTC, Ola Fosheim Grøstad wrote:
> On Thursday, 17 December 2015 at 20:22:41 UTC, yawniek wrote:
>> https://hacks.mozilla.org/2015/12/compiling-to-webassembly-its-happening/
>
> Thanks for sharing! This looks promising.

Could anybody show how C++ App for web will look like? I really can't fund any examples except AST. Would it have access to DOM or it would look like Java applet?
December 23, 2015
On Wednesday, 23 December 2015 at 07:37:39 UTC, Suliman wrote:
> On Friday, 18 December 2015 at 10:21:49 UTC, Ola Fosheim Grøstad wrote:
>> On Thursday, 17 December 2015 at 20:22:41 UTC, yawniek wrote:
>>> https://hacks.mozilla.org/2015/12/compiling-to-webassembly-its-happening/
>>
>> Thanks for sharing! This looks promising.
>
> Could anybody show how C++ App for web will look like? I really can't fund any examples except AST. Would it have access to DOM or it would look like Java applet?

WebAssembly is an AST representation, so I'm not sure what else you expect than an AST ?
December 23, 2015
On Wednesday, 23 December 2015 at 10:02:18 UTC, deadalnix wrote:
> On Wednesday, 23 December 2015 at 07:37:39 UTC, Suliman wrote:
>> On Friday, 18 December 2015 at 10:21:49 UTC, Ola Fosheim Grøstad wrote:
>>> On Thursday, 17 December 2015 at 20:22:41 UTC, yawniek wrote:
>>>> https://hacks.mozilla.org/2015/12/compiling-to-webassembly-its-happening/
>>>
>>> Thanks for sharing! This looks promising.
>>
>> Could anybody show how C++ App for web will look like? I really can't fund any examples except AST. Would it have access to DOM or it would look like Java applet?
>
> WebAssembly is an AST representation, so I'm not sure what else you expect than an AST ?

For example I do not know JS. And only C++. How would look like my web-app with WASM?
December 23, 2015
On Wednesday, 23 December 2015 at 10:06:20 UTC, Suliman wrote:
> For example I do not know JS. And only C++. How would look like my web-app with WASM?

First have a look at this, qt-emscripten:

http://vps2.etotheipiplusone.com:30176/redmine/projects/emscripten-qt/wiki/Demos

WASM will allow programming languages and libraries to be compiled down to WASM code and then run in the browser, rather like is happening with qt-emscripten (C++ is converted to javascript). As regards how it is rendered, DOM, OpenGL etc., I guess that will be an implementation choice.



December 24, 2015
On Thursday, 18 June 2015 at 08:05:48 UTC, John Colvin wrote:
> This appears to have involvement from all major browser vendors, which provides hope it might actually catch on properly. An llvm backend will be created which will compile to "wasm", hopefully LDC and/or SDC could glue to this.
>
> https://www.w3.org/community/webassembly/
>
> https://github.com/WebAssembly
>
> In particular, see https://github.com/WebAssembly/design/blob/master/HighLevelGoals.md https://github.com/WebAssembly/design/blob/master/FAQ.md and https://github.com/WebAssembly/design/blob/master/MVP.md

As far as SDC support goes...
I am pretty torn.

We need more platforms to see if our API is going to hold up.
But at the same time we need to be focused on compiling more of D...
If someone is willing to do this I can provide a little support.
March 14, 2016
On Saturday, 27 June 2015 at 15:01:53 UTC, Ola Fosheim Grøstad wrote:
> On Friday, 26 June 2015 at 02:29:40 UTC, deadalnix wrote:
>> By this time we'd have a PR and we could play with it to decide using first hand experience.
>
> For which browser? It isn't implemented, is it?

You got your wish, they just exposed webasm through v8 a couple days ago:

https://bugs.chromium.org/p/chromium/issues/detail?id=575167#c13

It should show up in the latest Chrome Canary builds soon, where it can be turned on through chrome://flags.  I'm unsure how you'd actually pass webasm to v8 though, probably have to dig through the tests to figure that out.

Now that it's in a browser and llvm has a WebAssembly target, as mentioned in yawniek's link above, porting D to use webasm through ldc might make a good GSoC project, with the caveat that all the webasm tools are under development.

For any students interested, here's a good WebAssembly overview I just saw:

https://software.intel.com/en-us/articles/webassembly-an-initial-view
March 14, 2016
On Monday, 14 March 2016 at 07:46:28 UTC, Joakim wrote:
> On Saturday, 27 June 2015 at 15:01:53 UTC, Ola Fosheim Grøstad wrote:
>> On Friday, 26 June 2015 at 02:29:40 UTC, deadalnix wrote:
>>> By this time we'd have a PR and we could play with it to decide using first hand experience.
>>
>> For which browser? It isn't implemented, is it?
>
> You got your wish, they just exposed webasm through v8 a couple days ago:

Thanks!!! *SMOOCH*!

> Now that it's in a browser and llvm has a WebAssembly target, as mentioned in yawniek's link above, porting D to use webasm through ldc might make a good GSoC project, with the caveat that all the webasm tools are under development.

Yes, that sounds like a very interesting GSoC project that probably could be turned into a master thesis.

March 14, 2016
On Monday, 14 March 2016 at 07:46:28 UTC, Joakim wrote:
> On Saturday, 27 June 2015 at 15:01:53 UTC, Ola Fosheim Grøstad wrote:
>> [...]
>
> You got your wish, they just exposed webasm through v8 a couple days ago:
>
> [...]

I am still getting student interest in new proposals ... are you interested in mentoring?