Re: NaCl/Emscripten

2015-01-14 Thread via Digitalmars-d
On Wednesday, 14 January 2015 at 03:11:41 UTC, Janus wrote: On Sunday, 11 January 2015 at 01:33:25 UTC, Ola Fosheim Grøstad wrote: On Sunday, 11 January 2015 at 01:05:59 UTC, Manu via Digitalmars-d wrote: With asm.js you are also stuck with a fixed size heap The heap can grow now, see https:

Re: NaCl/Emscripten

2015-01-13 Thread Janus via Digitalmars-d
On Sunday, 11 January 2015 at 01:33:25 UTC, Ola Fosheim Grøstad wrote: On Sunday, 11 January 2015 at 01:05:59 UTC, Manu via Digitalmars-d wrote: With asm.js you are also stuck with a fixed size heap The heap can grow now, see https://github.com/kripken/emscripten/blob/master/ChangeLog.markdow

Re: NaCl/Emscripten

2015-01-10 Thread via Digitalmars-d
On Sunday, 11 January 2015 at 01:05:59 UTC, Manu via Digitalmars-d wrote: The thing about cheerp vs emscripten, is that while cheerp produces code that is more like javascript, emscripten produces asm.js, which is lightning fast by comparison. If there's actual work being done, then emscripten

Re: NaCl/Emscripten

2015-01-10 Thread Manu via Digitalmars-d
On 11 January 2015 at 01:31, via Digitalmars-d wrote: > There are also other compilers from C++ to Javascript, Mandreel and Cheerp. > > Cheerp claims to support the builtin Javascript garbage collector: > > «Dynamic memory management. C++ objects are translated directly to JS > objects, without th

Re: NaCl/Emscripten

2015-01-10 Thread Martin Nowak via Digitalmars-d
On 01/09/2015 10:28 AM, Manu via Digitalmars-d wrote: I'm looking at another potential opportunity to get D into the office, but the target's for this particular project are NaCL and/or Emscripten. I was gonna start hacking around to see what the limitations are with Emscripten on D code tonight

Re: NaCl/Emscripten

2015-01-10 Thread via Digitalmars-d
There are also other compilers from C++ to Javascript, Mandreel and Cheerp. Cheerp claims to support the builtin Javascript garbage collector: «Dynamic memory management. C++ objects are translated directly to JS objects, without the proxy of an emulated, flat memory space. Allow your applica

Re: NaCl/Emscripten

2015-01-09 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 9 January 2015 at 15:27:08 UTC, Mengu wrote: Don't know if there's any interest but Adam D. Ruppe has hacked DMD to output JavaScript. You should be able to find it somewhere on the newsgroup. guess you're talking about dtojs: https://github.com/adamdruppe/dtojs. I haven't update

Re: NaCl/Emscripten

2015-01-09 Thread Mengu via Digitalmars-d
On Friday, 9 January 2015 at 12:46:41 UTC, Jacob Carlborg wrote: On 2015-01-09 10:28, Manu via Digitalmars-d wrote: I'm looking at another potential opportunity to get D into the office, but the target's for this particular project are NaCL and/or Emscripten. I was gonna start hacking around t

Re: NaCl/Emscripten

2015-01-09 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-09 10:28, Manu via Digitalmars-d wrote: I'm looking at another potential opportunity to get D into the office, but the target's for this particular project are NaCL and/or Emscripten. I was gonna start hacking around to see what the limitations are with Emscripten on D code tonight. H

Re: NaCl/Emscripten

2015-01-09 Thread deadalnix via Digitalmars-d
On Friday, 9 January 2015 at 09:28:22 UTC, Manu via Digitalmars-d wrote: I'm looking at another potential opportunity to get D into the office, but the target's for this particular project are NaCL and/or Emscripten. I was gonna start hacking around to see what the limitations are with Emscri

Re: NaCl/Emscripten

2015-01-09 Thread Tobias Pankrath via Digitalmars-d
I can probably get by with @nogc. There's no threading in asm.js either, so that might be a spanner. Maybe -betterc would be usable out of the box... You could compile your D code to LLVM IR using ldc2 --output-ll and feed that to emcc to see how far you get.

Re: NaCl/Emscripten

2015-01-09 Thread via Digitalmars-d
On Friday, 9 January 2015 at 10:10:36 UTC, Manu via Digitalmars-d wrote: I can probably get by with @nogc. There's no threading in asm.js either, so that might be a spanner. You have worker threads, so you would have to use message passing, but I believe you can transfer "byte heaps" by refere

Re: NaCl/Emscripten

2015-01-09 Thread Manu via Digitalmars-d
On 9 January 2015 at 19:51, via Digitalmars-d wrote: > On Friday, 9 January 2015 at 09:28:22 UTC, Manu via Digitalmars-d wrote: >> >> I was gonna start hacking around to see what the limitations are with >> Emscripten on D code tonight. Has anyone done any serious >> investigation here? >> >> NaCl

Re: NaCl/Emscripten

2015-01-09 Thread via Digitalmars-d
On Friday, 9 January 2015 at 09:28:22 UTC, Manu via Digitalmars-d wrote: I was gonna start hacking around to see what the limitations are with Emscripten on D code tonight. Has anyone done any serious investigation here? NaCl is a more useful target, but I think that will rely on a special bu

NaCl/Emscripten

2015-01-09 Thread Manu via Digitalmars-d
I'm looking at another potential opportunity to get D into the office, but the target's for this particular project are NaCL and/or Emscripten. I was gonna start hacking around to see what the limitations are with Emscripten on D code tonight. Has anyone done any serious investigation here? NaCl