xhp
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 |
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
- Maud: A Rust macro for writing HTML
-
Using ELisp as an HTML templating engine
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
-
Programming in C++ is hard, Software Engineering in C++ is even harder
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
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?
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