News for hackers. Stuff that matters.
Re:Civet: A Superset of TypeScript by recursive on Monday October 21, 2024 @11:08PM (#41910839)
JSX has a spec. This thing they're doing... I don't know what it is, but it ain't JSX.
Re:Civet: A Superset of TypeScript by edemaine on Monday October 21, 2024 @11:27PM (#41910930)
The JSX spec hasn't changed for almost 10 years, and I'd guess there will never be a JSX 2.0. On the other hand, ideas for a better JSX are plentiful (check out the issues on the JSX repo, for example). If the spec never changes, how can we improve the JSX experience? Transpilation!

Civet's futuristic JSX compiles to actual spec-compliant JSX, to it's compatible with all forms of JSX, including React, Solid, etc. We'd like to support other DSLs like Astro and Svelte as well.

Re:Civet: A Superset of TypeScript by recursive on Tuesday October 22, 2024 @11:47AM (#41915500)
Not so sure. JSX is already a transpilation language. Why target a language that's only supported as an input language for other compilers? I don't think this is an LLVM-type scenario.
Re:Civet: A Superset of TypeScript by edemaine on Tuesday October 22, 2024 @04:52PM (#41918571)
As an example, Solid's JSX compiler changes multiple times in a year. It's better to target JSX than the compiled form. There are also many JSX compilers. (Even React ships with at least two.)