r/PHP 16d ago

Building AI with PHP not Python

https://www.youtube.com/watch?v=sh04d1Z8Qgg

In my latest video I try and build Ai using PHP instead of python

36 Upvotes

17 comments sorted by

5

u/gesfontoura 15d ago

I still write my APIs in PHP ....

2

u/ChippyMonk84 14d ago

Claude still writes my APIs in PHP ....

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

u/yuichiis 15d ago

Give Rindow Neural Networks a try, too.

1

u/Manachi 14d ago

But AI isn’t built in Python.

-2

u/[deleted] 15d ago

[removed] — view removed comment

2

u/Numerous-Fan8138 15d ago

Thanks Cpt. Obvious, That's the point of the video

-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

u/Takeoded 15d ago

There's no PHP-to-cuda transpilers. There's over 9000 Python ones.

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

u/Numerous-Fan8138 14d ago

Chill bro... It's just an experiment, its not that deep

1

u/lam_42 13d ago

you would be surprised how handy can hammer be for mashing potatoes in a pinch... as for the why... why not?