Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dparoski
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
dparoski
12y ago
Hmm, IMHO it feels like you're bending the definition of "lifetime" a bit in a manner that already presumes RC-based automatic memory management, and once one accepts that assumption then naturally one concludes that the life
2.
▲
by
dparoski
12y ago
First, I want to thank you, Paul, for writing this critique. It's great to read well thought-out feedback about the draft spec that was announced yesterday. Before getting into technical nitty gritty, I wanted to clarify that the spec
3.
▲
by
dparoski
12y ago
To my knowledge a JIT compiler is not being added to PHP 5.7. Can you clarify your comment or provide a link to the source where you heard this?
4.
▲
by
dparoski
13y ago
Edit: My previous comment was referring to the second occurrence of "return" in your example (after the "==>" arrow). Just noticed I mistakenly dropped the first occurrence of "return"; the first occurrence
5.
▲
by
dparoski
13y ago
The "return" keyword is not needed if the right hand side of the lambda arrow ("==>") is an expression that is not wrapped in curly braces. If the right hand side _is_ wrapped in curly braces then it is treated as a l
6.
▲
by
dparoski
13y ago
Engineer working on Hack here. Historically XHP was developed before Hack. It's available as an add-on for PHP but never became a formal part of the PHP language. When Hack was being designed it needed to work well with XHP (as XHP is
7.
▲
by
dparoski
13y ago
Engineer working on Hack here. Hack runs on the HHVM engine. HHVM is fairly stable and is used by Facebook to serve over a billion web requests per today. In the past year or so developers outside of Facebook have started using HHVM to run
8.
▲
by
dparoski
13y ago
Engineer working on Hack here. You can actually write you example a bit more concisely in Hack: "$y ==> $y + 1".
9.
▲
by
dparoski
14y ago
As noted elsewhere in this thread, a stack-based design typically produces more compact bytecode. Compactness was a concern for us because of the size of FB's PHP code base. Also, generally speaking a stack-based design tends to be easier t