Live data from Hacker News

Boris – A tiny REPL for PHP

github.com

11–20 of 31 posts

Re: Boris – A tiny REPL for PHP

#12

How does it differ from HHVM REPL or PsySH? I'm not a PHP dev so I may be missing some finer points of this project - care to elaborate?

PsySH has a tendency to crash on fatal errors. If Boris figured out how to recover gracefully that would be a huge point in its favor.

Re: Boris – A tiny REPL for PHP

#13

How does it differ from HHVM REPL or PsySH? I'm not a PHP dev so I may be missing some finer points of this project - care to elaborate?

PsySH has a tendency to crash on fatal errors. If Boris figured out how to recover gracefully that would be a huge point in its favor.

Are you running Windows? If not, you've found a bug and should report it. If you are, you've discovered the reason Boris doesn't run at all on Windows :)

Seriously, though, if you're running on Windows you should report fatal errors that make PsySH crash as well. It works around a lot of them, but there will always be more, so let us know.

Re: Boris – A tiny REPL for PHP

#16

Earlier quoted context omitted.

I would attribute a percentage of the downloads for Boris to being included in Laravel 4. Laravel 5 is now using PsySH.

Data point: PsySH went from ~15k Packagist downloads total to ~6-8k downloads per day when Laravel 5 shipped.

Wait, a decrease... That's strange!

Re: Boris – A tiny REPL for PHP

#17

Earlier quoted context omitted.

I'll compare it to PsySH. Though this doesn't indicate any superiority in quality, I think it's important to note that Boris is arguably much more popular (measured in downloads from Packagist + stars on GitHub). From the start (back in 2011, before PsySH), Boris was meant to be tiny and light-weight in its core, weighing in at a few hundred lines of fairly straightforward code (brainstorming ideas for an extension A…

I would attribute a percentage of the downloads for Boris to being included in Laravel 4. Laravel 5 is now using PsySH.

Yeah, Boris downloads did spike quite a bit when Laravel 4 included it.

Re: Boris – A tiny REPL for PHP

#18

Earlier quoted context omitted.

Data point: PsySH went from ~15k Packagist downloads total to ~6-8k downloads per day when Laravel 5 shipped.

Wait, a decrease... That's strange!

Sorry, my sentence was a bit ambiguous. Before Laravel 5 shipped, there had only been 15k Packagist installs total. After Laravel 5, it increased to almost half that every day.

Re: Boris – A tiny REPL for PHP

#19
post #15

Earlier quoted context omitted.

Indeed

It seems like the only thing needed to add the P is a var_dump. Am I missing something here?

No, you aren't missing anything. Maybe it's the Stockholm Syndrome of using PHP every day speaking, but I'm personally quite satisfied actually having to ask for output.

Re: Boris – A tiny REPL for PHP

#20
post #14

Still doesn't work on Windows. I don't care what people say ruby,node and python ,even Ipython repls work on Windows. So why can't we have a proper repl for PHP?

I don't know about the others, but this one works by using ext/pcntl, which isn't available natively on Windows. Try under cygwin? Crappy workaround...
Post reply on HN