Nim's ORC - Vorsprung durch Algorithmen

Max Haughton maxhaton at gmail.com
Wed Feb 3 09:00:10 UTC 2021


On Wednesday, 3 February 2021 at 08:58:18 UTC, Petar Kirov 
[ZombineDev] wrote:
> On Tuesday, 2 February 2021 at 11:32:53 UTC, Max Haughton wrote:
>> On Tuesday, 2 February 2021 at 11:14:24 UTC, Ola Fosheim 
>> Grøstad wrote:
>>> [...]
>>
>> I'm not convinced that an IR is needed as much as a clearly 
>> defined pipeline for the AST as it goes through the compiler, 
>> e.g. trying to organise code into passes, at least locally.
>
> One could argue that dmd already has 2 IRs separate from the 
> AST representation:
>
> 1. https://github.com/dlang/dmd/blob/master/src/dmd/e2ir.d, 
> https://github.com/dlang/dmd/blob/master/src/dmd/s2ir.d
> 2. 
> https://github.com/dlang/dmd/blob/7233643c5da2bb531dd0fdec5f823daa12d30217/src/dmd/ob.d#L84-L114
>
>
> :P

You could but you'd be wrong. The "IR" ob.d uses doesn't actually 
track enough information to do proper error messages, and I've 
tried.


More information about the Digitalmars-d mailing list