5 ms·
Honest question: Can someone explain to me why people are excited about WebGPU and WASM and similar technologies? To me, one of the greatest things about the
by stackghost 2y ago
Honest question: Can someone explain to me why people are excited about WebGPU and WASM and similar technologies?
To me, one of the greatest things about the web is that the DOM is malleable in that you can right click -> view source -> change things. This is dead in an era where the server just sends you a compiled WASM dll.
It seems to me that the inevitable result of things like WASM and WebGPU will be "rich media web 4.0 applications" that are just DRM, crypto miners, and spyware compiled so that they're more difficult to circumvent, and delivered via the browser. An excuse to write web apps with poor performance because "well the user just needs a stronger GPU". It seems like an express train back to the bad old days of every website being written in flash.
I honestly cannot see the upsides of these technologies. Is it gaming? Why would I want to play a 3D game in my fucking browser of all places? That's a strict downgrade in almost every way I can think of. Why would anyone want that? Is it "AI"? Why would I want to run an LLM in the browser, I could just run it natively for better performance?
All I can see and have seen over the last several years is a steady parade of new technologies that will make the internet (and in some cases the lives of every day people) objectively worse while enriching a handful of big tech douchebags.
Why are we going down this path? Who is asking for this stuff? Why the fuck would I want to expose my GPU to a website?
- do_not_redeem 2y agoWhy do you think wasm is harder to circumvent? The only way to instantiate a wasm module in the browser is through (drum roll) javascript. Install noscript if you're worried. The days of view source -> edit are basically over anyway due to every site's 1MB+ minified JS blobs. > Why would I want to run an LLM in the browser, I could just run it natively for better performance? Why would you try out a new app in a sandboxed browser, when instead you could give it complete access to your entire computer?
- stackghost 2y agoIf the app can run arbitrary code on my GPU it's not exactly sandboxed, is it?
- do_not_redeem 2y agoAre you launching Chrome with --disable-gpu-sandbox? If not, it's sandboxed.
- stackghost 2y agoIf websites can run compute shaders on my hardware, that's not a sandbox.
- tedunangst 2y agoIf websites can run JavaScript on your hardware, is that not sandboxed?
- crazygringo 2y agoSandboxing is about preventing code from accessing data it's not supposed to. Data like files or memory belonging to other tabs or other processes. Or data streams like your webcam or microphone. Data outside of its, well, sandbox. So how are compute shaders accessing data they're not supposed to? How do you think they're escaping the sandbox?
- do_not_redeem 2y agoIt seems like you're just making up your own definitions now because you don't like the tech. What do think a sandbox is, exactly? And what do you think Chrome's GPU sandbox does, if it's not a sandbox?
- jillyboel 2y agodo you have a proof of concept that uses webgpu shaders to extract sensitive data?
- stackghost 2y agoThe search term you're looking for is "monero miner"
- dahart 2y agoFor that matter, why would you expose your CPU to a website? Or your monitor? It could show you anything! ;) Maybe you are not be aware of the number of good web apps that use some WebGL under the hood? You might be using office applications in your browser already that use WebGL when it’s available, and the reason is it makes things faster, more responsive, more scalable, and more efficient. Same would go for WebGPU. There’s no reason to imagine that the web will do bad things with your resources that you didn’t ask for and don’t have control over. There have been hiccups in the past, but they got fixed. Awareness is higher now, and if there are hiccups, they’ll get fixed.
- skydhash 2y agoI don't mind the browser using the GPU to speed up graphical operations. But I do mind random sites and apps going further than that. Native apps have better access, but there's an higher selection criteria than just opening a URL.
- stackghost 2y ago>There’s no reason to imagine that the web will do bad things with your resources that you didn’t ask for and don’t have control over. The web is like this right now. Why would things magically become a utopia?
- fulafel 2y ago> There’s no reason to imagine that the web will do bad things with your resources that you didn’t ask for and don’t have control over. Read some security update news from browser vendors and vulnerability researcher posts. There's some weak signals about vendors acknowledging the difficulty of securing the enormous attack surface of browsers built on unsafe foundations, eg MS "enhanced security mode" and Apple "lockdown mode".
- Flux159 2y ago> Why would I want to play a 3D game in my fucking browser of all places? To provide users a way to instantly play a game without having to download all assets at once. Give developers a potential way to avoid app store royalties of up to 30% on desktop or mobile. With wgpu in rust, you can also target WebGPU as a shared 3d runtime that will run across OS's natively rather than having to target Vulkan, Metal, and DirectX. > Why would I want to run an LLM in the browser, I could just run it natively for better performance? What about users who don't know how to download a model and run it locally? I would argue this is the vast majority of users in the world. Also, this specific use case is probably not going to be generalized with WebGPU yet due to model sizes, but rather other APIs like the Prompt API in Chrome which will use Gemini Nano embedded into the browser (assume it will eventually get standardized). https://developer.chrome.com/docs/ai/built-in-apis https://developer.chrome.com/docs/ai/built-in-apis I agree with you that WASM and WebGPU will be used for adware, targeting, and spyware - but if you don't want to use them, you should disable them in your browser settings - there's definitely value add for other users even if you can't see any benefits.
- stackghost 2y ago>To provide users a way to instantly play a game without having to download all assets at once There's a reason QuakeLive didn't catch on and it's because streaming resources to the player makes for awful UX. >What about users who don't know how to download a model and run it locally? Those users also don't know how to compile MS Word from source but they have been getting along just fine with installers.
- dartos 2y agoThe ability to paste a URL into a browser and have that be everything you need to do to play a game is pretty compelling for many kinds of games. That’s what made flash games so big back in the day.
- pjmlp 2y agoURLs can also be mapped into native applications, it is a matter of the right OS. https://developer.android.com/training/app-links https://developer.android.com/training/app-links
- stanleykm 2y ago[flagged]
- 01HNNWZ0MV43FF 2y agoUsers wanted an app sandbox. HTML documents were sort-of like an app sandbox. Evolution is now adding an app sandbox to HTML. There is little we can do to resist it. I don't like it either - I hate HTML.
- lukaqq 2y agoYou should try Chillin(https://chillin.online https://chillin.online), browser-based video editor. Powered by WebGL, WASM, and WebCodecs, Chillin provides a full suite of video editing capabilities on the web. Trust me, Chillin is smoother than most native video editors, even on mobile. I believe Chillin can leverage WebGPU to bring even more powerful rendering features. Yes, running LLMs on the web may not have significant advantages due to the speed limitations, but other models, such as those for bg removal, speech-to-subtitles, and translation, could become practical and efficient thanks to WebGPU.
- koolala 2y agoIt's interesting to me you don't like any WebGL websites. I remember first trying Minecraft Java in the browser and it was awesome. Runescape! I grew up playing Runescape! How could anyone not want games like Runescape to exist?!?
- bigstrat2003 2y ago> How could anyone not want games like Runescape to exist?!? I mean, I wouldn't say I don't want it to exist. But Runescape is one of the shittiest, most boring games I've ever played. It's not exactly a strong argument for why we should run stuff in the browser
- jeroenhd 2y agoLast time I checked Runescape switched to a native client, too. And even in the browser back in the day it used to run absolutely terribly, so I hope we're not trying to replicate that experience.
- peutetre 2y ago> Can someone explain to me why people are excited about WebGPU and WASM and similar technologies? WebAssembly brings all languages to the browser. Why shouldn't I be able to use C#, Rust, Go, Dart, Python, or whatever else in browser? WebAssembly brings better performance. That's what Webamp found: https://jordaneldredge.com/blog/speeding-up-winamps-music-visualizer-with-webassembly/ https://jordaneldredge.com/blog/speeding-up-winamps-music-vi... And what Amazon found: https://www.amazon.science/blog/how-prime-video-updates-its-app-for-more-than-8-000-device-types https://www.amazon.science/blog/how-prime-video-updates-its-... And what Google found: https://web.dev/case-studies/google-sheets-wasmgc https://web.dev/case-studies/google-sheets-wasmgc Why make things perform worse when they can perform better? Why shouldn't I be able to make an application that compiles to the Windows, macOS, and Linux desktops and also to the browser? This one does: https://bandysc.github.io/AvaloniaVisualBasic6/ https://bandysc.github.io/AvaloniaVisualBasic6/
- account42 2y ago> WebAssembly brings all languages to the browser. Why shouldn't I be able to use C#, Rust, Go, Dart, Python, or whatever else in browser? This has zero end-user benefit. While having the end-user drawbacks gp mentioned (reduced ability to inspect and modify content). > WebAssembly brings better performance. Wirth's law says "hold my beer".
- crabmusket 2y agoFigma, my dude
- bigstrat2003 2y agoI agree. Trying to shove everything into the browser is absolutely stupid. Native apps are better than doing things in the browser in almost all cases. But that's not trendy, so people don't chase after it.
- encom 2y agoWe won't stop until the entire web has been enshittified.
- akira2501 2y ago> Native apps are better Native operating systems are garbage at maintaining user privacy and become maintenance burdens when too many applications have been installed and even uninstalled on the machine. While not perfect, a browser tab is a stronger sandbox than you can easily get in any other context.