Live data from Hacker News

Clang runs in the browser and compiles C++ to WebAssembly

tbfleming.github.io

251–260 of 318 posts

Re: Clang runs in the browser and compiles C++ to WebAssembly

#251

Earlier quoted context omitted.

> not even something like JVM has done Not counting applets and Web Start?

Well, perhaps to be more accurate, > not even something like JVM has done successfully .

It was such a bad idea that Google now has Instant Apps on Android and ChromeOS.

Re: Clang runs in the browser and compiles C++ to WebAssembly

#252
post #229

So the web browser is pretty much a mini operating system. Firefox and Chromium seriously feel like they have the longest compile time out of any package in Gentoo, except maybe Libreoffice. It has tons of embedded packages that it doesn't pull from the system/native (jpeg and png decoders and such). So with a lot of these neat things where we compile stuff or run a Linux kernel in the browser, we've pretty much come…

Yes. I hope more people understand this: the browser is a Inner Platform- it's just a portability layer over OS, so that app developers can deliver the same thing to multiple OSes, without making the app portable. These days, you can compile a Qt app with a web view with a single source for all three major platforms.

You can have that with any language that has a rich standard library (batteries included)

C and C++ are the exception as they were tied to nothing more that a basic POSIX like compatibility.

Re: Clang runs in the browser and compiles C++ to WebAssembly

#253

Earlier quoted context omitted.

Replace “WebAssembly VM” with “JVM” and you will see how it’s already available, and why it won’t catch on.

Webassembly doesn't require you to install Oracle software, or lag your computer for 30 seconds while it starts up... And it doesn't require Swing or AWT. So, there are those minor improvements.

Swing is a very good improvement over HTML UI hacks.

Re: Clang runs in the browser and compiles C++ to WebAssembly

#254

Having some random thoughts about the comments here, some of which talk about having a "browser" drive large parts of what we consider today an "operating system". I agree that certain aspects of what most modern operating systems do today can be abstracted away behind a unified, convenient (and perhaps browser-accessible) API. The entire user-experience stack comes to mind immediately, but there are counter examples…

As usual, politics.

Re: Clang runs in the browser and compiles C++ to WebAssembly

#255
post #245

Earlier quoted context omitted.

Browsers do a whole lot better than the status quo for apps in the '90s and early 2000s, which was "offer a Windows .EXE to download, and monetize with spyware".

Web apps are already spyware by default, as everything gets done on a computer I don't have access to. Just plain pretty TTYs.

There is a world of difference between analytics and tracking and, say, CoolWebSearch. You don't see Web apps hijacking your home page, filling your bookmarks with casino ads, installing toolbars, or replacing competitors' banner ads.

Re: Clang runs in the browser and compiles C++ to WebAssembly

#256

Earlier quoted context omitted.

Flash Player had something like 97% penetration, so for all intents and purposes it was something that you could always consider as being "there" - and users didn't mind having to install it. I think a lot of techies underestimate people's willingness to install stuff on their PCs, especially when that stuff is needed to do tasks they really want and are a couple of clicks away.

People use the "average user" as a strawman. He is simultaneously too stupid not to install malware that claims to be a fax, and yet unwilling to exert even the slightest effort to install software he needs to get things done.

> and yet unwilling to exert even the slightest effort to install software he needs to get things done.

Enterprises often disabled (or heavily whitelisted) both Flash and Java in the browser due to malware concerns as they were (and still are) an effective vector for malware.

Re: Clang runs in the browser and compiles C++ to WebAssembly

#258
post #97

Earlier quoted context omitted.

But they often don't perform like native apps, both when it comes to size, speed, and look and feel.

Most users are not so discerning. Once Windows ships with a native JS engine (perhaps Chakra), will streaming Electron-based apps without traditional "installation" be possible?

Windows has supported "Electron" apps since Windows 95, when Active Desktop was introduced.

Thankfully it has been largely ignored until web devs decided to start using Electron.

Re: Clang runs in the browser and compiles C++ to WebAssembly

#260

Earlier quoted context omitted.

Replace “WebAssembly VM” with “JVM” and you will see how it’s already available, and why it won’t catch on.

Webassembly doesn't require you to install Oracle software, or lag your computer for 30 seconds while it starts up... And it doesn't require Swing or AWT. So, there are those minor improvements.

Java doesn't require Swing or AWT either.
Post reply on HN