Cellular automata benchmarks: Java vs C++ vs Java vs C++
I love benchmarking. Here are some very interesting results which
compare different cellular automata implementations in C++ and Java,
with different versions of the Java VM: Sun vs Microsoft (MS). MCell
is a Windoze C++ program, MJCell is MCell ported to Java, SARCASim is
a 5++ year old C++ Windoze program of mine and my Modern Cellular
Automata Java applet is rather unique.
Because of restrictions in the size of MJCell's universes almost all
benchmarks were performed using an 800 by 600 universe. All benchmarks
were performed using the Brian's Brain three state cellular a...floating point programming: c/c++ vs matlab vs fortran vs ???
I am helping someone code a model of an optical amplifier in C code (with
the aim of verifying results published by someone else). The model seems to
behave correctly for a limited range of parameters, but is quite off outside
this range. This is unacceptable; AFAICT theres no algorithmic reason the
model should fail, so I suspect things are going wrong in floating point
land. As I've been reading up on the matter I find there is a lot that could
be going wrong: floating point exceptions, rounding errors etc.
The model can be run reasonably quick, so we'd happily sacrifice ...Matlab vs C++ vs C#
Which of these should a person interested in financial modeling learn?
"BB" <firstname.lastname@example.org> wrote in message
> Which of these should a person interested in financial modeling
If these are your only options, I would pick Matlab myself.
You do much more with Matlab in much less time. Also debugging in
Matlab is easy.
Matlab also has a financial toolbox
Nasser Abbasi wrote:
> "BB" <bb.donotmai...C vs. C++ vs. Java
I'dont have any experiences in programming... what language should I
C? C++ or Java`?
Start with C go on to C++ and then on to JAVA.
And you will C what how that helps.
> Start with C go on to C++ and then on to JAVA.
> And you will C what how that helps.
The OP's question is not topical to this group. It would be better
answered in comp.programming among others.
Please try to redirect off topic questions rather than answering them
i think u sho0uld start wid C language and LET US C is an x...C++ vs Java vs OCaml vs SML
I have written a web page comparing the verbosity and speed of four
different (progressively optimised) mini ray tracers written in C++, Java,
OCaml and SML:
Essentially, the results indicate that Java is extremely slow (5x slower
than the fastest implementation) and extremely verbose, OCaml is extremely
concise (only 60 lines of code for the minimal implementation of the ray
tracer) and Mlton-compiled SML is extremely fast (much faster than the
other three languages).
Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffco...WHAT vs HOW vs WHERE
In the ongoing discussion here about alternatives to the RM, the subject of
pointers keeps coming up.
AFAIK, one of the features of the RM is that the interconnectedness of data
is established by common data values, instead of pointers.
In my view, pointers are "good things" not "bad things". But there are
plenty of "good things" that will harm you if you don't use them right. One
of the ways a network or graph data base achieves performance is by the
efficient use of pointers, and the strategic preplacement of pointers where
they will be need...Android vs Qt vs C/C++
I am a mobile application developer and this is the first time i
have entered into developing an embedded application from scratch. I know
that the title is a bit misleading and there will be rebuts in the grounds
that Android is an OS and Qt is a framework and C/C++ is a language. Let me
explain my requirement.
I need to develop an embedded device which will be installed in a vehicle
and it will periodically send telemetrics data to the cloud server using
GSM modem. The telemetrics will include
1. GPS position data
2. Accelerometer readings
3. Image/Video data
4. It needs to li...ex vs. em vs. px vs. % vs. in.
I am looking for a for a good tutorial on font size definitions in a
CSS. A URL to a good tutorial with demo/example will help.
I am trying to create a CSS for DocBook XML Document, but I m unable
to get a cross browser/platform compatibility. I want the documents to
look fairly similar on all platforms/browsers.
Here is my CSS -> http://www.xml-dev.com/blog/new.css
And here are 2 plaint text documents using that CSS:
More documents here -> http://www.xml-dev.com/blog/#88
I was told that I should always use...std::copy_backwards vs std::reverse_copy vs std::copy with reverse iterators
It seems all three can be used to accomplish almost identical tasks.
Can someone chime in with their thoughts on their relative merits?
As a concrete example, recently I was using reverse iterators to
push_back on a vector in reverse order.
It occured to me that std::copy_backwards, and std::reverse_copy could
be used to accomplish the same task, but I wasn't clear on why both
alternatives are available.
...Smalltalk vs. F-Script vs. Ruby vs. Objective-C
So many options,
and they all claim they are heavily based on smalltalk.
My plan is to learn smalltalk first (squeak or cincom visualworks?) but
then I want to build a native Mac OS X app, that is, one that is not
confined to living inside a smalltalk sandbox. One that uses the native
aqua gui and uses core os x technology like coreimage, openGL and
Which route would you recommend?
> My plan is to learn smalltalk first
> (squeak or cincom visualworks?)
VW is slicker, but check the licensing/cost befor...JSP vs. Struts vs. JSF vs. Swing vs. Tapestry vs. Spring vs. Rails
I am a JSP developer and am constantly feeling like I am missing the
boat by not using any of the other frameworks out there.
However, the couple I have looked at (JSF and Rails) don't impress me.
In JSP, I keep all of my logic in Servlets/Beans and all of my
presentation in the JSP file, making custom tags when I need to do some
HTML that involves some logic. So Servlets and Tags are the glue to the
JSPs and Beans. I don't see what is wrong with this model. The
biggest advantage is its flexible.
An example of my frustation with JSF (which is different than all the
other complaints...Magic vs MiNT vs Gevena vs TOS vs...
I'm starting this thread for 2 reasons: a) I'm a bit tired of reading the
same subject again and again and decided to give it a little twist, b)
So, without any further ado, my situation is this:
I have a stock STE with 4 Megs of memory, in which I'll be adding a hard
drive (and maybe more) in this week. Being a floppy user (Atari-wise) all
these years I never thought of having any other OSes than plain old TOS,
but now, since I'll be getting some more space, I thought I might as well
throw in a desktop/accs/resident progs setup there as well...C vs. C++ and gcc/g++ vs. cc/CC
Having written a simple test application (which does the same in C and C++)
I got the following results:
with C++ the app compiled with g++ is about 20% faster than with the MIPSPro
with C the app compiled with MIPSPro cc is 3-4 times faster than compiled
The gcc/c app is 30-40% faster than the same g++/c++ app.
The MIPS/c app is several times faster than the MIPS/c++ app.
I always compiled with "-O3". For the C++ app I used valarrays, for the C
Is this the general performance line or is it only for my special test
application? F...error with std::string in header file using VS C++ 6.0 SP6
Can anybody help me with this code ? I contains errors I don't understand.
I use Visual Studio C++ 6.0, Service Pack 6.
CODE (header file)
std::string::size_type width (const std::vector<string>& v);
std::vector<string> frame (const vector<string>& v);
std::vector<string> vcat (const vector<string>& top, const vector<string>& bottom);
std::vector<string> hcat (const vector<string>& left, const vector<string>& right);