Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fredemmott
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
fredemmott
5y ago
The warnings about MacOS are mostly being cautious, as I don't think anyone actually runs it in production. I work with open source Hack code a lot, and I almost always use the MacOS binaries instead of Linux for development. For my wo
2.
▲
by
fredemmott
5y ago
To clarify, xhp-js was not server-side rendering - it's a framework for generating javascript code, and getting an DOM element ID for a react element that the hack code can refer to and use elsewhere, e.g. by passing to some other gene
3.
▲
by
fredemmott
5y ago
> Are there any large Hack codebases I can explore? depends what you mean by 'large' - perhaps https://github.com/hhvm/user-documentation ? > Does anyone know if FB tracks changes to PHP so Hack is &quo
4.
▲
by
fredemmott
5y ago
Facebook doesn't. Open source users of Hack do, and it uses packagist.org - however if a package is written in PHP, Hack code can't use it. Not 100% accurate, but if a package's composer.json does not require HHVM, it will mo
5.
▲
by
fredemmott
5y ago
There's also https://github.com/hhvm/hack-codegen/tree/master/examples/do... , along with the article at https://engineering.fb.com/2015/08/20/open-source/wri
6.
▲
by
fredemmott
8y ago
> Now I also don't know if I buy that MAX_INT + 1 and pass-by-reference is a pressing enough use case to break compatibility. I'd be open to hearing why, but I'd be starting from a position of skepticism. This is an exampl
7.
▲
HHVM ending support for PHP after December release, focusing on Hack
(hhvm.com)
6 points
by
fredemmott
8y ago
|
0 comments
8.
▲
by
fredemmott
9y ago
https://github.com/hhvm/hack-router/ and https://github.com/hhvm/hack-router-codegen/ power docs.hhvm.com and some of our other users; they do have problems such as extremely lacking doc
9.
▲
by
fredemmott
9y ago
For completeness: Sara Golemon started porting Facebook's old PHP5 implementation of XHP to PHP7 - you can find it here: https://github.com/phplang/xhp + https://github.com/phplang/xhp-lib
10.
▲
by
fredemmott
9y ago
we're currently leaning towards out/inout parameters, with copy semantics, not byref (and in most cases, we'll probably be able to optimize away the copy); not certain yet though.
11.
▲
by
fredemmott
9y ago
You'll also see a few of these on http://php.net/manual/en/migration70.incompatible.php :p
12.
▲
by
fredemmott
9y ago
Sorry, I know this is a pain; I'm hoping to fix it by the end of the year (along with bringing back nightly debs, and supporting more recent versions of debian/ubuntu). For homebrew build times, there's https://git
13.
▲
by
fredemmott
9y ago
> my ask is to just make a better language and drop ALL of PHP baggage. Long-term, we hope to make pure-hack projects more practical, and we're aiming to make Hack the best web development language. This will take time - both to dec
14.
▲
by
fredemmott
9y ago
I'll leave the first part of your question for someone less close to the project. For the toolchain, when using it: it's currently mostly the PHP toolchain (e.g. composer) with some additions: - the typechecker: this is a fast (
15.
▲
by
fredemmott
9y ago
Function naming: We're moving towards functions_like_this(), instanceAndStaticMethodsLikeThis(), and async functions like foo_async() and methods like fooAsync(). We're unlikely to change the PHP builtins, but we're fairly li
16.
▲
by
fredemmott
9y ago
Thanks; we don't feel that the framework authors have to make a choice here: - short-term, those of us working on HHVM - not the frameworks - need to make sure that HHVM can run the frameworks that Hack developers require - long-term,
17.
▲
by
fredemmott
10y ago
There's https://github.com/facebook/squangle for MySQL, though it's lacking documentation, and requires a https://github.com/facebook/mysql-5.6 or WebScaleSQL client library
18.
▲
Automatically push commits to GitHub with FBShipIt
(code.facebook.com)
18 points
by
fredemmott
10y ago
|
0 comments
19.
▲
by
fredemmott
11y ago
No - it still renders the element client-side so that it supports interactive components. See: https://github.com/hhvm/xhp-js/blob/master/src/XHPReact.php https://github.com/hhvm
20.
▲
by
fredemmott
12y ago
RE exceptions: in HHVM at least you can change this: 1. set hhvm.error_handling.call_user_handler_on_fatals=true in your ini file 2. throw exceptions from your handler :)
21.
▲
by
fredemmott
12y ago
People are having lots of success with https://github.com/mongofill/mongofill-hhvm
22.
▲
by
fredemmott
12y ago
also, if this is an open source workload, any chance you could submit it to https://github.com/hhvm/oss-performance ? We generally optimize based on those benchmarks, and Facebook itself.
23.
▲
by
fredemmott
12y ago
do you have any profiling information to share? if you could post it as a github issue, we'd be very interested. This sounds unusual.
24.
▲
by
fredemmott
12y ago
Here's one :) https://github.com/facebook/vim-flow/
25.
▲
Using XHP with Bootstrap
(hhvm.com)
6 points
by
fredemmott
12y ago
|
0 comments