News for hackers. Stuff that matters.
Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by bykhun on Monday August 28, 2023 @06:55PM (#37301422)
I wonder if we can reliably expect React-in-Rust framework that compiles to wasm instead of js? Or maybe just a React library written in Rust, but you can still write the source code in javascript?

Or maybe at least Typescript-to-WASM compiler to skip JS output?

Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by capableweb on Monday August 28, 2023 @06:56PM (#37301436)
I mean probably, yeah, but why? You'd still need JS to involve the DOM with anything, and that's the performance expensive stuff, so might as well just do the whole thing in JS.
Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by patmorgan23 on Monday August 28, 2023 @07:33PM (#37301668)
Isn't there work on letting WASM call the DOM/Browser API's directly without having to go through JavaScript?
Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by mr_toad on Monday August 28, 2023 @09:13PM (#37302363)
Like nuclear fusion, it’s always just over the horizon.
Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by TheRealPomax on Monday August 28, 2023 @07:22PM (#37301596)
At that point, why even bother with React? Just write a real user interface.
Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by yazaddaruvala on Monday August 28, 2023 @07:35PM (#37301679)
React-likes (including Vue, Preact, etc) have the most ergonomic interface for UX devs to develop with.
Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by _navierstokes on Monday August 28, 2023 @08:41PM (#37302150)
What do you define as a "real" user interface?
Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by csjh on Monday August 28, 2023 @08:49PM (#37302186)
I doubt the gains from React rewritten in Rust would be significant; the expensive code is the stuff you write in components

Also Typescript -> WASM exists in some form through assemblyscript

Re:Reaching the Unix Philosophy's Logical Extreme with WebAs... by Havoc on Tuesday August 29, 2023 @03:41AM (#37304553)
Seems a bit silly injecting all that garbage collected untyped stuff straight back into a context where one of the aims was to get rid of it