tag:blogger.com,1999:blog-3752573690854836522.post1630950546337194813..comments2020-09-01T05:55:11.885+00:00Comments on F# News: F# vs Mathematica: red-black treesJon Harrophttp://www.blogger.com/profile/11059316496121100950noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3752573690854836522.post-57268050958114512832010-07-08T15:45:34.136+00:002010-07-08T15:45:34.136+00:00@Federico: Not much of an on-going argument. I onc...@Federico: Not much of an on-going argument. I once stated that Mathematica is typically orders of magnitude slower than F# code due to the way it is evaluated (term rewriting vs compilation to native code) and Sal took offence. I felt it was interesting to note that Sal has taken to translating code from ML to Mathematica and that his own Mathematica code is orders of magnitude slower than the original ML. Indeed, the only part of this red-black tree implementation that Sal did not copy from someone else, his remove function, is completely wrong. Furthermore, I have since found a much more compelling example about finance taken from Sal's book (p.583).<br /><br />I agree that Mathematica was awesome in its heyday but millions of people are still using it oblivious to the enormous advances easily available from free alternatives like F#. I still highly recommend Mathematica as an executive toy though.Jon Harrophttps://www.blogger.com/profile/11059316496121100950noreply@blogger.comtag:blogger.com,1999:blog-3752573690854836522.post-13125161706225898222010-07-08T08:16:34.512+00:002010-07-08T08:16:34.512+00:00You just confirm my impressions, then. :-)
On ano...You just confirm my impressions, then. :-)<br /><br />On another note, I have no idea who this Sal Mangano is. Apart from closely reminiscing the name of a member of the Sicilian mafia who used to drive the Italian prime minister's children to school in days gone by, I have never heard of the guy. <br /><br />From what I understand, there seems to be an ongoing argument between the two of you. Sal, if you read this, please bear in mind that arguing with Jon is pretty useless: the probability of him being right is extremely high. This I learned through experience. Sal, take it from a fellow Italian: let it go :-)fededevitahttps://www.blogger.com/profile/15010277053192871248noreply@blogger.comtag:blogger.com,1999:blog-3752573690854836522.post-22635995152662069642010-07-07T20:42:38.527+00:002010-07-07T20:42:38.527+00:00@Federico: I think there are still several places ...@Federico: I think there are still several places where Mathematica can be slightly better than F# currently is, although most of those can be addressed by libraries without having to change the language itself. There are many more books on Mathematica but they are extremely poor quality. For example, the little decent content in Sal's book was taken from other authors without proper attribution.<br /><br />@Anonymous: You expect me to do that when Sal did not extend me the same courtesy? If he wants to rebut my criticisms, he can do so on his own blog.Jon Harrophttps://www.blogger.com/profile/11059316496121100950noreply@blogger.comtag:blogger.com,1999:blog-3752573690854836522.post-74490895020867954662010-07-07T15:37:48.832+00:002010-07-07T15:37:48.832+00:00So you're basically saying: the problem can be...So you're basically saying: the problem can be solved in F# with fewer lines of code, that are more readable and the execution is faster. I guess <i>that's</i> I use F# and not Mathematica? :-)<br /><br />However, it may be a bit unfair to compare the two: F# is a young technology, born for today's computers and technologies (such as the .Net CLR). Mathematica is an old technology, and when it was new we were all in awe - or am I wrong? <br /><br />It seems clear to me that there is no reason why I should use Mathematica when I can get use a (way more) versatile language that can be integrated with the other code that I write with no problems whatsoever. Calculation libraries similar to those used by Mathematica are easily available for .Net (and hence for F#), visual stuff like WPF is way more powerful,... Bit of a no-brainer, really.<br /><br />And another thing: there's hundreds of books on Mathematica. There's very few on F# (four or five?), but they are all <b>very</b> goodfededevitahttps://www.blogger.com/profile/15010277053192871248noreply@blogger.com