Recent submissions

Comment · 11 years ago
Clarification on the title of this post; Phan is written in PHP7, but will analyze code written in any version of PHP.
Comment · 11 years ago
Analysis takes a lot of CPU and we're not doing any parallel processing. Phan itself is about 30k lines of code and takes about 1.5s for a clean run.

That being said, you should take a look at the '-s' flag for saving state to a sqlite database. After the initial run the stored state can be used to only scan changed files. For a patch with a few files changed it should be about 0.5s to run the analysis.

Comment · 11 years ago
Comment · 11 years ago
Definitely.

If you want to start working on that, feel free to open up an issue (https://github.com/etsy/phan/issues/new) to start a conversation about it.

We currently store method/function callers in the sqlite database (see https://github.com/etsy/phan/blob/master/src/Phan/Analyze/Br...), but aren't yet exposing an interface for getting callers. We'll want to store callers for constants, classes, properties and global variables as well.

Comment · 11 years ago
Phan does not attempt to make sense of things like `$class_name->$function_name()` or `$$v`. I'd be happy to see a pull request that could handle simple strings, but otherwise I imagine the best we can do is emit a warning.

I'm not sure what SIMD refers to. Can you clarify that?

Comment · 11 years ago
Comment · 11 years ago
Co-author here. Happy to answer any questions folks have about Phan.
Comment · 11 years ago
We used construction paper to black out the back around the tablet. My guess is that the paper wouldn't like the humidity but the rest would be fine. Perhaps you could swap in some black plastic material that would work with spray adhesive.
Comment · 11 years ago
Hi, I helped hannahmitt make the mirror.

The rectangle of light isn't noticeable at all in normal light if you adjust the brightness on the tablet well. In a dark room it can be noticeable, though.

Comment · 11 years ago
Unfortunately, the touch screen doesn't work through the mirror, however, we're using reusable sticky stuff to attach the mirror to the tablet, so its easy to remove if needed.
Comment · 12 years ago
It was written to scratch a personal itch; never as a business. I'd be happy to see someone else pick it up and do something with it.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton