Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A prototyping language with the ability to be fast [closed]

as an engineering student with a strong mathemathical background, i dealing some problems like this at university:

  • (numerical) Simulations
  • AI Problems
  • Robotics
  • Control Systems
  • and some more

as you can see some are just numerical ones, others have to process some kinds of symbols. currently i'm working with java, but i'm not very pleased with it (can't say exactly why, probably a personal taste) and now i'm searching for a programming language, in which i can easily prototype new algorithms, like for example in python, and don't care about low level stuff, but has the ability to speed things up if neccessary, e.g. with concurrent/parallel programming, etc. (writing it in python and rewrite it in C/C++ isn't really a option i prefer...)

to sum it up:

  • easy to prototype, but
  • the ability to speed algorithms up
  • syntax without boilerplate stuff like in java
  • syntax which is easy to read (i know this could be achived with the most, but some language encourage you more...)

i've looked around at sites, like http://rosettacode.org/ and picked 2 or 3 favorites: Go, Lisp (and maybe Haskell) but other recommandations are welcome

like image 235
Moe Avatar asked Dec 03 '22 01:12

Moe


2 Answers

Common Lisp using SBCL is pretty fast if you take the time to make it fast.

Why does this fit what you want?

  • symbolic computations
  • good number handling
  • compiles to native on demand by default.
like image 74
Paul Nathan Avatar answered Feb 16 '23 18:02

Paul Nathan


I would use python together with cython: http://www.cython.org for speeding up your code. For symbolic computations you have http://code.google.com/p/sympy/

like image 29
rocksportrocker Avatar answered Feb 16 '23 17:02

rocksportrocker