www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - "Compiler as a service" in C# 4.0

reply Bill Baxter <wbaxter gmail.com> writes:
This blog post points to part of a talk by Anders Hejlsberg at PDC

http://dobbscodetalk.com/index.php?option=com_myblog&show=C-Sharp-4.0-with-a-REPL-Read-Eval-Print-Loop-.html&Itemid=29

The part of this vid
http://channel9.msdn.com/pdc2008/TL16/
which he points to at 60 minutes talks about the "compiler as a service".

It's an idea which has been mentioned here many times, so I thought I

reality.

--bb
Jan 05 2010
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
Bill Baxter wrote:
 This blog post points to part of a talk by Anders Hejlsberg at PDC

 http://dobbscodetalk.com/index.php?option=com_myblog&show=C-Sharp-4.0-with-a-REPL-Read-Eval-Print-Loop-.html&Itemid=29
 
 The part of this vid
 http://channel9.msdn.com/pdc2008/TL16/
 which he points to at 60 minutes talks about the "compiler as a service".
 
 It's an idea which has been mentioned here many times, so I thought I

 reality.
 
 --bb
Interesting, thanks for the link. At 12:16 - "But of course there are many things we need to think about: immutable objects, purity of functions, isolation... and these are things that are heavily on our mind day-to-day." It's good to know D has all of the above taken care of. Andrei
Jan 05 2010
prev sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Bill Baxter" <wbaxter gmail.com> wrote in message 
news:mailman.7.1262710304.4461.digitalmars-d puremagic.com...
 This blog post points to part of a talk by Anders Hejlsberg at PDC

 http://dobbscodetalk.com/index.php?option=com_myblog&show=C-Sharp-4.0-with-a-REPL-Read-Eval-Print-Loop-.html&Itemid=29

 The part of this vid
 http://channel9.msdn.com/pdc2008/TL16/
 which he points to at 60 minutes talks about the "compiler as a service".

 It's an idea which has been mentioned here many times, so I thought I

 reality.

 --bb
Jan 05 2010
parent reply Jussi Jumppanen <jussij zeusedit.com> writes:
Nick Sabalausky Wrote:


It is. Class: CSharpCodeProvider Namespace: Microsoft.CSharp Assembly: System (in System.dll)
Jan 05 2010
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
Jussi Jumppanen wrote:
 Nick Sabalausky Wrote:
 

It is. Class: CSharpCodeProvider Namespace: Microsoft.CSharp Assembly: System (in System.dll)
The REPL in Hejlsberg's demo requires a bit more than what CSharpCodeProvider offers. Instead of compiling an entire file, the loop needs to compile a code snippet and save the resulting environment for further evaluations. The changes in the compiler aren't huge, and the effect is quite nice. Andrei
Jan 05 2010
parent Tim Matthews <tim.matthews7 gmail.com> writes:
On Tue, 05 Jan 2010 21:00:13 -0600
Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> wrote:

 Jussi Jumppanen wrote:
 Nick Sabalausky Wrote:
 

It is. Class: CSharpCodeProvider Namespace: Microsoft.CSharp Assembly: System (in System.dll) compiler.
The REPL in Hejlsberg's demo requires a bit more than what CSharpCodeProvider offers. Instead of compiling an entire file, the loop needs to compile a code snippet and save the resulting environment for further evaluations. The changes in the compiler aren't huge, and the effect is quite nice. Andrei
This is an old vid but IIRC Miguel created a reply vid explaining how Mono had the ability to do REPLs for a long time.
Jan 06 2010