[SAoC 2022] Replace druntime Hooks with Templates: Milestone 1, Week 1
rkompass
rkompass at gmx.de
Fri Dec 27 14:09:09 UTC 2024
On Sunday, 25 September 2022 at 17:18:14 UTC, Teodor Dutu wrote:
> Hi,
>
> My project wants to replace dmd hooks to druntime functions
> such as `_d_arraycatnTX`, `_d_newclass` and `_d_newitemT` with
> templates. This will make lowerings to these functions faster
> at runtime, as their templated versions will not require all
> the `TypeInfo`-related indirection used by the current hooks.
> As a result, the maintainability of the compiler will be
> improved as lowerings will now take place in the semantic
> analysis phase, as opposed to the IR phase (where the hooks are
> currently present). In addition, the compiler will also infer
....
> So far, I have implemented and tested the new `_d_arraycatnTX`
> hook. I have also come up with a draft lowering that manages to
> compile druntime and phobos. This was not easy, as they make
> extensive use of array concatenations, especially for strings.
> Now I am working on fixing the lowering and the hook to make
> the tests in dmd pass.
>
> Thanks,\
> Teodor
I don't know how this old post came up, but it's in my listing of
new posts.
The project described seems very promising and attractive.
Two years have passed since.
How did it develop? Can any of the experts give a short summary
please?
(Was it too ambitious? Has it been completed and became obsolete
for some reason. Did it simply die of neglection?)
More information about the Digitalmars-d
mailing list