Re: DMD Frontend working in WebAssembly

2021-10-16 Thread Elronnd via Digitalmars-d-announce
On Saturday, 16 October 2021 at 01:08:11 UTC, max haughton wrote: issues with references being held and confusing the GC, also. A reminder (if one were needed) that one can still have memory leaks with GC :)

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread max haughton via Digitalmars-d-announce
On Friday, 15 October 2021 at 21:58:29 UTC, Paul Backus wrote: On Friday, 15 October 2021 at 15:19:26 UTC, Imperatorn wrote: Btw, why is dmd a memory hog? Because it doesn't free memory. It just allocates, and relies on the OS to clean up at process exit. See

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread Paul Backus via Digitalmars-d-announce
On Friday, 15 October 2021 at 15:19:26 UTC, Imperatorn wrote: Btw, why is dmd a memory hog? Because it doesn't free memory. It just allocates, and relies on the OS to clean up at process exit. See https://www.digitalmars.com/articles/b87.html

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread Imperatorn via Digitalmars-d-announce
On Friday, 15 October 2021 at 11:52:24 UTC, hatf0 wrote: On Friday, 15 October 2021 at 07:28:55 UTC, Sebastiaan Koppe wrote: [...] Very cool! This all would not be possible with your wasm forks -- they are the saving grace here. Regarding upstreaming the patch... that will be rather

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Friday, 15 October 2021 at 11:52:24 UTC, hatf0 wrote: Very cool! This all would not be possible with your wasm forks -- they are the saving grace here. Nice that you got it running. GC also needs some investigation (or malloc), as I keep get spurious OOM errors. Could be because dmd is

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread hatf0 via Digitalmars-d-announce
On Friday, 15 October 2021 at 07:28:55 UTC, Sebastiaan Koppe wrote: On Thursday, 14 October 2021 at 22:58:37 UTC, hatf0 wrote: On Thursday, 14 October 2021 at 22:56:07 UTC, hatf0 wrote: Hi all, I've just managed to get the full DMD front-end to work in WebAssembly (with skoppe's druntime

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread hatf0 via Digitalmars-d-announce
On Friday, 15 October 2021 at 09:54:06 UTC, WebFreak001 wrote: On Thursday, 14 October 2021 at 22:56:07 UTC, hatf0 wrote: Hi all, I've just managed to get the full DMD front-end to work in WebAssembly (with skoppe's druntime fork). This doesn't do code-gen or anything (but it potentially

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread WebFreak001 via Digitalmars-d-announce
On Thursday, 14 October 2021 at 22:56:07 UTC, hatf0 wrote: Hi all, I've just managed to get the full DMD front-end to work in WebAssembly (with skoppe's druntime fork). This doesn't do code-gen or anything (but it potentially could?), and has some OS-specific functionality stubbed out. No

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread Imperatorn via Digitalmars-d-announce
On Thursday, 14 October 2021 at 22:56:07 UTC, hatf0 wrote: Hi all, I've just managed to get the full DMD front-end to work in WebAssembly (with skoppe's druntime fork). This doesn't do code-gen or anything (but it potentially could?), and has some OS-specific functionality stubbed out. No

Re: DMD Frontend working in WebAssembly

2021-10-15 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Thursday, 14 October 2021 at 22:58:37 UTC, hatf0 wrote: On Thursday, 14 October 2021 at 22:56:07 UTC, hatf0 wrote: Hi all, I've just managed to get the full DMD front-end to work in WebAssembly (with skoppe's druntime fork). Cool stuff. I recently picked up my wasm forks again and

Re: DMD Frontend working in WebAssembly

2021-10-14 Thread hatf0 via Digitalmars-d-announce
On Thursday, 14 October 2021 at 22:56:07 UTC, hatf0 wrote: Hi all, I've just managed to get the full DMD front-end to work in WebAssembly (with skoppe's druntime fork). This doesn't do code-gen or anything (but it potentially could?), and has some OS-specific functionality stubbed out. No