News for hackers. Stuff that matters.
Re:First public release of Pushup: a new compiler for making... by shadowgovt on Wednesday January 04, 2023 @11:36AM (#34247741)
One counterpoint is React is doing gangbusters right now and uses the JSX syntax extension to embed HTML directly into JavaScript or TypeScript.

To my money, the main issues with PHP had little to do with template embedding and everything to do with Perl being a messy language for writing correct code (coupled with too many people in the era underestimating the importance of "correctness" for HTML rendering when the ability for a malicious operator to mutate HTML on a page can result in all manner of security exploits). Perl just has too many ways to write accepted almost-correct code that breaks abstraction / fails to string-escape in subtle and whole-farm-losing ways.

Re:First public release of Pushup: a new compiler for making... by kennywinker on Wednesday January 04, 2023 @11:53AM (#34248012)
Are you equating PHP and Perl? If so, that's incorrect - the relationship between the two is just one of influence, PHP has some influences from Perl (but also tons from C, C++, and Java).
Re:First public release of Pushup: a new compiler for making... by shadowgovt on Wednesday January 04, 2023 @12:25PM (#34248523)
To be fair, you haven't exactly augmented the single-element list [Perl] with a host of languages that I'd consider improvements on writing correct code. ;)

Java, yes, mostly.

Re:First public release of Pushup: a new compiler for making... by hiccuphippo on Wednesday January 04, 2023 @12:47PM (#34248852)
There's a difference though. JSX embeds html into strings while the way Php intermingles html and code uses global buffers. That makes composition more complicated since you have to deal with nested buffers, flushing, cleaning, etc. I really prefer the way JSX does it over Php's.