News for hackers. Stuff that matters.
Re:Uno: Single-Codebase for Windows, WebAssembly, iOS, macOS... by lukevp on Thursday November 05, 2020 @12:26PM (#25000039)
Why don’t we push for first class wasm precaching in browsers? Right now wasm libs are limited in interop with JS and DOM. Could we have a .net/JVM like language-agnostic wasm standard lib bundled with all browsers, and target it like we do with .net standard? Then app makers could target a .wasm standard release and if the browser didn’t support it, polyfill in at app start the missing features?
Re:Uno: Single-Codebase for Windows, WebAssembly, iOS, macOS... by Spivak on Thursday November 05, 2020 @01:04PM (#25000429)
“Please Update .NET to the latest version to access this website.”
Re:Uno: Single-Codebase for Windows, WebAssembly, iOS, macOS... by emteycz on Friday November 06, 2020 @10:18AM (#25008183)
Surely you know that sites are chasing milliseconds as it has enormous influence on conversion rates?
Re:Uno: Single-Codebase for Windows, WebAssembly, iOS, macOS... by JoshTriplett on Thursday November 05, 2020 @01:28PM (#25000609)
> Right now wasm libs are limited in interop with JS and DOM. Could we have a .net/JVM like language-agnostic wasm standard lib bundled with all browsers, and target it like we do with .net standard?

There's already a plan to give WebAssembly direct access to DOM, and to any other API JavaScript would have access to, without needing a JavaScript shim. (This requires integration between WebAssembly and the JavaScript garbage collector, which is part of why it's taking time to develop.)

Re:Uno: Single-Codebase for Windows, WebAssembly, iOS, macOS... by ComodoHacker on Thursday November 05, 2020 @02:27PM (#25001125)
>language-agnostic wasm standard lib

Can such a thing even exist?

I think we'd better install wasm libraries (both language-specific and language-agnostic) like we install browser extensions.

Re:Uno: Single-Codebase for Windows, WebAssembly, iOS, macOS... by rictic on Thursday November 05, 2020 @04:46PM (#25002368)
> Can such a thing even exist?

Yes, cross-language code sharing is being worked on.

> I think we'd better install wasm libraries (both language-specific and language-agnostic) like we install browser extensions.

How would a site know what libraries are available? How would versioning work?

This is a caching problem, best solved at the normal browser resource cache level IMO.