SERVING THE QUANTITATIVE FINANCE COMMUNITY

 
User avatar
wanaquant
Topic Author
Posts: 88
Joined: May 12th, 2012, 1:19 pm

Anyone getting into Rust

April 6th, 2018, 5:47 pm

Anyone heard about the language? Decided to give it a try but it looks that it lacks in the quant/math department.
 
User avatar
ppauper
Posts: 66236
Joined: November 15th, 2001, 1:29 pm

Re: Anyone getting into Rust

April 6th, 2018, 8:06 pm

I'd never heard of it (and there's no reason why I would have)
anyone who's interested can try it out at try it out
If you click on "Hello World" on the top right of that page, you can see how to print "Hello World" in Rust
 
User avatar
Cuchulainn
Posts: 54883
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Anyone getting into Rust

April 7th, 2018, 5:29 pm

Rust is just another language. I fear Dominic Connor would call it a quiche language. It has some nice features, but so do other mainstream languages. It's in VS2015.

It's not even in the top 50. Of course, you can do it for fun if you have the time. A rough guess is it had [5,10]% of the functionality of C#, which is a good one if you are building quant libraries and such like.

https://www.tiobe.com/tiobe-index/

For production, use C/C++, C# and Java in the main. And Python is 'hot' it seems but I am not sure why really.

The language wars are over. 
 
User avatar
ExSan
Posts: 4494
Joined: April 12th, 2003, 10:40 am

Re: Anyone getting into Rust

April 8th, 2018, 7:26 pm

Cuchulainn wrote:
Rust is just another language. I fear Dominic Connor would call it a quiche language. It has some nice features, but so do other mainstream languages. It's in VS2015.

It's not even in the top 50. Of course, you can do it for fun if you have the time. A rough guess is it had [5,10]% of the functionality of C#, which is a good one if you are building quant libraries and such like.

https://www.tiobe.com/tiobe-index/

For production, use C/C++, C# and Java in the main. And Python is 'hot' it seems but I am not sure why really.

The language wars are over. 

Python is fantastic, it has an awesome library. Compared with C/C++ is a turtoise, I mean real math calcs
 
User avatar
Cuchulainn
Posts: 54883
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Anyone getting into Rust

April 8th, 2018, 7:37 pm

ExSan wrote:
Cuchulainn wrote:
Rust is just another language. I fear Dominic Connor would call it a quiche language. It has some nice features, but so do other mainstream languages. It's in VS2015.

It's not even in the top 50. Of course, you can do it for fun if you have the time. A rough guess is it had [5,10]% of the functionality of C#, which is a good one if you are building quant libraries and such like.

https://www.tiobe.com/tiobe-index/

For production, use C/C++, C# and Java in the main. And Python is 'hot' it seems but I am not sure why really.

The language wars are over. 

Python is fantastic, it has an awesome library. Compared with C/C++ is a turtoise, I mean real math calcs

Fair enough. Apart from libs and prototyping what else? Would you use it to create a production quant library?
In C++/C# you have Eigen, MathNet, Quantlib, Alglib, Boost.. I do admit C++ could have more.

Different strokes for different folks.
 
User avatar
VivienB
Posts: 130
Joined: August 6th, 2012, 3:32 pm

Re: Anyone getting into Rust

April 16th, 2018, 1:15 pm

Cuchulainn wrote:
It has some nice features, but so do other mainstream languages. It's in VS2015.

It has ADT, what most mainstream languages don't. As an OCaml developer, it is a must have feature ;) It is also supposed to handle first-class functions (when I looked into the language (at his alpha stage), it was not the case, but it was planned). The ownership concept is also interesting to avoid manual memory handling, without the cost of a GC.

However, this language is not the easiest to learn, thus I lost interest in it (there are a lot of better ways to spend my free time).
 
User avatar
katastrofa
Posts: 5386
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

Re: Anyone getting into Rust

April 16th, 2018, 4:37 pm

A lot has been happening with types in the main mainstream language (C++) over the past few years. It's becoming a post-type language, just as we've become a post-truth society :-(
 
User avatar
ppauper
Posts: 66236
Joined: November 15th, 2001, 1:29 pm

Re: Anyone getting into Rust

April 16th, 2018, 5:38 pm

VivienB wrote:
It has ADT, what most mainstream languages don't.

we're home even when you're not?
Image
 
User avatar
katastrofa
Posts: 5386
Joined: August 16th, 2007, 5:36 am
Location: Alpha Centauri

Re: Anyone getting into Rust

April 16th, 2018, 7:26 pm

 
User avatar
Cuchulainn
Posts: 54883
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Anyone getting into Rust

April 16th, 2018, 7:54 pm

VivienB is spot on.

If you are doing mathsy applications, there's only one suitable programming paradigm.
 
User avatar
Cuchulainn
Posts: 54883
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

Re: Anyone getting into Rust

April 17th, 2018, 2:36 pm

katastrofa wrote:
A lot has been happening with types in the main mainstream language (C++) over the past few years. It's becoming a post-type language, just as we've become a post-truth society :-(

It is quite surprising IMHO that std::tuple is supported since C++11, only.  std::function<> is a good addition.
ABOUT WILMOTT

PW by JB

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...


JOBS BOARD

JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...