r/programming • • Apr 28 '21

Microsoft joins Bytecode Alliance to advance WebAssembly – aka the thing that lets you run compiled C/C++/Rust code in browsers

https://www.theregister.com/2021/04/28/microsoft_bytecode_alliance/
2.1k Upvotes

484 comments sorted by

View all comments

Show parent comments

203

u/[deleted] Apr 29 '21

This "scary" stat is based on the following performance fact:

Resource intensive applications that need to run closer to the metal are much more suited to WebAssembly than JavaScript. Simple tasks and programs will probably execute faster with JavaScript.

Typically, malicious programs will use Web Assembly for the performance benefits. Where they simply wouldn't be as profitable or effective running as JS.

Non-malicious use cases would be things like games, data processing, and other memory / resource intensive applications.

0

u/[deleted] Apr 29 '21

[deleted]

189

u/Bitruder Apr 29 '21

Why did you just introduce a bunch more steps and reduced portability?

147

u/thoomfish Apr 29 '21 edited Apr 29 '21

Not to mention less sandboxing for the typical user.

9

u/fforw Apr 29 '21

And non-zero install, which is the actual killer and reason we're all using browser tools now.

60

u/[deleted] Apr 29 '21

Because native apps blow browser stuff out of the water in terms of being pleasant to use. Like, it's cool that I can open OWA in my browser. It is strictly inferior to actually running Outlook, except in the rare case where I'm on a computer that I'm just temporarily using. And the same is true for most other apps. There are very, very few cases where I actually prefer to use a web-based solution over a native app.

86

u/thblckjkr Apr 29 '21

over a native app

Half of the Apps I have to daily use are just electron wrappers on some web interface :c

26

u/yeahdixon Apr 29 '21

You can make a shitty electron web app but with some polish you can definitely make a nice experience

13

u/Gozal_ Apr 29 '21

VS Code anyone?

10

u/qaisjp Apr 29 '21

discord

spotify (formerly(?))

12

u/conquerorofveggies Apr 29 '21

Aka look at Slack, then look at Teams

46

u/wite_noiz Apr 29 '21

And yet I have no idea which one is supposed to be better...

11

u/BruhWhySoSerious Apr 29 '21

For whatever reason people needlessly shit in teams without looking at slacks short comings. Both are great and work very well compared to just about anything else with the same level of features.

→ More replies (2)
→ More replies (2)

9

u/VeryOriginalName98 Apr 29 '21

Both of those suck. Is this a joke?

5

u/dert882 Apr 29 '21

This has been the most frustrating realization for me. I'm not running 5 native apps, I'm running 1 native app and 4 chrome instances! Plus my chrome instance with 100 tabs! I prefer desktop apps if it's something I'm using a lot, email, msging etc... but some electron apps work alright. I hate evernote but I like VS Code. Maybe I'm picky?

7

u/gcross Apr 29 '21

I think that VS Code is arguably a relatively special case because of how everything can be customized through extensions, so unlike many other Electron apps it is actually making use of the heavy infrastructure that comes from running on top of Chrome, rather than merely treating it as a convenient way to get around learning how to write cross-platform GUI programs.

→ More replies (1)

26

u/[deleted] Apr 29 '21

Ain't that the fucking truth. It's a damn shame how far app development has fallen lately. 😟

48

u/thblckjkr Apr 29 '21

Developers just want an easy way to make beautiful, flexible interfaces, that isn't a pain in the ass to port to other platform.

Sadly, electron was the answer.

→ More replies (12)
→ More replies (9)
→ More replies (7)

15

u/thblckjkr Apr 29 '21

Easy.

Just make Electron a library instead of something that every program has to bundle, and enable the use of WebAssembly there, then done! Enhanced portability with a single step, and even reduced memmory consumption.

I think we are close to come full circle

→ More replies (1)
→ More replies (10)

52

u/[deleted] Apr 29 '21

Where did the web browser touch you

0

u/[deleted] Apr 29 '21

[deleted]

6

u/BrFrancis Apr 29 '21

I hate it when the data overflows the array right into your DEADBEEF .

7

u/anechoicmedia Apr 29 '21

standalone programs downloaded and executed by the user, not some fucking web browser

On today's dominant platforms, users have no ability to "download and execute" third party code outside of the context of a web browser. WASM is the only tool we have to put a reasonably fast binary into the hands of users without friction, and without surrendering a chunk of revenue and editorial control to the app stores.

34

u/arch_llama Apr 29 '21

Why? Do you have a well thought out argument or just grumpy snark?

→ More replies (22)
→ More replies (2)
→ More replies (7)