Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-09 Thread Lingo Chen via Digitalmars-d-announce
On Thursday, 9 November 2023 at 07:01:23 UTC, Sebastiaan Koppe wrote: On Thursday, 9 November 2023 at 04:02:48 UTC, Lingo Chen wrote: Yes, the wasmgc's main selling point is the sharing of GC and TypeInfo between Javascript and WASM. Not just javascript, but any WASM runtime. Sharing of data

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-08 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Thursday, 9 November 2023 at 04:02:48 UTC, Lingo Chen wrote: Yes, the wasmgc's main selling point is the sharing of GC and TypeInfo between Javascript and WASM. Not just javascript, but any WASM runtime. Sharing of data between the JS/WASM are problematic. JS has no destructor, so it

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-08 Thread Lingo Chen via Digitalmars-d-announce
On Wednesday, 8 November 2023 at 13:52:34 UTC, Richard (Rikki) Andrew Cattermole wrote: On 09/11/2023 2:42 AM, Hipreme wrote: If the runtime is not revived, there is no point in having a GC at all, and it is impossible to use the GC without the runtime, but runtime without the GC, it is

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-08 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
On 09/11/2023 2:42 AM, Hipreme wrote: If the runtime is not revived, there is no point in having a GC at all, and it is impossible to use the GC without the runtime, but runtime without the GC, it is possible :) That's not true. You wouldn't need anything in druntime to make the wasm GC

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-08 Thread Hipreme via Digitalmars-d-announce
On Wednesday, 8 November 2023 at 13:29:46 UTC, Lingo Chen wrote: On Wednesday, 8 November 2023 at 09:06:31 UTC, Sebastiaan Koppe wrote: On Monday, 6 November 2023 at 23:44:11 UTC, Lingo Chen wrote: On Monday, 6 November 2023 at 11:05:45 UTC, Sebastiaan Koppe wrote: [...] Unsure how it's

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-08 Thread Lingo Chen via Digitalmars-d-announce
On Wednesday, 8 November 2023 at 09:06:31 UTC, Sebastiaan Koppe wrote: On Monday, 6 November 2023 at 23:44:11 UTC, Lingo Chen wrote: On Monday, 6 November 2023 at 11:05:45 UTC, Sebastiaan Koppe wrote: https://llvm.org/devmtg/2022-11/slides/TechTalk3-ClangClang-WebAssembly.pdf llvm ir seems

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-08 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Monday, 6 November 2023 at 23:44:11 UTC, Lingo Chen wrote: On Monday, 6 November 2023 at 11:05:45 UTC, Sebastiaan Koppe wrote: https://llvm.org/devmtg/2022-11/slides/TechTalk3-ClangClang-WebAssembly.pdf llvm ir seems to have support for the reftype(gc). so it a compiler problem? Unsure

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-06 Thread Lingo Chen via Digitalmars-d-announce
On Monday, 6 November 2023 at 11:05:45 UTC, Sebastiaan Koppe wrote: https://llvm.org/devmtg/2022-11/slides/TechTalk3-ClangClang-WebAssembly.pdf llvm ir seems to have support for the reftype(gc). so it a compiler problem? Unsure how it's progressed since but as can be seen on the last slide

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-06 Thread Hipreme via Digitalmars-d-announce
On Monday, 6 November 2023 at 11:05:45 UTC, Sebastiaan Koppe wrote: On Monday, 6 November 2023 at 00:47:43 UTC, Lingo Chen wrote: On Sunday, 5 November 2023 at 16:18:53 UTC, Sebastiaan Koppe wrote: On Sunday, 5 November 2023 at 01:28:25 UTC, Lingo Chen wrote:

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-06 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Monday, 6 November 2023 at 00:47:43 UTC, Lingo Chen wrote: On Sunday, 5 November 2023 at 16:18:53 UTC, Sebastiaan Koppe wrote: On Sunday, 5 November 2023 at 01:28:25 UTC, Lingo Chen wrote: https://v8.dev/blog/wasm-gc-porting wasmgc is shipping. any plan for porting? My understanding is

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-05 Thread Lingo Chen via Digitalmars-d-announce
On Sunday, 5 November 2023 at 16:18:53 UTC, Sebastiaan Koppe wrote: On Sunday, 5 November 2023 at 01:28:25 UTC, Lingo Chen wrote: https://v8.dev/blog/wasm-gc-porting wasmgc is shipping. any plan for porting? My understanding is that it requires emitting dedicated instructions for allocating

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-05 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
On 06/11/2023 5:18 AM, Sebastiaan Koppe wrote: I am not sure what a possible path to support should look like, aside from writing a complete fresh backend. I don't think it would be a whole new backend. The output is the LLVM IR essentially, so its just the glue code that would need to be

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-05 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Sunday, 5 November 2023 at 01:28:25 UTC, Lingo Chen wrote: https://v8.dev/blog/wasm-gc-porting wasmgc is shipping. any plan for porting? My understanding is that it requires emitting dedicated instructions for allocating such objects, as well as dedicated instructions for accessing them.

Re: Good News: Almost all druntime supported on arsd webassembly

2023-11-04 Thread Lingo Chen via Digitalmars-d-announce
On Friday, 6 January 2023 at 22:39:36 UTC, Adam D Ruppe wrote: On Friday, 6 January 2023 at 22:14:23 UTC, Ferhat Kurtulmuş wrote: One question. Does GC work with Adam's druntime for wasm? I haven't actually written one yet, so it leaks if you don't pay attention yourself. But I have a plan

Re: Good News: Almost all druntime supported on arsd webassembly

2023-01-09 Thread Ferhat Kurtulmuş via Digitalmars-d-announce
On Friday, 6 January 2023 at 22:39:36 UTC, Adam D Ruppe wrote: On Friday, 6 January 2023 at 22:14:23 UTC, Ferhat Kurtulmuş wrote: One question. Does GC work with Adam's druntime for wasm? I haven't actually written one yet, so it leaks if you don't pay attention yourself. But I have a plan

Re: Good News: Almost all druntime supported on arsd webassembly

2023-01-07 Thread Guillaume Piolat via Digitalmars-d-announce
On Friday, 6 January 2023 at 12:52:43 UTC, Hipreme wrote: Hello people. I have tried working again with adam's wasm minimal runtime, and yesterday I was able to make a great progress on it. Awesome! To think that custom druntime can get you out of platform situations is great risk

Re: Good News: Almost all druntime supported on arsd webassembly

2023-01-06 Thread Adam D Ruppe via Digitalmars-d-announce
On Friday, 6 January 2023 at 22:14:23 UTC, Ferhat Kurtulmuş wrote: One question. Does GC work with Adam's druntime for wasm? I haven't actually written one yet, so it leaks if you don't pay attention yourself. But I have a plan that should work: you do the setTimeout(collect, 0) so it runs

Re: Good News: Almost all druntime supported on arsd webassembly

2023-01-06 Thread Adam D Ruppe via Digitalmars-d-announce
On Friday, 6 January 2023 at 22:13:15 UTC, H. S. Teoh wrote: The big question I have right now is, what's the status of interfacing with web APIs such as WebGL? This part is really easy, you can call it from D with the opDispatch or pass it through as eval strings.

Re: Good News: Almost all druntime supported on arsd webassembly

2023-01-06 Thread Ferhat Kurtulmuş via Digitalmars-d-announce
On Friday, 6 January 2023 at 12:52:43 UTC, Hipreme wrote: Hello people. I have tried working again with adam's wasm minimal runtime, and yesterday I was able to make a great progress on it. [...] This sounds great. Thank you for your efforts. I will play around with it someday. I have not

Re: Good News: Almost all druntime supported on arsd webassembly

2023-01-06 Thread H. S. Teoh via Digitalmars-d-announce
On Fri, Jan 06, 2023 at 12:52:43PM +, Hipreme via Digitalmars-d-announce wrote: > Hello people. I have tried working again with adam's wasm minimal > runtime, and yesterday I was able to make a great progress on it. [...] > All those tests are currently passing. That means we almost got all >