News for hackers. Stuff that matters.
Re:Introduction to WebAssembly: why should we care? by _red on Tuesday December 19, 2017 @07:54AM (#15959822)
These things are cyclical:

* Early computers (1960-1980s): Dumb Terminal - Remote Server

* Early PCs (1980s-1995): Local Processing - Remote Storage

* WWW (1995-2010s): Dumb Terminal - Remote Server

* JS/ASM/Etc (2010s - near future): Local Processing - Remote Storage

Its fully possible that we will switch again to dumb terminal model. For instance, once the hassle of local code execution takes it toll, someone will have the bright idea of just putting the web browser itself in the cloud and just having a remote control connection to that browser....and the cycle will begin again.

Re:Introduction to WebAssembly: why should we care? by tskaiser on Tuesday December 19, 2017 @09:22AM (#15960342)
Yet each of those steps solved a different problem.

Early computers did not have the local processing power needed to run heavy jobs.

Early PCs did not have the storage.

WWW solved an entirely different problem, namely distribution and communication.

JS et. al. solved the problem of responsiveness and interaction ie. latency.

I don't really see those as exhibiting cyclical traits, at best I see it as a correlation ie. side effects of the true problems being solved.

Re:Introduction to WebAssembly: why should we care? by TeMPOraL on Tuesday December 19, 2017 @12:36PM (#15961974)
> JS et. al. solved the problem of responsiveness and interaction ie. latency.

You mean "introduced", right? Back before the modern web, when we all expected software to run on our machines, there was no responsiveness and latency problems, because data didn't travel over the wire unless it absolutely had to.

Re:Introduction to WebAssembly: why should we care? by sp332 on Tuesday December 19, 2017 @01:01PM (#15962235)
You can't download the entire internet. And loading a new web page every time you push a button is slow.
Re:Introduction to WebAssembly: why should we care? by TeMPOraL on Tuesday December 19, 2017 @01:21PM (#15962489)
Not in practice, given that in reality of this use case, JS code also does network requests, which tend to be at least as slow as downloading a HTML page.

That said, what I meant is modern JS enabled moving into the web things that should have stayed local. It's literally two step backwards (moving software into "the cloud") and one step forward (giving back some responsiveness through AJAX).

Re:Introduction to WebAssembly: why should we care? by adrianN on Wednesday December 20, 2017 @03:01AM (#15967844)
For some reason the web feels a lot faster when I disable JS...
Re:Introduction to WebAssembly: why should we care? by sp332 on Wednesday December 20, 2017 @06:50AM (#15968809)
I can make an application as fast as you want if it doesn't have to run correctly.
Re:Introduction to WebAssembly: why should we care? by TeMPOraL on Wednesday December 20, 2017 @07:07AM (#15968897)
Most of the time when you put JS on your page, what you're doing is breaking the thing that would - without JS - still correctly do what it's actually supposed to do.
Re:Introduction to WebAssembly: why should we care? by tskaiser on Wednesday December 20, 2017 @11:26AM (#15970973)
"Most of the time"? Citation needed.

While I generally agree with the sentiment of "do more by coding less", and minimalist user interfaces, there are plenty of cases where you throw a whole lot of functionality out the window by outright banning JS.

Re:Introduction to WebAssembly: why should we care? by pecg on Tuesday December 19, 2017 @11:48AM (#15961503)
> WWW solved an entirely different problem, namely distribution and communication.

> JS et. al. solved the problem of responsiveness and interaction ie. latency.

I don't think either of these statements is correct. There wasn't a problem of 'responsiveness' and 'interaction' on http to begin with, in fact what Sun and Netscape did with javascript was to overengineer the web because they saw it as a business opportunity to add client-side code. http was designed (badly) to exchange hypertext documents, not to perform transactions over the server, or render video-games, or play music and videos, and certainly not to transfer files, for the latter ftp was desgined (also badly).

Re:Introduction to WebAssembly: why should we care? by tskaiser on Wednesday December 20, 2017 @03:30AM (#15967954)
While I accept that my description of JS et. al. might be contentious, I don't see that you have argued against my piece on the WWW in general.

Regarding latency and responsiveness I agree that they are issues that depend largely on your use cases and your skill at implementing solutions. In this regard I can agree that some pages simply don't need JS. It is also being misused for ads and tracking to a degree that is problematic and can in itself cause issues.

Re:Introduction to WebAssembly: why should we care? by opportune on Tuesday December 19, 2017 @09:17AM (#15960315)
That's basically what Chromebooks already are. I think it's the future too. The only problem is that it moves away from the "upgrade your device every X years" paradigm that makes consumer electronics manufacturers money. They'll have to switch to a subscription model and people may not like that (and personally I'm terrified of the alternative situation where a company would rather I give them my personal information than pay them $1000 every 4 years)

One way to approach the latency problem is with more aggressive colocation. For example, an apartment complex could have its own AWS or Google servers for local computation or video streaming.

Re:Introduction to WebAssembly: why should we care? by TeMPOraL on Tuesday December 19, 2017 @12:40PM (#15962015)
> One way to approach the latency problem is with more aggressive colocation. For example, an apartment complex could have its own AWS or Google servers for local computation or video streaming.

That would be great, if only we could make it not belong to Amazon or Google. Consider the same idea phrased like this: apartment complex have servers in their basement offering compute, and services you use work on those servers. The model of today is that companies own services, control where the compute happens, and ship your data to them, taking ownership over it in the process. The alternative model I dream of is your data under your control, your choice where the compute happens, and third-party code being shipped to that place.

Re:Introduction to WebAssembly: why should we care? by alexchamberlain on Tuesday December 19, 2017 @01:11PM (#15962362)
Let's imagine we could solve the easy problem of writing the software that is fully distributed to each complex and interacts with the software in any other complex. How do we solve the operations problem of running the machines in the complex?
Re:Introduction to WebAssembly: why should we care? by justincormack on Tuesday December 19, 2017 @02:08PM (#15963057)
One model is to overprovision hardware a bit, and just not repair until it is significantly degraded (at which point you just swap it out and refurbish). Maintaining a software platform is getting easier.
Re:Introduction to WebAssembly: why should we care? by TeMPOraL on Tuesday December 19, 2017 @01:22PM (#15962503)
VMs, containers, and whatever stuff Amazon is doing with that Lambda thing all sound like a good start.
Re:Introduction to WebAssembly: why should we care? by discreditable on Tuesday December 19, 2017 @01:14PM (#15962394)
> it moves away from the "upgrade your device every X years" paradigm

Don't Chromebooks have ~4yr end-of-support lifecycles where they stop receiving upgrades?

Re:Introduction to WebAssembly: why should we care? by tskaiser on Wednesday December 20, 2017 @03:34AM (#15967978)
6.5 years for most devices, 5 years for some legacy cases, and it is a soft limit ie. they don't automatically enter EOL, they just stop guaranteeing the updates.

Source: https://support.google.com/chrome/a/answer/6220366

Re:Introduction to WebAssembly: why should we care? by discreditable on Wednesday December 20, 2017 @10:18AM (#15970236)
6.5 is pretty respectable. Not quite like Windows or general purpose Linux which can be upgraded almost indefinitely. I have Vista laptops released mid-2009 (>8yrs old) that run Windows 10 rather well considering their age. Of course, no one would have guaranteed 8yrs on those devices. I'd wonder what experiences people with EOL Chrome devices out there are having with upgrades.
Re:Introduction to WebAssembly: why should we care? by tskaiser on Wednesday December 20, 2017 @01:13PM (#15972158)
I imagine you could still update with some wench-work. An EOL date of 6.5 sounds to me like a way to say that "beyond this point we will stop testing and ensuring compliance, and to avoid fucking over your relic (in PC terms), with an update that is untested on your specific hardware, we simply disable the automatic updates. Good luck."
Re:Introduction to WebAssembly: why should we care? by hood_syntax on Tuesday December 19, 2017 @07:58AM (#15959841)
Yeah, if we want latency added to literally every action... I understand that what you're saying is a possibility, but I sure hope it doesn't come to pass.
Re:Introduction to WebAssembly: why should we care? by chongli on Tuesday December 19, 2017 @09:44AM (#15960514)
Those of us who get frustrated by latency in our tools were left behind long ago. Shiny user interfaces, cloud to-do lists, adblockers, bloated fad frameworks of the week, electron apps, blue apron for dogs... This is our reality now.

I miss the internet I grew up with. The one before all the money arrived to ruin absolutely everything.

Re:Introduction to WebAssembly: why should we care? by TheRealPomax on Tuesday December 19, 2017 @09:10AM (#15960272)
New technology starts with the above-well-off, using tech you currency consider "absurdly unattaible to the masses" (like cars in the 20s, or telephone in the 40s, or computers in the 60s, or 24/7 internet in the 90s): for instance, when you just get a basically free gigabit connection straight into the backbone (like in a new upscale Japanese apartment building) the very idea that latency could even be a problem just... disappears.

In that context, just attaching an interactive window to a remote running process (as long as it can stream faster than whatever is your minimum acceptable framerate at your minimum acceptable resolution) is literally indistinguishable from running locally. So I frankly do hope that comes to pass (as long as I also get to keep being able to build a desktop computer for working offline).

Re:Introduction to WebAssembly: why should we care? by adrianN on Wednesday December 20, 2017 @03:04AM (#15967856)
Latency and bandwidth are different though. Your GBit connection won't help you access servers on the other side of the Atlantic.
Re:Introduction to WebAssembly: why should we care? by TheRealPomax on Wednesday December 20, 2017 @06:31AM (#15968727)
I have no idea why you would need to leave your country in a world where we're back to thin clients and remote processing. Pretty sure the most obvious place for that processing to take place is at what used to be ISPs and have in this hypothetical future become Interactive Service Providers rather than "internet" service providers, with low latency, high bandwidth hubs in or near your city (and more likely, multiple hubs per city).
Re:Introduction to WebAssembly: why should we care? by woogley on Tuesday December 19, 2017 @09:27AM (#15960369)
The catalyst of such a shift could be a very good thing, e.g. exceptional internet speeds everywhere
Re:Introduction to WebAssembly: why should we care? by baybal2 on Tuesday December 19, 2017 @09:27AM (#15960371)
Now I expect that there will come usability experts from google/facebook/amazon and tell you that an average user does not event know what latency is.

Native apps have won over web app ecosystem, plainly and simple. WASM will not change things even a bit to root causes of people deciding to use native apps over web apps.

Re:Introduction to WebAssembly: why should we care? by greiskul on Tuesday December 19, 2017 @01:57PM (#15962938)
Google and amazon certainly think the average user cares about latency, even if they don't know what it is: https://blog.gigaspaces.com/amazon-found-every-100ms-of-late...