www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Mid level IR

reply "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
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?
Aug 14 2015
next sibling parent reply "rsw0x" <anonymous anonymous.com> writes:
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?
Aug 14 2015
parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
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
Aug 14 2015
prev sibling parent reply "deadalnix" <deadalnix gmail.com> writes:
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.
Aug 15 2015
parent reply "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= writes:
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?
Aug 16 2015
parent "deadalnix" <deadalnix gmail.com> writes:
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.
Aug 16 2015