Most active commenters

    ←back to thread

    420 points solcloud | 15 comments | | HN request time: 1.879s | source | bottom
    1. bilekas ◴[] No.41917247[source]
    This is wild... PHP server with electron client.. I'm genuinely impressed. It's been many years since I worked with PHP. Back in the days before proper namespaces etc. This just blows my mind. What an incredible effort, I will definitely be helping with this project in my free time. We need more crazy projects like this!
    replies(6): >>41917616 #>>41917775 #>>41920240 #>>41922154 #>>41926353 #>>41952012 #
    2. doctorpangloss ◴[] No.41917616[source]
    “Make games that are fun to make.”
    3. solcloud ◴[] No.41917775[source]
    thank you for kind words :)
    4. calvinmorrison ◴[] No.41920240[source]
    Php is basically runtime Java these days. It's so much better than ye olden days
    replies(1): >>41920707 #
    5. ARandomerDude ◴[] No.41920707[source]
    > Php is basically runtime Java these days

    I don't know enough about PHP to understand this comment. Can you elaborate?

    replies(1): >>41921194 #
    6. mikeweiss ◴[] No.41921194{3}[source]
    I think they're just saying its a lot like Java if Java was a interpreted language and not a compiled language.
    replies(1): >>41922436 #
    7. treflop ◴[] No.41922154[source]
    You could have actually made this 15 years ago! As a kid I pretty much only knew PHP and Visual Basic so I made CLI servers in PHP (…lol)

    You could make asynchronous servers using socket_select(), which was added in PHP 4.1.

    https://www.php.net/manual/en/function.socket-select.php

    There was also a third party extension that added threads to PHP 15 years ago, although it was buggy.

    replies(1): >>41924204 #
    8. bilekas ◴[] No.41922436{4}[source]
    Might you call it JavaScript? /s
    replies(1): >>41923795 #
    9. meiraleal ◴[] No.41923795{5}[source]
    Thanks God, no. PHP has the clumsiness of Java but JavaScript is cool.
    replies(1): >>41924021 #
    10. divan ◴[] No.41924021{6}[source]
    WAT? [1]

    [1] https://www.destroyallsoftware.com/talks/wat

    replies(1): >>41924587 #
    11. diggan ◴[] No.41924204[source]
    > There was also a third party extension that added threads to PHP 15 years ago, although it was buggy.

    Reminds me of ReactPHP (no, not that React) that allowed you to do non-blocking I/O in PHP back in like 2012-2013 sometime. Maybe that's the library you're referring to actually?

    https://github.com/reactphp/reactphp

    replies(1): >>41925456 #
    12. calvinmorrison ◴[] No.41924587{7}[source]
    wow this is hilarious.

    we have a linter that bitches anytime anyone uses php's empty. In fact, php has tons of these weird behaviours mostly masaradng as trying to be helpful

    13. treflop ◴[] No.41925456{3}[source]
    I mean actual threads.

    Seems they still have the docs up: https://www.php.net/manual/en/book.pthreads.php

    14. fefferkorn ◴[] No.41926353[source]
    Yeah, same,.. Real time game server written in PHP is really interessting. I also know PHP from the old days and now only from certain CMS systems, but not realtime projects. Im amazed! Nice! :)))
    15. Sincere6066 ◴[] No.41952012[source]
    electron eh? pass.