News for hackers. Stuff that matters.
Re:Goodbye PNaCl, Hello WebAssembly by snakeanus on Tuesday May 30, 2017 @10:36PM (#14450094)
> It was one of the best things that happened to Linux desktops in a long time and removing it hurts users and makes them less secure.

I will disagree, you can install most of these from the official repository of your distribution, without the use of electron. They are also very secure if you run them as an unprivileged user.

Re:Goodbye PNaCl, Hello WebAssembly by Hydraulix989 on Tuesday May 30, 2017 @11:01PM (#14450153)
Suppose your JS Chrome App is getting the plug yanked on it, what are your alternatives?

1.) Port it to Electron and keep nearly the same code base

2.) Rewrite the whole thing as a native app in such a language as C++ without the use of Electron

You can't possibly tell me that most developers won't choose #1 instead of #2 in a heartbeat (the switching costs are orders of magnitude more for #2, for one thing). Which is not a Good Thing.

And it's also very obvious that #2 isn't nearly as secure as #1, which runs in a sandbox and so does not have direct unchecked access to users' files like #2 does.

Re:Goodbye PNaCl, Hello WebAssembly by lukechilds on Wednesday May 31, 2017 @05:54AM (#14451357)
Unless I'm misunderstanding something, an Electron app also has direct unchecked access to users' files by using the Node.js 'fs' core module.
Re:Goodbye PNaCl, Hello WebAssembly by hueving on Wednesday May 31, 2017 @07:30AM (#14451650)
Which option works on a chromebook?
Re:Goodbye PNaCl, Hello WebAssembly by snakeanus on Wednesday May 31, 2017 @07:13AM (#14451596)
You can as a user to just use another application.
Re:Goodbye PNaCl, Hello WebAssembly by afarrell on Wednesday May 31, 2017 @02:24AM (#14450727)
Yes, but the existence of ssh on chrome makes it much much easier to teach a windows user how to try out the linux command line. PuTTY is annoying as hell to help a new person get working and they might not have enough space for vagrant+virtualbox.
Re:Goodbye PNaCl, Hello WebAssembly by cat199 on Wednesday May 31, 2017 @09:54AM (#14452496)
PuTTY is annoying as hell to help a new person get working

Seriously? There are like 12389127381789 how to guides about how to do it, and it is literally like 3 steps.

Do you really think the person who has problems starting putty is going to thrive in a CLI environment?

Re:Goodbye PNaCl, Hello WebAssembly by lloeki on Wednesday May 31, 2017 @12:27PM (#14453749)
PuTTY's UI is an ass-backward mess (and that's mildly put) and the fact that you're used to put up with it or that there exists five Knuth's arrows worth of guides doesn't change that. In fact the latter is probably a testimony of it all. I've used it for years, know it by heart, still hate it, and am pretty well served by and versed in the unix terminal universe, TY. PuTTY has been useful for sure but that was by scarcity as there was basically no alternative on Windows for a decade or more.
Re:Goodbye PNaCl, Hello WebAssembly by ThomasGeek on Wednesday May 31, 2017 @03:19AM (#14450895)
On windows, you no longer need either with bash for windows you can have a near complete linux experience while running inside windows natively.
Re:Goodbye PNaCl, Hello WebAssembly by afarrell on Wednesday May 31, 2017 @03:24AM (#14450913)
If you can assure me that is the case, fantastic! Do you know of a way to test the UX of ssh from bash for windows for less than $5 ?
Re:Goodbye PNaCl, Hello WebAssembly by chuckdries on Wednesday May 31, 2017 @04:44AM (#14451127)
"Ubuntu on Windows" as they're calling it now is free, enabled via the control panel, and provides a near perfect bash experience. I use it on the desktop I built for VR to SSH into my digital ocean droplets all the time. Super easy to use, just open powershell, run `bash`, then you can run `ssh` like normal. You have access to your windows files with /mnt/c and etc. for additional drives. The only issue is that Powershell doesn't support the full gamut of colors that Bash does, but that support is coming in the fall creators update and frankly it works fine with every Vim and zsh color scheme I've tested.

10/10 developing for the web on windows is finally tolerable

Re:Goodbye PNaCl, Hello WebAssembly by simonh on Wednesday May 31, 2017 @03:54AM (#14450992)
I don't know enough about ssh for Chrome and bash for Windows to get your point. Isn't bash for Windows (as part of WSL?) free? What is it that costs more than $5 using bash for windows but is free with ssh for Chrome? Genuinely interested, I'm on OSX mostly but I'm WSL curious.
Re:Goodbye PNaCl, Hello WebAssembly by philh on Wednesday May 31, 2017 @08:19AM (#14451863)
I interpreted that as them not having access to a Windows machine and wanting to try out the experience for themselves before attempting to teach someone else.
Re:Goodbye PNaCl, Hello WebAssembly by BenjiWiebe on Wednesday May 31, 2017 @11:02AM (#14453043)
I suppose you could run a modern.ie image and use WSL in that.
Re:Goodbye PNaCl, Hello WebAssembly by pletnes on Wednesday May 31, 2017 @06:21AM (#14451429)
Git bash comes with ssh.

Cygwin has ssh as an optional install.

Msys2 too.

Of course, you need to have windows first. MS give away 30-day win 10 trial VM images with git bash installed, or at least they did.

Re:Goodbye PNaCl, Hello WebAssembly by afarrell on Wednesday May 31, 2017 @03:51PM (#14455372)
I..should have clarified that I don't have easy access to a windows machine and don't have access at all to one that I can install stuff on.
Re:Goodbye PNaCl, Hello WebAssembly by aargh_aargh on Wednesday May 31, 2017 @09:52AM (#14452484)
Just curious - why do you think PuTTY is annoying?
Re:Goodbye PNaCl, Hello WebAssembly by fb03 on Wednesday May 31, 2017 @10:23AM (#14452730)
I love PuTTY, but my best PuTTY is actually KiTTY, since it saves profiles in a local config file instead of the ominous Windows Registry. Much easier to move around :-)

http://www.9bis.net/kitty/

Re:Goodbye PNaCl, Hello WebAssembly by afarrell on Wednesday May 31, 2017 @03:51PM (#14455376)
I wish I'd done a UI critique of it back when I was doing the relevant teaching.
Re:Goodbye PNaCl, Hello WebAssembly by mrout on Tuesday May 30, 2017 @10:59PM (#14450148)
If you run them as a different user from yourself, maybe, but who does that?

The idea that software is secure if it only runs on your own user account is stupid IMO. I'd rather that software had access to everything on my computer EXCEPT my personal files.

Re:Goodbye PNaCl, Hello WebAssembly by mnm2 on Wednesday May 31, 2017 @02:22AM (#14450724)
It's about restricting access: One is protecting others; The second is protection within your own realm. Both are needed (Unix was just like: At least don't touch the data / system that other users have)