HNHacker News
TopNewBestAskShowJobs

andrewdalpino

7 karma · joined December 28, 2018

Software Engineer from Chicago, USA
submissionscomments
andrewdalpino··on Machine Learning and Deep Learning using the PHP Language (Examples & Tutorials)
What languages do you program in?

I've used PHP for a while now. PHP is a language that favors practicality. It's a language that is depended on throughout the world and doesn't (purposely) change as fast to accommodate new trends

Having that said

- The value of machine learning has become very clear over the past decade or so

- 80% of websites on the web are powered by PHP

https://haydenjames.io/80-percent-web-powered-by-php/

I undoubtedly anticipate a steady rise in effort from the PHP community directed at practical applications of ML - Rubix ML being one of the first libraries to make these tools accessible to the PHP engineer

andrewdalpino··on Machine Learning and Deep Learning using the PHP Language (Examples & Tutorials)
This is a good convo to have

Two things you mentioned that are incorrect though

The first is the presumption that you need a GPU to do machine learning - the reality is that the average business doesn't need nor has the data to benefit from such large models

The second is that PHP is slow - but when you do comparisons with Python, PHP is actually faster

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

The reason why Python, for example, is faster in some machine learning applications is because it's probably getting help from a library such as numPY or Tensorflow

Although these tools are missing currently in the PHP ecosystem, I'm confident that we'll have them eventually

For example, here is an attempt to bring numPY-like functionality as a PHP extension

https://github.com/phpsci/phpsci-ext/tree/1.0-dev

We've also had some progress being made accessing Tensorflow from PHP using an FFI (foreign function interface)

https://github.com/dstogov/php-tensorflow

So this is where the convo should begin in my opinion

andrewdalpino··on Machine Learning and Deep Learning using the PHP Language (Examples & Tutorials)
Hi HN, OP here

Feel free to ask me any questions about the library

It's been a very interesting project so far

Andrew

andrewdalpino··on Machine Learning and Deep Learning using the PHP Language (Examples & Tutorials)
Haha yeah that's a common reaction from people that haven't seen it with their own eyes yet

I don't blame you

Let me know if you have any questions

andrewdalpino··on Machine Learning and Deep Learning using the PHP Language (Examples & Tutorials)
Yeah that's a fair question

Machine learning is one of the most important technologies of the next coming decades and I don't want PHP developers to get left behind

At first I wanted to learn ML and so I started writing the algorithms one by one and putting them up on Github, it started to become very useful to me, and so I decided to share it

Thanks for the question