SERVING THE QUANTITATIVE FINANCE COMMUNITY

Cuchulainn
Topic Author
Posts: 62955
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Random quotes

Unless one is just a sucker for C++, it needs to be considered that the C++ code development time is several times longer than in the case of Python.
Probably until your Python code base reaches the tipping point and then get Big Ball of Muds.

C# is 3 times more productive than C++.
Step over the gap, not into it. Watch the space between platform and train.
http://www.datasimfinancial.com
http://www.datasim.nl

Collector
Posts: 4734
Joined: August 21st, 2001, 12:37 pm

### Re: Random quotes

Unless one is just a sucker for C++, it needs to be considered that the C++ code development time is several times longer than in the case of Python.
Probably until your Python code base reaches the tipping point and then get Big Ball of Muds.

C# is 3 times more productive than C++.
yes C# is the Thing!!

ISayMoo
Posts: 2366
Joined: September 30th, 2015, 8:30 pm

### Re: Random quotes

Not my field, but I thought that a lot of the action in this space had moved to FPGAs.
Iterative development on FPGAs is a pain. And there are many trades which don't really need an FPGA.

ISayMoo
Posts: 2366
Joined: September 30th, 2015, 8:30 pm

### Re: Random quotes

Unless one is just a sucker for C++, it needs to be considered that the C++ code development time is several times longer than in the case of Python.
Probably until your Python code base reaches the tipping point and then get Big Ball of Muds.

C# is 3 times more productive than C++.
Why 3?

Cuchulainn
Topic Author
Posts: 62955
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Random quotes

Unless one is just a sucker for C++, it needs to be considered that the C++ code development time is several times longer than in the case of Python.
Probably until your Python code base reaches the tipping point and then get Big Ball of Muds.

C# is 3 times more productive than C++.
yes C# is the Thing!!
Indeed, such a great language.
Step over the gap, not into it. Watch the space between platform and train.
http://www.datasimfinancial.com
http://www.datasim.nl

Cuchulainn
Topic Author
Posts: 62955
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Random quotes

Unless one is just a sucker for C++, it needs to be considered that the C++ code development time is several times longer than in the case of Python.
Probably until your Python code base reaches the tipping point and then get Big Ball of Muds.

C# is 3 times more productive than C++.
Why 3?
We wrote several own applications in both language (e.g. CAD libraries and optical holography ... stuff) as well as >> 20 years training developers ("time and motion" observations). The main reasons for us are:

1. .NET has many great libraries
2. It has Reflection, you can generate code. C++ concepts will not be in our lifetime.
3. Easy debugging
4. No header file; just chunder your .cs files into the project
5. C++ has no support for modules/assemblies, which is awful (dlls are not self-referencing)
6. C# interoperates with native C++ via C++/CLI
7. For risk apps, there is (P)LINQ.

Python is probably in the same boat as C++ looking downstream but too early to say. Who is maintaining  > 10 KLOC Python code base?
The show-stoppers are 2 and 5.

On the other hand, C++ is the best and most intellectually stimulating language ever. It's Turing complete, i.e. template mechanism. C# generics choke when you want to do similar things. Try CholeskyDecomposition<$\mathbb {F}$>, $\mathbb {F}$ is a field; in C# you  have to write/emit 2 or more separate classes for $\mathbb {R}$ and $\mathbb {C}$. Operator overloads +, * break down. Then you have to write/emit code for them for each class...
Last edited by Cuchulainn on June 15th, 2019, 7:44 pm, edited 12 times in total.
Step over the gap, not into it. Watch the space between platform and train.
http://www.datasimfinancial.com
http://www.datasim.nl

Cuchulainn
Topic Author
Posts: 62955
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Random quotes

Imagine maintaining code like this in the same scope. Does it even run??
x = pi #yes, the famous pi
f,i = modf(x)
print(f,i) # 0.14159, 3.0

x = "abc"
f,i = modf(x)
Step over the gap, not into it. Watch the space between platform and train.
http://www.datasimfinancial.com
http://www.datasim.nl

katastrofa
Posts: 9589
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

### Re: Random quotes

Unless one is just a sucker for C++, it needs to be considered that the C++ code development time is several times longer than in the case of Python.
Probably until your Python code base reaches the tipping point and then get Big Ball of Muds.

C# is 3 times more productive than C++.
If C++ is fast enough for running my simulations, but Java isn't, can you tell if C# is for me?
How much less flexibility in the code design does it give than C++?

Cuchulainn
Topic Author
Posts: 62955
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Random quotes

Unless one is just a sucker for C++, it needs to be considered that the C++ code development time is several times longer than in the case of Python.
Probably until your Python code base reaches the tipping point and then get Big Ball of Muds.

C# is 3 times more productive than C++.
If C++ is fast enough for running my simulations, but Java isn't, can you tell if C# is for me?
How much less flexibility in the code design does it give than C++?
Java sucks. AFAIR C# is even faster than C++ in some cases (JIT).

Depends on what you do. You could try a test

https://en.wikipedia.org/wiki/Microsoft ... ve_Toolkit

C# has everything C++ has and more. And you can embed native C++ in .NET, i.e. not a binary choice (many do it, wrap C++ and call from C#).m A piece of cake.
Last edited by Cuchulainn on June 15th, 2019, 8:23 pm, edited 1 time in total.
Step over the gap, not into it. Watch the space between platform and train.
http://www.datasimfinancial.com
http://www.datasim.nl

katastrofa
Posts: 9589
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

### Re: Random quotes

Thanks, sounds cool. I'm quite good with C++, but I don't want to go rusty.

Cuchulainn
Topic Author
Posts: 62955
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Random quotes

Thanks, sounds cool. I'm quite good with C++, but I don't want to go rusty.
Here's a hello whirlpool example of a wrapper for native C++. Easy. So you could offer your products as .NET assemblies!
Attachments
17 - Legacy Code.ppt
Step over the gap, not into it. Watch the space between platform and train.
http://www.datasimfinancial.com
http://www.datasim.nl

Collector
Posts: 4734
Joined: August 21st, 2001, 12:37 pm

### Re: Random quotes

" AFAIR C# is even faster than C++ in some cases (JIT)."
Confirmed in our testing (well naturally also depends on how code is written), I was first shocked !

also DNA is awesome together with C#

katastrofa
Posts: 9589
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

### Re: Random quotes

Fast hash-mapping your DNA. You want to clone Collector?!

Cuchulainn
Topic Author
Posts: 62955
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

### Re: Random quotes

Anyone can do DNA, but you need DNA on steroids

https://excel-dna.net/
Step over the gap, not into it. Watch the space between platform and train.
http://www.datasimfinancial.com
http://www.datasim.nl

tagoma
Posts: 18379
Joined: February 21st, 2010, 12:58 pm

### Re: Random quotes

"If this ain't playing in my funeral, I ain't coming"