开发者

Need good language for math- and logic-heavy research programming

Can anyone name a language with all the following properties:

  1. Has algebraic data types
  2. Has good support for linear algebra
  3. Is fast(-er than python, at least)
  4. Has at least some functi开发者_Python百科onal programming ability (I don't need monads)
  5. Has been heard of, is not dead, and can interface on a C calling level


Scala

According to Wikipedia it has algebraic datatypes. And it is fast. Scala is both functional and object oriented. And it's a young language with a growing userbase but still to some extent compatible with Java.

There is a Scala library Scalala for linear algebra:

A high performance numeric linear algebra library for Scala, with rich Matlab-like operators on vectors and matrices; a library of numerical routines


I have my own favorite pet languages, and this isn't one of them, but it sounds to me like R is probably what you are looking for. It seems to be the hot new language these days for people doing heavy math.

As for the "faster than Python" part, that's tough to say. In general, languages don't really have a speed; language implementations do. So the only way to tell really is to compare your time-constraining algorithm on each implementation you can get.


I'd say C and C++. And they work well with:

  • Matlab
  • Maple
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜