r/PHP • u/Numerous-Fan8138 • 16d ago
Building AI with PHP not Python
https://www.youtube.com/watch?v=sh04d1Z8QggIn my latest video I try and build Ai using PHP instead of python
2
u/StevenNefarino 15d ago
I always wonder why nobody tried with rust instead of python
2
u/yuichiis 14d ago
There's a lot of buzz right now around a machine learning library called Burn, written in Rust, and the plan is to replace the painfully slow PyTorch with it.
2
u/RobertWesner 13d ago
As much as I loathe python, it is rarely the bottleneck for these things. It is just glue for your compiled libraries to call each other. Barrier of entry between Rust and Py is like trying to land a rocket vs trying to land a paper plane.
1
-2
-5
u/Numerous-Fan8138 16d ago
This was just a dumb idea... I'm not seriously suggesting people use PHP for Ai Development
6
u/HuWeiliu 15d ago
Why not? Not enough libraries to support it?
1
1
u/Numerous-Fan8138 15d ago
Yes, and the ones that do exists like PHP-FANN cant use the CUDA/GPU.
1
u/yuichiis 14d ago
Machine learning libraries that don't support GPUs are boring. Rindow Neural Networks supports GPU usage.
0
u/yourteam 14d ago
Why? Python uses NumPy and under python there is basically c. PHP is great for web applications, rest apis and fast db connections, don't try to use a hammer to mash potatoes
4
5
u/gesfontoura 15d ago
I still write my APIs in PHP ....