Page 24 of 24

Re: Random quotes

Posted: June 15th, 2019, 6:43 pm
by Cuchulainn
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++.

Re: Random quotes

Posted: June 15th, 2019, 6:53 pm
by Collector
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!!

Re: Random quotes

Posted: June 15th, 2019, 6:54 pm
by ISayMoo
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.

Re: Random quotes

Posted: June 15th, 2019, 6:54 pm
by ISayMoo
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?

Re: Random quotes

Posted: June 15th, 2019, 6:55 pm
by Cuchulainn
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.

Re: Random quotes

Posted: June 15th, 2019, 7:04 pm
by Cuchulainn
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...

Re: Random quotes

Posted: June 15th, 2019, 7:12 pm
by Cuchulainn
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)

Re: Random quotes

Posted: June 15th, 2019, 7:50 pm
by katastrofa
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++?

Re: Random quotes

Posted: June 15th, 2019, 8:16 pm
by Cuchulainn
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.

Re: Random quotes

Posted: June 15th, 2019, 8:20 pm
by katastrofa
Thanks, sounds cool. I'm quite good with C++, but I don't want to go rusty.

Re: Random quotes

Posted: June 15th, 2019, 8:31 pm
by Cuchulainn
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! 

Re: Random quotes

Posted: June 15th, 2019, 10:21 pm
by Collector
" 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#

Re: Random quotes

Posted: June 15th, 2019, 10:52 pm
by katastrofa
Fast hash-mapping your DNA. You want to clone Collector?!
Image

Re: Random quotes

Posted: June 16th, 2019, 11:32 am
by Cuchulainn
Anyone can do DNA, but you need DNA on steroids

https://excel-dna.net/