# ¿Qué opinas sobre que D tenga sus propias librerías de IA y compita con Python? / # What do you think about D having its own AI libraries and competing with Python?

Sergey kornburn at yandex.ru
Fri May 2 19:38:35 UTC 2025


On Friday, 2 May 2025 at 16:37:13 UTC, daniel wrote:
> ### My question to the community:
> Best regards,
> Daniel N.

Hi Daniel,

First of all let's start with your questions:

> Do you believe D has the potential to become a serious 
> alternative to Python in AI development?

No. Not even specific languages like Julia and Mojo currently can 
create any real alternative to Python.
Some small team can try to use it of course for their project, 
but wider adoption is not the case. Most of the research and real 
production cases support only Python.

> Would you support an open-source initiative to create 
> artificial intelligence libraries entirely in D?

There are already several native D libraries in this area.
Vectorflow, grain, golem, tensorformat.

For any significant improvement and development you need quite 
big community.
Even if the new DL framework will be released in D - I don't 
think it will get any wide adoption - because there is no 
community who will improve and push forward the solution.

For example, Rust has several ML frameworks. And because they are 
more resource efficient and they have Rust community - they are 
trying to push it.. but even they can't really compete with 
Python for now. But they have a chance. D in the current 
situation - only if some research group will do everything by 
themselves..
But I don't see any improvements over Python + C++/Rust approach.

Second,
Python AI ecosystem is based on C++ and Rust libs. TF, PyTorch, 
tokenisers and many other libs used by the industry are based on 
high perf, portable langs.

D has issues with this as well. Efficient Float8, Float16, 
BFloat16 and especially GPU support - are essential for current 
situation.

Where D can be applied from my point of view - "unix way" 
approach.
Some small task which doesn't require GPU support with some usage 
of C++/C API Rust libs - maybe possible way to use the language.

Or for educational purposes implement some algorithms in D also 
could be fine.


More information about the Digitalmars-d mailing list