Re: Mid level IR

2016-05-10 Thread Ola Fosheim Grøstad via Digitalmars-d

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!


Re: Mid level IR

2016-04-28 Thread jmh530 via Digitalmars-d
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/


Re: Mid level IR

2015-08-16 Thread via Digitalmars-d

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?


Re: Mid level IR

2015-08-16 Thread deadalnix via Digitalmars-d
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.


Re: Mid level IR

2015-08-15 Thread deadalnix via Digitalmars-d
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.


Re: Mid level IR

2015-08-14 Thread Dmitry Olshansky via Digitalmars-d

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


Mid level IR

2015-08-14 Thread via Digitalmars-d

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?


Re: Mid level IR

2015-08-14 Thread rsw0x via Digitalmars-d
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?