xhp VS whichever-compiles

Compare xhp vs whichever-compiles and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
xhp whichever-compiles
2 2
44 92
- -
10.0 10.0
over 7 years ago about 3 years ago
Yacc Rust
GNU General Public License v3.0 or later BSD 2-clause "Simplified" 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

Posts with mentions or reviews of xhp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-05.
  • Maud: A Rust macro for writing HTML
    8 projects | news.ycombinator.com | 5 Jun 2022
  • Using ELisp as an HTML templating engine
    8 projects | news.ycombinator.com | 10 Apr 2022
    It’s cool that you can express this sort of structure in Lisp without any change to the language. This contrasts to extensions to other languages that allow an XML-like syntax. For example JSX for JavaScript [1], XHP for PHP [2], and XML Literals for VB.NET[3].

    [1]: https://reactjs.org/docs/introducing-jsx.html

    [2]: https://github.com/phplang/xhp

    [3]: https://docs.microsoft.com/dotnet/visual-basic/programming-g...

whichever-compiles

Posts with mentions or reviews of whichever-compiles. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-05.
  • Programming in C++ is hard, Software Engineering in C++ is even harder
    1 project | /r/cpp | 2 Jul 2023
    I don't think "Rustaholics" need to be told about this? See for example https://github.com/m-ou-se/whichever-compiles
  • Maud: A Rust macro for writing HTML
    8 projects | news.ycombinator.com | 5 Jun 2022
    You can't build an IDE that definitely just "understands Rust macros" since procedural macros in particular are in effect modifying your compiler. Maud is a proc macro.

    Mara's whichever_compiles! macro for example: https://github.com/m-ou-se/whichever-compiles -- that macro is forking your compiler to try out all the branches and throwing away branches which caused a compile error.

    Clearly your IDE should throw its hands up and say, I don't understand what this does, I give up.

    In general doing something useful with Rust macros is a more tractable problem for an IDE than say the C pre-processor, because Rust's macros have a stronger syntax, but the proc macro is potentially much too powerful / dangerous to try to evaluate.

What are some alternatives?

When comparing xhp and whichever-compiles you can also consider the following projects:

htmlgo - Type safe and modularize way to generate html on server side.

xhp-php5-extension - A PHP5 extension that augments the syntax of the language such that XML document fragments become valid PHP expressions.

spinneret - Common Lisp HTML5 generator

FaxJs - Fax Javascript Ui Framework

rust-analyzer - A Rust compiler front-end for IDEs

llama - lisp-like application markup

A Tour of Scala - The standard Scala XML library

with-c-syntax - C language syntax in Common Lisp