Also, forgot to add. In my earlier post I wasn't happy enough to see Monte-Carlo Simulation implemented with Blocking Collection I have seen in " C# book by Germani and Duffy". It turned out that my parallel implementation based on Blocking Collection is the winner in terms of speed. I hav...
I'm pre-Agile generation. What's Minimum Viable Product == applied common sense? In the context of App Development - it's a complete product with minim functionality, so users could start play around with it and give early feedback. In the context of Engineering - it's complete algorithms that co...
I used to be a requirements analyst for a good while and I found Inquiry-based .. to be so invaluable for high-risk (all are :-)) fixed-price projects https://www.researchgate.net/publication/3246954_Inquiry-Based_Requirements_Analysis Q: what is, what kinds of, who, when, what-if, how-to , relati...
Corollary: some/many developers spend 10 minutes om WHAT (their own internal model,of reality) and an eternity on HOW. In the legendary words of Luigi Ballabio, I now duck for cover! It might be a side effect of Agile. Most of the things these days can be done without planning or minimum planning. ...
On a deeper level, the mental blocks are 1. Think about WHAT before HOW 2. Can you explain the DATA FLOW in 5 minutes to the customer? My two cents to point 1. I would also add WHO before HOW. Might help to understand that parallelism is about Workers which have to be well organised to achieve all...
OK, I have completed my experiments. I have used different data structures and algorithms. Memory profile looked like sawteeth or flat. CPU was around 100% or 50%; Had over 2M context switches or just 9K. All implementations complete simulation in about 40 sec. Expectation: I hoped avoidance of lar...
I find the combination of FP and OOP optimal. In the boiler room we have OP and on top deck FP. Just out of curiosity; C# is very popular but I don't hear all that much about F#. I love the elegance of FP too, quite often mimic it in a small scale like Fluent Methods. Most of my experience it was ...
BTW here is a design I used for Monte Carlo in C#. http://www.datasimfinancial.com/forum/viewtopic.php?f=33&t=1219 Thanks, I'll have a look. Just out of curiosity, Andrey, do you use the CRTP pattern in C# (in C++ it is very efficient) https://zpbappi.com/curiously-recurring-template-pattern-in...
Thank you for sharing, it is very interesting. I'm looking at it. I'll send you my implementation a bit later. Would be interesting to hear your opinion about the design!
Nice booklet on .NET parallel patterns https://www.amazon.com/Parallel-Programming-Microsoft%C2%AE-NET-Decomposition/dp/0735651590#customerReviews Figured out that I've already read that book. There is free pdf online. It's a really good book that gives quick overview about TPL, patterns and antipa...
Just one issue: the danger of race conditions and correlation between random number generation (grey area: are .NET rngs thread-safe??) Thanks for the book, I'll have a look. Good question. Thanks for reminding. I've used MathNet.Distributions.Normal with Box-Muller algorithm. I'll be able to compa...
OK, I've done MC Lookback Pricing with Simple Parallel Fork/Join, Blocking Collection and Concurrent Queue. Latter two Producer/Consumer. 2_500_000_000 (50K x 50K) The winner is: Delightfully Parallel Fork/Join. First point: Speed - 40 sec (on my laptop). 10 seconds faster than Concurrent Queue an...
I would look into the full lifecycle of swap trading by extending your expertise to ADO.NET, P(LINQ) and possibly Reflection API and profiling system throughput. Thanks Cuchulainn, Sorry, I didn't mention, I work with C# 16+ years. Know most important perks of ADO.NET & EF as well as their bot...
Hello all, I've been looking where I could use and improve my TPL C# skills in Finance? I have done MCS for some path-dependent option pricing in python before. Done it again in C# TPL and improved performance almost 20 (Edit: should be 200) times on the same machine (8 cores). It is pleasant result...