J*****n 发帖数: 4859 | 1 我最近重新学习了一下boost,发现python的那套东西,似乎C++里面也能方便的做到。
除了文本处理上他占点便宜,其他C++也都有。
如果是特别的数学统计的包裹,那么R里面更多。
本身对脚本不是特别熟,请教一下,Python到底有什么特别的优势? | C*O 发帖数: 389 | 2 语法简单
比如c++里,你定义1个函数,需要参数类型,返回类型, 定义参数数目可变的函数更
麻烦
在Python里,这些都很容易
另一方面,不用考虑垃圾回收
quant要用这些?
【在 J*****n 的大作中提到】 : 我最近重新学习了一下boost,发现python的那套东西,似乎C++里面也能方便的做到。 : 除了文本处理上他占点便宜,其他C++也都有。 : 如果是特别的数学统计的包裹,那么R里面更多。 : 本身对脚本不是特别熟,请教一下,Python到底有什么特别的优势?
| r****t 发帖数: 10904 | 3 interactive,
no forward declaration,
default to pass by reference,
strong typing but can also do duck typing (as if templates)
exceptions are objects,
portable
simple grammar for coroutine/generator
the author was never an artist, but a mathematician and engineer.
not an opponent to c (like c++ tries to be)
can call R or use c module easily (cost portability)
the aging numpy seems reviving
【在 J*****n 的大作中提到】 : 我最近重新学习了一下boost,发现python的那套东西,似乎C++里面也能方便的做到。 : 除了文本处理上他占点便宜,其他C++也都有。 : 如果是特别的数学统计的包裹,那么R里面更多。 : 本身对脚本不是特别熟,请教一下,Python到底有什么特别的优势?
| d****p 发帖数: 685 | 4 Agree on most except the one about portability.
Python code, when sitting close to OS, tends to not "portable" and needs a
lot of tweaking.
A big advantage of Python code over C++ is fast development time and easy
debugging - when the system is non trivial, a small change in core C++ code
requires large amounts of time for rebuilding and really hurts productivity.
【在 r****t 的大作中提到】 : interactive, : no forward declaration, : default to pass by reference, : strong typing but can also do duck typing (as if templates) : exceptions are objects, : portable : simple grammar for coroutine/generator : the author was never an artist, but a mathematician and engineer. : not an opponent to c (like c++ tries to be) : can call R or use c module easily (cost portability)
| l********a 发帖数: 1154 | | h**********c 发帖数: 4120 | 6 I co-ask?
BTW, is Python an interpreter or compiler? | r****t 发帖数: 10904 | 7 both
【在 h**********c 的大作中提到】 : I co-ask? : BTW, is Python an interpreter or compiler?
| S***s 发帖数: 104 | 8 It's dynamic language.
Dynamic is the fashion for programming language nowadays.
Ruby, Python, Javascript, Groovy...
The other fashion is functional programming.
【在 J*****n 的大作中提到】 : 我最近重新学习了一下boost,发现python的那套东西,似乎C++里面也能方便的做到。 : 除了文本处理上他占点便宜,其他C++也都有。 : 如果是特别的数学统计的包裹,那么R里面更多。 : 本身对脚本不是特别熟,请教一下,Python到底有什么特别的优势?
|
|