Thread overview
Mid level IR
Aug 14, 2015
rsw0x
Aug 14, 2015
Dmitry Olshansky
Aug 15, 2015
deadalnix
Aug 16, 2015
deadalnix
Apr 28, 2016
jmh530
August 14, 2015
Rust is getting a mid level IR for speeding up compilation.

http://blog.rust-lang.org/2015/08/14/Next-year.html
https://github.com/rust-lang/rfcs/pull/1211

It has been mentioned that before that this would be worthwhile for D too.

It also would make it much easier for backends to keep up with the front end. The front end generating MIR, and the backends using it.

Another option would be to interface with Rust by generating Rust MIR from D, if that is possible.

What do you think?
August 14, 2015
On Friday, 14 August 2015 at 16:13:07 UTC, Ola Fosheim Grøstad wrote:
> Rust is getting a mid level IR for speeding up compilation.
>
> http://blog.rust-lang.org/2015/08/14/Next-year.html

>There are some really neat things you can do in Rust today – if you’re willing to use the Nightly channel. For example, the regex crate comes with macros that, at compile time, turn regular expressions directly into machine code to match them.

Eating D's lunch?
August 14, 2015
On 14-Aug-2015 20:00, rsw0x wrote:
> On Friday, 14 August 2015 at 16:13:07 UTC, Ola Fosheim Grøstad wrote:
>> Rust is getting a mid level IR for speeding up compilation.
>>
>> http://blog.rust-lang.org/2015/08/14/Next-year.html
>
>> There are some really neat things you can do in Rust today – if you’re
>> willing to use the Nightly channel. For example, the regex crate comes
>> with macros that, at compile time, turn regular expressions directly
>> into machine code to match them.
>
> Eating D's lunch?

Or whatever is left of it. Truth be told re2c was there some ~15 years before for those who can stand adding an external code generator to the build script.

-- 
Dmitry Olshansky
August 15, 2015
On Friday, 14 August 2015 at 16:13:07 UTC, Ola Fosheim Grøstad wrote:
> Rust is getting a mid level IR for speeding up compilation.
>
> http://blog.rust-lang.org/2015/08/14/Next-year.html
> https://github.com/rust-lang/rfcs/pull/1211
>
> It has been mentioned that before that this would be worthwhile for D too.
>
> It also would make it much easier for backends to keep up with the front end. The front end generating MIR, and the backends using it.
>
> Another option would be to interface with Rust by generating Rust MIR from D, if that is possible.
>
> What do you think?

This is what SDC is doing already.
August 16, 2015
On Saturday, 15 August 2015 at 21:13:33 UTC, deadalnix wrote:
> On Friday, 14 August 2015 at 16:13:07 UTC, Ola Fosheim Grøstad wrote:

>> Another option would be to interface with Rust by generating Rust MIR from D, if that is possible.
>>
>> What do you think?
>
> This is what SDC is doing already.

Interesting, is the format documented somewhere?
August 16, 2015
On Sunday, 16 August 2015 at 10:12:07 UTC, Ola Fosheim Grøstad wrote:
> On Saturday, 15 August 2015 at 21:13:33 UTC, deadalnix wrote:
>> On Friday, 14 August 2015 at 16:13:07 UTC, Ola Fosheim Grøstad wrote:
>
>>> Another option would be to interface with Rust by generating Rust MIR from D, if that is possible.
>>>
>>> What do you think?
>>
>> This is what SDC is doing already.
>
> Interesting, is the format documented somewhere?

No, and it likely to change significantly during the dev at this stage.
April 28, 2016
On Friday, 14 August 2015 at 16:13:07 UTC, Ola Fosheim Grøstad wrote:
> Rust is getting a mid level IR for speeding up compilation.
>

Looks like it will be in rust "soonish"

http://blog.rust-lang.org/2016/04/19/MIR.html
https://www.reddit.com/r/programming/comments/4gp6hc/introducing_mir/
May 10, 2016
On Thursday, 28 April 2016 at 15:20:03 UTC, jmh530 wrote:
> Looks like it will be in rust "soonish"
>
> http://blog.rust-lang.org/2016/04/19/MIR.html
> https://www.reddit.com/r/programming/comments/4gp6hc/introducing_mir/

Thanks for the links!