Back

Moving to C# 7

Any plans to move up to newer versions of .Net/C#?  Doing:

Log(string.Format(".Net Runtime Version = {0}", typeof(string).Assembly.ImageRuntimeVersion));

I get the following from the log:

2013-10-12 00:00:00 .Net Runtime Version = v4.0.30319

Which presumably means the c# compiler version is 4.0.  see:

https://stackoverflow.com/questions/247621/what-are-the-correct-version-numbers-for-c/247623#247623

I'd like to take advantage of some C# notation like:

public Dictionary<(string, DateTime), MyClass> ...

to take advantage of composite keys in a dictionary.  Yes, I can work around this, I just need to be careful of reflexively taking advantage of newer c# syntax.  Not a blocking issue, just curious if there's plans to update .Net/c# anytime in the near future.


 
Update Backtest







QuantConnect runs Lean in Linux using Mono in our server/cloud.
After we have tried to upgrade .Net and C#, we have found memory leaks which have recently been addressed, therefore we will try it again in the near future.

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Ah, I see.  OK.  Plans to move to .Net Core in the future over Mono?  Just curious.

0

Yes definitely, we can get a 2x speed up on Core. We're waiting on

libraries we depend on to port across first.
0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed