News for hackers. Stuff that matters.
Re:ECMAScript for XML - Direct XML Syntax in ECMAScript by slver on Wednesday June 02, 2021 @07:16AM (#27367312)
They're both XML-like. But they serve completely different purpose and have different semantics.

E4X produces a standalone (pure markup) mutable XML node tree intended to encode data for cross-platform communication and data exchange.

JSX produces an non-standalone (links to JS symbols, functions, etc.) node tree intended to encode DOM fragments for UI updates.

E4X is not needed today, because we use JSON for data exchange. So E4X is now simply... JS objects.

Re:ECMAScript for XML - Direct XML Syntax in ECMAScript by eyelidlessness on Wednesday June 02, 2021 @12:34PM (#27370744)
And JSX is renderer-agnostic (and even implementation-agnostic). You can use it to render anything from CLIs to smart TV interfaces.
Re:ECMAScript for XML - Direct XML Syntax in ECMAScript by slver on Wednesday June 02, 2021 @03:27PM (#27372925)
I'm curious what I'd use JSX for in a CLI :)
Re:ECMAScript for XML - Direct XML Syntax in ECMAScript by eyelidlessness on Wednesday June 02, 2021 @09:21PM (#27376109)
The same single direction data flow/declarative render model as you’d use for DOM! The most prominent example is Ink: https://github.com/vadimdemedes/ink