I think I still need more feedback before I can properly develop this idea into a DIP. Particularly, I need to know if there are any problems with the lowering discussed above.
August 10 Re: Returning variable-sized stack data | ||||
---|---|---|---|---|
| ||||
Posted in reply to IchorDev |
August 12 Re: Returning variable-sized stack data | ||||
---|---|---|---|---|
| ||||
Posted in reply to IchorDev | On Wednesday, 17 July 2024 at 08:23:45 UTC, IchorDev wrote: >On Monday, 15 July 2024 at 17:20:57 UTC, monkyyy wrote: >I think you should also preemptively handle runtime stack allocated arrays inside the function
Oh yes, that would be fantastic!
Why not this:
With the same guarantees of allocation elision as |
August 12 Re: Returning variable-sized stack data | ||||
---|---|---|---|---|
| ||||
Posted in reply to Quirin Schroll | On Monday, 12 August 2024 at 10:37:21 UTC, Quirin Schroll wrote: >On Wednesday, 17 July 2024 at 08:23:45 UTC, IchorDev wrote: >On Monday, 15 July 2024 at 17:20:57 UTC, monkyyy wrote: >I think you should also preemptively handle runtime stack allocated arrays inside the function
Oh yes, that would be fantastic!
Why not this:
So it doesn't make sense to read that line A value is a value, no With the same guarantees of allocation elision as D's biggest mistake was to make this GC allocated without requiring I hope this gets fixed with an Edition, because it is cringe |
August 13 Re: Returning variable-sized stack data | ||||
---|---|---|---|---|
| ||||
Posted in reply to ryuukk_ | On Monday, 12 August 2024 at 17:42:11 UTC, ryuukk_ wrote: >On Monday, 12 August 2024 at 10:37:21 UTC, Quirin Schroll wrote: >On Wednesday, 17 July 2024 at 08:23:45 UTC, IchorDev wrote: >On Monday, 15 July 2024 at 17:20:57 UTC, monkyyy wrote: >I think you should also preemptively handle runtime stack allocated arrays inside the function
Oh yes, that would be fantastic!
Why not this:
So it doesn't make sense to read that line Nonsense. Try this (use
Oddly, A value is a value, no What you’re basically saying is: You don’t use D; you use a personal language based on D. > >With the same guarantees of allocation elision as D's biggest mistake was to make this GC allocated without requiring I hope this gets fixed with an Edition, because it is cringe Funnily enough, C#12 added collection expressions which are basically what D had all along. In particular, no use of Some people overly care about GC and allocations. D is a GC language. It has facilities to statically ensure some parts of a program are free of GC allocations, probably for the purpose of optimizing hot spots. Most of Phobos is not written with |
August 13 Re: Returning variable-sized stack data | ||||
---|---|---|---|---|
| ||||
Posted in reply to Quirin Schroll | On Tuesday, 13 August 2024 at 09:55:28 UTC, Quirin Schroll wrote: >On Monday, 12 August 2024 at 17:42:11 UTC, ryuukk_ wrote: >On Monday, 12 August 2024 at 10:37:21 UTC, Quirin Schroll wrote: >On Wednesday, 17 July 2024 at 08:23:45 UTC, IchorDev wrote: >On Monday, 15 July 2024 at 17:20:57 UTC, monkyyy wrote: >I think you should also preemptively handle runtime stack allocated arrays inside the function
Oh yes, that would be fantastic!
Why not this:
So it doesn't make sense to read that line Nonsense. Try this (use
Oddly, A value is a value, no What you’re basically saying is: You don’t use D; you use a personal language based on D. I don't use a personal language based on D, i use D with a custom runtime, big difference, because of that i can target both consoles and WebAssembly, you can't with your C#/Java'd D > > >With the same guarantees of allocation elision as It would have never been an issue if D made the right call of not expecting D's biggest mistake was to make this GC allocated without requiring I hope this gets fixed with an Edition, because it is cringe Funnily enough, C#12 added collection expressions which are basically what D had all along. In particular, no use of Some people overly care about GC and allocations. D is a GC language. It has facilities to statically ensure some parts of a program are free of GC allocations, probably for the purpose of optimizing hot spots. Most of Phobos is not written with C# is a JIT/GC language D was not, it slowly became one because nobody dared calling out the GC and Java people, they have ruined its reputation during a timeline that made Rust popular and now Zig.. It's easy to become C#, it's harder for C# to become D or even Rust (stackalloc :vomit:) |
August 17 Re: Returning variable-sized stack data | ||||
---|---|---|---|---|
| ||||
Posted in reply to ryuukk_ | On Tuesday, 13 August 2024 at 10:53:40 UTC, ryuukk_ wrote: >On Tuesday, 13 August 2024 at 09:55:28 UTC, Quirin Schroll wrote: Why can’t any given video games console use DRuntime? > > > >[…] It would have never been an issue if D made the right call of not expecting I agree that […] C# is a JIT/GC language D was not, it slowly became one Uh… D didn’t become a JIT language though. I think I’m going to keep an eye on what happens at the DIP1000 meeting and see where to go with this from there. Maybe they’ll have come up with something much better than this or |