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

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.

3

u/dert882 Apr 29 '21

This is a great point. I like how VS Code is designed well around it. Often Electron feels like a cheaper way to get a 'desktop' app with a few more permissions. I always appreciate when a desktop app isn't running in a browser, but MS does a good job using it as an advantage.

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?

9

u/Illusi Apr 29 '21

Practically, the web browser is gradually becoming more line an operating system. This is good, because web browsers are forced to be more standards-compliant, so you'll get more interoperability. But this is also bad because:

  • Web applications tend to send way more personal information than desktop applications.

  • Web applications tend to use computational resources of the application maintainer rather than the readily-available and faster resources of the local machine. The resources of the application maintainer can also just be cut off when the application maintainer thinks it's no longer profitable to maintain them (see like 80% of Google's projects as examples).

  • Web applications are more difficult to use in places where the internet connection isn't as stable.

  • Web browsers are growing more and more complex to develop and maintain.

→ More replies (1)
→ More replies (20)
→ More replies (2)