Re: [MSEide-MSEgui-talk] Destiny of Martin's projects

2019-02-05 Thread Noel Frankinet
When a C++ program is slower than its counterpart in Java, its always
because the C++ implementation is weak.
Java cannot be faster than machine code and a good C++ implementation must
be equivalent to machine code.

On Tue, 5 Feb 2019 at 17:29, Graeme Geldenhuys <
mailingli...@geldenhuys.co.uk> wrote:

> On 05/02/2019 16:19, Noel Frankinet wrote:
> > Java faster than C++ ?
>
> Yes, it is a common misconception that Java is slow. Just because Java
> from 1995-2000 was slow (some 20+ years ago), doesn't mean the new Java
> of recent years are. In fact, the recent Java is actually really fast
> (in compiling and runtime code). IBM, Sun, Oracle and many more have
> spent billions on $$ in improving Java - and it paid off!
>
> Java is well known for real-time robotics, banking, stock trading etc...
> Performance is vital in all those fields.
>
> What is also massively impressive about Java's compiler, is that it can
> optimise pretty shitty code and still end up with a high performance
> application.
>
>
> Regards,
>   Graeme
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> My public PGP key:  http://tinyurl.com/graeme-pgp
>
>
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


-- 
Noël Frankinet
Strategis sprl
0478/90.92.54
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Destiny of Martin's projects

2019-02-05 Thread Noel Frankinet
Java faster than C++ ?

On Tue, 5 Feb 2019 at 17:12, Graeme Geldenhuys <
mailingli...@geldenhuys.co.uk> wrote:

> On 03/02/2019 22:15, code dz wrote:
> > in simple programs yes , fpc may match up c/c++ speed , but in a real
> > world app e.g ( ray tracer )  there is no chance , unless you go down
> > and write assembly .
>
>
> That was my first-hand experience too. I wrote a 3d ray caster for a
> demo/game using FPC (code was made public in the Lazarus forums). No
> matter what was suggested, I couldn't get close to the performance of
> that same program written in C++ or Java. In fact, Java was the fastest
> (by a large margin) out of FPC's Object Pascal, C++, JavaScript and
> Java. FPC was even slower than JavaScript.
>
> I queried that with the FPC team. Their reply... They know FPC is
> lagging in performance, but that is due to their choice. They chose
> maintainability over performance, because they are a small development
> team.
>
> So in my opinion, unless the FPC team grows massively, or there is a
> dedicated developer in the FPC team that works purely on performance,
> nothing is going to change.
>
> Regards,
>   Graeme
>
> --
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> http://fpgui.sourceforge.net/
>
> My public PGP key:  http://tinyurl.com/graeme-pgp
>
>
> ___
> mseide-msegui-talk mailing list
> mseide-msegui-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>


-- 
Noël Frankinet
Strategis sprl
0478/90.92.54
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk