Hello everybody!
I'm starting moving out my scientific library (neural networks) from
Delphi. Currently I'm being concerned with selection of a new language
for its development. The library uses the following very intensively:
memory allocation/deallocation, virtual method calls, accessing objects
by reference from other objects, methematical calculations (various -
arifmetic, triginometric), and employs collections much. It's also
important what the library does NOT use any input/output operations and
has nothing to do with user interface. But it needs to be used in other
programs that have UI.
I'm coding C# for the last couple of years and I'm starting to hear the
rummors that managed code (like rinning under Java VM or .NET CLR) is
getting closer in performance to the natively compiled code. It's
definitely HARD to identify the robustness of the performance tests
presented all over the Internet. Some of them are claiming that C++ is
dying in favor of managed code, because managed code can gain from some
optimizations (in virtual runtime environment) that can not be done
during the compilation phase.
I am also deeply concerned with cross-platform portability of the
library and the programs that will/would use it.
So, could I have some advice from you? What language should I use?
Please do not just say "C++" (or maybe other?), but also explain a
little!
Thank you in advance.
Andrey Kuzmenko. 13 1434 an************@yahoo.com wrote: [...] So, could I have some advice from you? What language should I use?
C++
Please do not just say "C++" (or maybe other?), but also explain a little!
Why in the world anybody in a C++ newsgroup recommend you anything *but*
C++? Think about it. And what explanation are you looking for? C++ is
_the_ language for many in the programming business nowadays, it is
certainly _the_ language of choice for everyone who comes here on more
or less regularly.
You could ask in a language-neutral newsgroup, like comp.software-eng or
sci.math.*. Perhaps there you would get a less biased response. But be
aware that language comparisons are a futile exercise. Pick one and run
with it. Use whatever feels most comfortable.
V an************@yahoo.com wrote: Hello everybody! [redacted]
I am also deeply concerned with cross-platform portability of the library and the programs that will/would use it.
C++. Why? Because of the portability issue. C# is only available
under Windows.
andreykuzme...@yahoo.com wrote: I'm coding C# for the last couple of years and I'm starting to hear
the rummors that managed code (like rinning under Java VM or .NET CLR) is getting closer in performance to the natively compiled code. It's definitely HARD to identify the robustness of the performance tests presented all over the Internet. Some of them are claiming that C++
is dying in favor of managed code, because managed code can gain from
some optimizations (in virtual runtime environment) that can not be done during the compilation phase.
I heard claims like this about Java for ages, too. Although it is
typically indeed possible to create fast Java solution which
outperforms a mediocre C++ solution, I don't think that the claims
hold water. I suspect the same to be true for .Net. However, even
if the claims concerning .Net are correct, C++ would be an
appropriate choice: Microsoft currently creates C++/CLR which
compiles to managed code. That is, you just toggle a switch and
get all the performance benefits (I'd guess you switch of targeting
the CLR but maybe I'm wrong; it would not even matter to you).
I am also deeply concerned with cross-platform portability of the library and the programs that will/would use it.
As long as you stay clear of a few specific features (notably
'export') your library should be compilable with most up to date
compilers. If you are just interested in targetting many platforms,
not compilers, you can use the whole C++ standard and use Comeau
C++ which is available on virtually all platforms.
For algorithmic library, C++ has much to offer which other languages
do not: notably you can implement the time-critical portions STL-like
on the basis of some abstractions and use only dynamic polymorphism
where you really need it and/or in realizations of the abstractions.
--
<mailto:di***********@yahoo.com> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting
red floyd wrote: C# is only available under Windows.
Strange... I used C# (with Mono) on my Linux machine. Maybe
Linux is now the same as Windows - I should really pay more
attention to the news!
--
<mailto:di***********@yahoo.com> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting
Of course I'm also exploring other opinions. And yes, I wanted a biased
response from C++ users, but with a little explanations. Thanks!
Dietmar Kuehl wrote: red floyd wrote:
C# is only available under Windows.
Strange... I used C# (with Mono) on my Linux machine. Maybe Linux is now the same as Windows - I should really pay more attention to the news! -- <mailto:di***********@yahoo.com> <http://www.dietmar-kuehl.de/> <http://www.contendix.com> - Software Development & Consulting
I had forgotten about Mono. I hope they don't use "Is Not".
andreykuzme...@yahoo.com wrote: Mono ( http://www.mono-project.com ) is a port of .NET to Linux.
Thanks for the clarification. However, I thought I was rather
clear without any special intonation or marking (see
<http://en.wikipedia.org/wiki/Sarcasm>).
BTW, I wouldn't call Mono a "port": it is an entirely independent
implementation of the corresponding specifications.
--
<mailto:di***********@yahoo.com> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting
Sorry, I wanted to reply for red floyd and just briefly tell what is
Mono... But occudentially responded to your message. Thank you for your
responses. BTW, did they (Mono) implemented the standard as completely
as Microsoft or there are some limitations? an************@yahoo.com wrote: Sorry, I wanted to reply for red floyd and just briefly tell what is Mono... But occudentially responded to your message.
No problem.
Thank you for your responses.
You are welcome.
BTW, did they (Mono) implemented the standard as completely as Microsoft or there are some limitations?
My understanding is that Mono implements at least wants to implement
the ECMA standard plus some of the components provided by Microsoft
which are not standardized. They also have their own replacements
for some the Microsoft libraries. However, this discussion is
off-topic in comp.lang.c++ and better answered on the Mono site.
--
<mailto:di***********@yahoo.com> <http://www.dietmar-kuehl.de/>
<http://www.contendix.com> - Software Development & Consulting an************@yahoo.com wrote: Hello everybody!
I'm starting moving out my scientific library (neural networks) from Delphi. Currently I'm being concerned with selection of a new language for its development. The library uses the following very intensively: memory allocation/deallocation, virtual method calls, accessing objects by reference from other objects, methematical calculations (various - arifmetic, triginometric), and employs collections much. It's also important what the library does NOT use any input/output operations and has nothing to do with user interface. But it needs to be used in other programs that have UI.
I'm coding C# for the last couple of years and I'm starting to hear the rummors that managed code (like rinning under Java VM or .NET CLR) is getting closer in performance to the natively compiled code. It's definitely HARD to identify the robustness of the performance tests presented all over the Internet. Some of them are claiming that C++ is dying in favor of managed code, because managed code can gain from some optimizations (in virtual runtime environment) that can not be done during the compilation phase.
I am also deeply concerned with cross-platform portability of the library and the programs that will/would use it.
So, could I have some advice from you? What language should I use? Please do not just say "C++" (or maybe other?), but also explain a little!
You can't use (template) functions as objects in Java, but you can in
C++; which will be a big advantage if you want to program the transition
functions of the NN nodes like that, and genetic transformation of them.
Java might be 'more OO' so to speak, but at a functional level C++ is a
lot more flexible.
I would however recommend using C++ combined with Lua for this kind of
project. You use C++ to program the structure of the NN, and then you
use Lua to fill in the details (transitions, genetic pools, and problems
it needs to solve).
--
- gipsy boy
- C# is closer to Delphi than C++ is.
- The C# debugger is easier and much more pleasant to use than a C++
one.
- C++ will almost certainly always be faster
- C++ is platform independant. C# is not.
- C++ has many more free ressources that you could use than C#.
- C# is still evolving a lot and depends on what MS decides to do with
it in the future. Think about the VB 6 developpers.
Myself I would use C# because I favor the speed of dev and debugging.
Others will favor C++ for their own reasons.
--
---- http://michael.moreno.free.fr/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lindon |
last post by:
whats the industry standard libraries for scientific mathematical
programming? I did a few searchs and it seems Lapack and the Gnu
Scientific Libraries are the two big ones, but what else? Any...
|
by: Ayron |
last post by:
Is it possible to have scientific symbols (e.g. degree, squared, cubed,
etc.) in XML docs if the UTF-8 encoding is specified? Is there a
limitation?
Thanks.
-ak
|
by: Greg |
last post by:
I am working on an application that requires working with numbers in
scientific notation. I am using SqlServer as the database and I have
created strongly typed data adapters and datasets. The...
|
by: Web_PDE_Eric |
last post by:
I don't know where to go, or what to buy, so plz re-direct me if I'm in the
wrong place.
I want to do high performance integration of partial differential eqns in n
dimensions (n=0,1,2,3..etc) I...
|
by: Michael Tobis |
last post by:
Someone asked me to write a brief essay regarding the value-add
proposition for Python in the Fortran community. Slightly modified to
remove a few climatology-related specifics, here it is.
I...
| |
by: Juan R. |
last post by:
I have updated some basic requirements for a generic mathematical
markup language for scientific requirements at the next link.
...
|
by: Joe Attardi |
last post by:
Hi all,
Math is not my strongest area so forgive me if I use some of the wrong
terminology.
It seems that scientific notation is immune to rounding errors. For
example:
(4.98 * 100) + 5.51 ...
|
by: Greg |
last post by:
I am working on an application that requires working with numbers in
scientific notation. I am using SqlServer as the database and I have
created strongly typed data adapters and datasets. The...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |