hack-codegen VS xhp-js

Compare hack-codegen vs xhp-js and see what are their differences.

hack-codegen

Library to programatically generate Hack code and write it to signed files (by hhvm)

xhp-js

Easily create JS controllers for XHP elements, and XHP wrappers for React elements (by hhvm)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
hack-codegen xhp-js
1 2
337 55
0.6% -
3.4 0.0
10 months ago over 2 years ago
Hack Hack
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

hack-codegen

Posts with mentions or reviews of hack-codegen. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-27.
  • Ask HN: State of PHP at Facebook
    7 projects | news.ycombinator.com | 27 Oct 2021
    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/writing-co...

    This is modern Hack code, but not representative of the state of the Ent framework nowadays - ent/ent is closer design-wise, but not usable from Hack.

xhp-js

Posts with mentions or reviews of xhp-js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-31.
  • LuaX: A Lua Dialect with JSX
    8 projects | news.ycombinator.com | 31 Dec 2023
    They also made XHP-JS, though it seems inactive.

    https://engineering.fb.com/2015/07/09/open-source/announcing...

    https://github.com/hhvm/xhp-js

  • Ask HN: State of PHP at Facebook
    7 projects | news.ycombinator.com | 27 Oct 2021
    There is: it's called XHP (https://docs.hhvm.com/hack/XHP/introduction).

    That said, I'm not sure how you'd go about server-side rendering React from Hacklang, as it seems that the open-source solution to do so is no longer supported (https://github.com/hhvm/xhp-js).

What are some alternatives?

When comparing hack-codegen and xhp-js you can also consider the following projects:

fbshipit - Copy commits between repositories · git → git, git → hg, hg → hg, or hg → git

Boston-PHP-Meetup-Examples - Boston PHP Meetup examples

OCRJS - Extracting characters from image using tesseract.js (OCR) Javascript .