tag:blogger.com,1999:blog-4434108347727659251.post2494926845098058437..comments2022-06-29T08:53:03.580+02:00Comments on Compas Pascal: Is WPF+Silverlight dead on Windows?Unknownnoreply@blogger.comBlogger12125tag:blogger.com,1999:blog-4434108347727659251.post-77141846024372660842011-06-09T10:43:21.192+02:002011-06-09T10:43:21.192+02:00Floating point calculations are evil - they introd...Floating point calculations are evil - they introduce rounding mechanisms, that are usually handled as "noise", which basically means that code become non-deterministic. This is not a big problem in Mandelbrot, but it is when it comes to applications that involve money, statistics and technical calculations. Also, in order to make algorithms work well, they are usually based on integersLars Dhttps://www.blogger.com/profile/06217303713945608384noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-19996120420194998972011-06-08T14:26:04.045+02:002011-06-08T14:26:04.045+02:00About just any case where heavy floating point co...About just any case where heavy floating point computations are bottleneck can see modern JavaScript engines come ahead of Delphi.<br />If all you're dealing with are integers, like in your benchmark you refer, the old Delphi compiler can still be competitive, but that's a restrictive area.<br /><br />Current JS engines have advanced beyond untyped containers, FireFox has a tracing Erichttps://www.blogger.com/profile/05912696305224378407noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-8062461095666554842011-06-08T08:34:00.886+02:002011-06-08T08:34:00.886+02:00Eric, looking at it, I still don't see a bench...Eric, looking at it, I still don't see a benchmark that I can relate to... and I don't see any confirmation elsewhere that JavaScript should be faster than non-script languages. Do you have some kind of documentation that is more solid, that you can refer to? <a href="http://shootout.alioth.debian.org/u32/benchmark.php?test=all&lang=all&d=data&gpp=on&java=on&fpascal=onLars Dhttps://www.blogger.com/profile/06217303713945608384noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-88928557618664200332011-06-07T11:04:05.961+02:002011-06-07T11:04:05.961+02:001) The actual Delphi compiler is really obsolescen...1) The actual Delphi compiler is really obsolescent, especially when it comes to floating point computation (AFAIK it doesn't use SSE and the like)<br />2) Any standard graphical output will involve GDI calls. Since Vista GDI does no longer take advantage of hardware acceleration (in 7 only very partially).<br /><br />Whatever HTML/Javascript do must be translated into CPU/GPU code as well, LDShttps://www.blogger.com/profile/04633789460476801953noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-74644928525858158642011-06-07T07:22:28.248+02:002011-06-07T07:22:28.248+02:00Alas no, Lars, look again, there are no GPUs invol...Alas no, Lars, look again, there are no GPUs involved in the links I provided. This is pure CPU-side computation.<br />(the source code is provided)<br /><br />And this is no a benchmark oddity, I've since observed it on a variety of workloads.Erichttps://www.blogger.com/profile/05912696305224378407noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-90478032715161894802011-06-06T22:38:12.356+02:002011-06-06T22:38:12.356+02:00Thank you for the links. I can see that this relat...Thank you for the links. I can see that this relates to the use of GPUs for acceleration. Most other languages, including Delphi, only uses CPUs - so JavaScript may beat other languages in very computation intensive algorithms.Lars Dhttps://www.blogger.com/profile/06217303713945608384noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-11735419354833492612011-06-06T20:57:43.144+02:002011-06-06T20:57:43.144+02:00Lars, see http://delphitools.info/tag/javascript/
...Lars, see http://delphitools.info/tag/javascript/<br />or directy try<br />http://www.atopon.org/mandel/<br />and compare with a Delphi version of the code for yourself.Erichttps://www.blogger.com/profile/05912696305224378407noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-1719422639551548632011-06-06T19:50:50.957+02:002011-06-06T19:50:50.957+02:00Eric, I can show you benchmarks that demonstrate h...Eric, I can show you benchmarks that demonstrate how Delphi and C++ perform equally well, and better than .net and Java. If you can show me benchmarks that demonstrate that JavaScript perform even better, please do.Lars Dhttps://www.blogger.com/profile/06217303713945608384noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-70056875944069764822011-06-06T18:38:55.309+02:002011-06-06T18:38:55.309+02:00That's why Delphi is the best solution :)That's why Delphi is the best solution :)Andreano Lanussehttps://www.blogger.com/profile/04991937821654940874noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-19468630474506293022011-06-06T18:15:12.013+02:002011-06-06T18:15:12.013+02:00Does Microsoft's ever-shifting development lan...Does Microsoft's ever-shifting development landscape remind anyone else of Joel Spolsky's classic <a href="http://www.joelonsoftware.com/articles/fog0000000339.html" rel="nofollow">Fire And Motion</a> article?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-20770175139151955172011-06-06T12:15:55.208+02:002011-06-06T12:15:55.208+02:00Further proving that my decision 10 years ago to s...Further proving that my decision 10 years ago to stick with native development using Delphi was the correct one. <br /><br />Native + HTML5 + Javascript is the future.Anonymoushttps://www.blogger.com/profile/17816129627979839377noreply@blogger.comtag:blogger.com,1999:blog-4434108347727659251.post-58428809429275369072011-06-06T09:18:59.892+02:002011-06-06T09:18:59.892+02:00Alas, those days that statement about Delphi still...Alas, those days that statement about Delphi still outperforming isn't true IME, even JavaScript (in FireFox & Chrome V8) can outperform Delphi...Erichttps://www.blogger.com/profile/05912696305224378407noreply@blogger.com