我可以在D(而不是C)中创建Python扩展模块

时间:2022-01-08 04:15:07

I hear D is link-compatible with C. I'd like to use D to create an extension module for Python. Am I overlooking some reason why it's never going to work?

我听说D与C链接兼容。我想使用D为Python创建扩展模块。我忽略了为什么它永远不会起作用的一些原因?

2 个解决方案

#1


Wait? Something like this http://www.dsource.org/projects/pyd (previously http://pyd.dsource.org/)

等待?像这样的东西http://www.dsource.org/projects/pyd(以前http://pyd.dsource.org/)

#2


Sounds easy and people here who say it's just up to the C API don't know how difficult it is to integrate the Boehm GC used by D within Python. PyD looks like a typical concept proof where people haven't realized the real world problems.

听起来很简单,这里的人们说它仅仅依赖于C API,并不知道在Python中集成D使用的Boehm GC是多么困难。 PyD看起来像一个典型的概念证据,人们还没有意识到现实世界的问题。

#1


Wait? Something like this http://www.dsource.org/projects/pyd (previously http://pyd.dsource.org/)

等待?像这样的东西http://www.dsource.org/projects/pyd(以前http://pyd.dsource.org/)

#2


Sounds easy and people here who say it's just up to the C API don't know how difficult it is to integrate the Boehm GC used by D within Python. PyD looks like a typical concept proof where people haven't realized the real world problems.

听起来很简单,这里的人们说它仅仅依赖于C API,并不知道在Python中集成D使用的Boehm GC是多么困难。 PyD看起来像一个典型的概念证据,人们还没有意识到现实世界的问题。