xhp-js VS hack-codegen

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

xhp-js

Easily create JS controllers for XHP elements, and XHP wrappers for React elements (by hhvm)

hack-codegen

Library to programatically generate Hack code and write it to signed files (by hhvm)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
xhp-js hack-codegen
2 1
55 337
- 0.6%
0.0 3.4
over 2 years ago 10 months 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.

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).

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.

What are some alternatives?

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

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

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

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

HHVM - A virtual machine for executing programs written in Hack.

ent - An entity framework for Go

xhp-lib - Class libraries for XHP. XHP is a Hack feature that augments the syntax of the language such that XML document fragments become valid Hack expressions.

user-documentation - Documentation for those that use HHVM and write Hack code.

pallene - Pallene Compiler