帮我选择一个C ++编译器来使用Python [英] Help me choose a C++ compiler to work with Python

查看:80
本文介绍了帮我选择一个C ++编译器来使用Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚找到Python,我喜欢它。多么优雅的语言!

我想将它用于各种应用程序,但

数学计算太慢了(百万秒8秒
$ Python中的b $ b与Excel VBA中的2秒相比,所以在考虑学习足够的C ++来完成C ++中的数字运算并集成C ++

例程蟒蛇。我的问题:

我的问题:

哪种编译器最适合Python?

我使用的是Windows XP和98.对C ++的经验很少。我需要进行统计和其他模拟,需要数十亿美元的b $ b计算(在Excel VBA中需要1到2个小时)。海湾合作委员会是免费的,MS

C ++。网价格<100美元但据说有问题直到

下一个版本(我只能在我的XP机器上使用它) ,旧的

版本的MS C ++已不再销售。什么是最强大的

解决方案?我也想制作我可以插入的.dll文件

MS Excel。

对不起这个问题的含糊不清,但我很肯定你很多人

有这方面的经验和任何信息,意见,甚至

对各种编译器的偏见是受欢迎的。

谢谢。

Just found Python and I love it. What an elegant language!
I would like to use it for various applications, but the
mathematical calculations are way too slow (a million sines 8 seconds
in Python vs. 2 seconds in Excel VBA), so was thinking of learning
enough C++ to do the number crunching in C++ and integrating the C++
routines with Python. My question:
My question:
Which compiler works best with Python?
I use Windows XP and 98. Have very little experience with C++. Am
doing statistical and other simulations that require billions of
calculations (taking 1 to 2 hours in Excel VBA). GCC is free, MS
C++.Net is affordable at <$100 but supposedly has problems until the
next version (and I could only use it on my XP machine), older
versions of MS C++ are no longer for sale. What''s the most robust
solution? I would also like to make .dll files that I can plug into
MS Excel.
Sorry for the vagueness of this question, but I''m sure many of you
have experience with this and any information, opinions, and even
prejudices about the various compilers are welcome.
Thanks.

推荐答案

100但据说问题直到

下一个版本(我只能在我的XP机器上使用它),旧的

版本的MS C ++已不再销售。什么是最强大的

解决方案?我也想制作我可以插入的.dll文件

MS Excel。

对不起这个问题的含糊不清,但我很肯定你很多人

有这方面的经验和任何信息,意见,甚至

对各种编译器的偏见是受欢迎的。

谢谢。
100 but supposedly has problems until the
next version (and I could only use it on my XP machine), older
versions of MS C++ are no longer for sale. What''s the most robust
solution? I would also like to make .dll files that I can plug into
MS Excel.
Sorry for the vagueness of this question, but I''m sure many of you
have experience with this and any information, opinions, and even
prejudices about the various compilers are welcome.
Thanks.


rhmd写道:

我使用的是Windows XP和98.对C ++的经验很少。我正在进行需要数十亿计算的统计和其他模拟

I use Windows XP and 98. Have very little experience with C++. Am
doing statistical and other simulations that require billions of
calculations




您是否考虑并调查过数字Python或类似的内容

产品?也许你假设你必须恢复到手工制作的C代码是不成熟的。


-Peter



Have you considered and investigated Numeric Python or similar
products? Perhaps your assumption that you have to revert to
hand-crafted C code is premature.

-Peter



" rhmd" < rh的******* @ juno.com>在消息中写道

news:61 ************************** @ posting.google.c om ...

"rhmd" <rh*******@juno.com> wrote in message
news:61**************************@posting.google.c om...
刚刚找到Python,我喜欢它。多么优雅的语言!


是的,我也是。 :)

我想将它用于各种应用程序,但
数学计算速度太慢(Python中有800万秒,而Excel中有2秒) VBA),所以考虑学习足够的C ++来进行C ++中的数字运算并将C ++程序与Python集成。


这个真让我在座位上蠕动。 C ++不是一个非常好的语言

只是为了学习一点点。与Python相比,我会说

学习曲线更加陡峭。它可以很好地控制

目标代码的生成方式,但这也会对临时用户造成危险。

如果你做错了很多坏事都可以发生了,包括可怜的b / b
性能 - 虽然性能不佳可能是最好的那些坏东西!


我建议你看看各种Python库来做你可能需要做的任何数值处理。无论如何它们大部分是用C语言编写的,所以

他们的表现非常出色。例如,我使用SciPy进行Fourier

分析和PIL进行图像处理,在这些

数值密集型任务中获得良好性能,而无需留下轻松和舒适的

好​​老的Python。


我的问题:我的问题:
哪种编译器最适合Python?


我不会选择你的C ++编译器来兼容Python。调试器有多好?标准符合性如何?这些和其他重要标准的C ++编译器差别很大。

我使用Windows XP和98.对C ++的经验很少。我正在进行需要数十亿次计算的统计和其他模拟(在Excel VBA中需要1到2个小时)。


看看我的签名下的UVS库,找到一些C ++代码,我发现这些代码对于统计模拟非常有用。

海湾合作委员会是免费的,MS C ++。<
Just found Python and I love it. What an elegant language!
Yeah, me too. :)
I would like to use it for various applications, but the
mathematical calculations are way too slow (a million sines 8 seconds
in Python vs. 2 seconds in Excel VBA), so was thinking of learning
enough C++ to do the number crunching in C++ and integrating the C++
routines with Python.
This one really has me squirming in my seat. C++ isn''t a very good language
for learning just a little bit of. Compared to Python I would say the
learning curve is much steeper. It offers a lot of control over how the
object code is generated but that also makes it dangerous for casual users.
If you do it wrong a lot of bad things can happen, including poor
performance -- although poor performance would perhaps be the best of those
bad things!

I suggest you look at various Python libraries to do whatever numerical
processing you might need to do. They are mostly written in C anyway so
their performance is excellent. For instance, I use SciPy for Fourier
analysis and PIL for image processing, getting good performance on these
numerically intensive tasks without ever leaving the ease and comfort of
good old Python.

My question: My question:
Which compiler works best with Python?
I wouldn''t choose your C++ compiler for Python compatibility. How good is
the debugger? How is the standards conformance? C++ compilers vary widely in
these and other important criteria.
I use Windows XP and 98. Have very little experience with C++. Am
doing statistical and other simulations that require billions of
calculations (taking 1 to 2 hours in Excel VBA).
Take a look at the UVS library under my sig for some C++ code which I have
found useful for statistical simulations.

GCC is free, MS C++.Net is affordable at <

这篇关于帮我选择一个C ++编译器来使用Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆