Bash on Ubuntu on Windows
blogs.msdn.microsoft.com
blogs.msdn.microsoft.com
In most computer nowadays you cannot code (tables and smartphones), are computers doomed to be an expensive tool for few "nerd" ? What will be the impact on computer literacy ?
http://www.ubuntu.com/tablet/developers https://plus.google.com/u/0/105864202742705090915/posts/jNvZ...
The tablet I currently own cost me $80 and came with a C# compiler preinstalled! (Maybe that's an extreme example: It is a Windows tablet, and Android or iOS only come with JavaScript JIT compilers preinstalled.)
During one weekend in which my only options were android devices, I was pleasantly surprised by the packages available in termux. With tmux, git, and ssh installed, I mounted the tablet at the right height and connected a quality keyboard via usb. I actually forgot that I was coding on a tablet!
The phone experience was far more sensitive to maintaining good posture throughout, but being strongly incentivized to keep good posture actually made the experience more pleasant in a way. However, this particular phone was around 1280x720 I believe - seeing individual pixels again, and being pixel-limited (not physical size limited) in the use of panes in tmux were the only facets I found truly unpleasant.
I'm eager to try coding with a high res VR headset.
While being able to play around with Project Euler can be fun, it amounts to "I can run a Turing-machine simulator" and doesn't represent anything more than a tiny fraction of what people want to do with computers when they say they want to "code". You may as well be playing one of the numerous puzzle games that involve much of the same concepts.
To use your iPod Touch as an example, if it were more like a traditional desktop computer, you would also be able to do things like write an app to manage your music playlists.
The tablet I currently own cost me $80 and came with a C# compiler preinstalled! (Maybe that's an extreme example: It is a Windows tablet, and Android or iOS only come with JavaScript JIT compilers preinstalled.)
Not surprising if it's a Windows tablet based on the PC architecture - those are far closer to the traditional desktop than iDevices and Androids. If by C# compiler you're referring to the one that comes with the .NET framework, that's been there since the first versions; pity it's not so well known with MS trying to push VS as hard as possible...
Yes, you can. See https://play.google.com/store/apps/details?id=com.aide.ui
http://boingboing.net/2012/08/23/civilwar.html
http://boingboing.net/2012/01/10/lockdown.html
...and RMS predicted this almost 20 years ago:
http://www.gnu.org/philosophy/right-to-read.en.html
I think the rise of P2P, file sharing, and the openness of the Internet in the last decade significantly narrowed the developer-user gap; and it's been growing since then, motivated by corporations' desire to maintain control over their users.
I think that's only one factor, and not a majority one.
Most users don't want to have to deal with "how it works". They want a simple, easy to use tool that works reliably... And they want to call someone to "fix it" when it "breaks". That's how it works with plumbing, cars, landline phones, stereo components, televisions, and all the electronics they've ever used.
The exceptions are computers and some smartphones, which can present cryptic error messages, have weird things in their settings, and generally make a "dumb user" feel out of their element. Think about the confusion users feel when confronted with a funny noise in their car. "I'm not a mechanic, what does that noise mean?" is no different from "I'm not a computer person, what does that error mean?" What's more, the meaning of the question is not "what, mechanically/electrically, is at fault?" It is "how much time/money will it cost to get it fixed?"
It's not just a small preference, either - the height of luxury are "push button" services that "just work". Go to a high end hotel, and your room phone has just one button. Top end consumer products of all sorts struggle to be an easy-to-use "appliance". A dumbed down user interface without developer tools is user preference, it's status, it's customer comfort and pride, all tied into one.
So 99% of companies end up designing their interfaces like that hotel phone: http://salestores.com/stores/images/images_747/IPN330091.jpg
IMO the most impressive thing about OSX is how well it supports both audiences: it feels like a push-button, high luxury, comfortable, easy device to my mother. But under the hood there are great logs and a solid BSD-based operating system model. It comes prepackaged with a lot of developer tools, hidden in a place where I would look right away, but my mother would never notice.
Sure, some companies use software to limit and control their customers (cough cough Sony), usually with sharp legal/lobbyist teeth to enforce that control. But 99% of companies out there just want to make their users feel comfortable, high status, and competent to use their device.
While I agree with RMS that this split is inevitable, I don't believe it's about control. It's about two distinct market segments: auto enthusiasts who want control over the torque settings in their high end car, and people who just want a car that fucking works. Chefs who want sector-by-sector control over their oven's heating profile, and people who just want to be able to cook a fucking roast without burning it.
Tablets and phones are consumption. You can't do any serious work on them - development included.
This is why laptops and computers have stuck around in spite of the proliferation of cheap, tiny, elegant consumption devices.
So no, I don't think laptops and computers will go away for non-nerds, just for people who don't produce anything.
Development isn't done on tablets because the input devices we have to make code are limited to a keyboard, and most people think text files are code, rather than a serialisation/deserialisation format for an AST.
You could easily build an AST with gestures and speech rather than tapping buttons, and I think in 10-20 years time that's how we'll make software.
I will bet you £100 that we won't be programming by speech and gestures in even 25 years time as the disadvantages are enormous.
Data structures are shapes. A shape is better drawn than described in text.
> Data structures are shapes. A shape is better drawn than described in text.
Draw me a linked list. Tell me how much faster it is than typing:
(list 1 2 (foobar) (make-hash-table) (list "a" "b" "c") 6)
Even on a visual keyboard on a tablet, it's faster to type than to draw data structures. A flat sheet of glass maybe gives us the ability to get the (x, y) coordinates of a touched point easier and with more precision, but it sacrifices many other important aspects - like tactile feedback and the ability to feel shapes. With physical keyboard, you're employing more of the features your body and mind has, and that's why it's faster than a touchscreen.Unless you can find a completely different way of designing UX, then a tablet won't be a suitable device for creation. None of the currently existing solutions come close to beating a physical keyboard and a mouse.
I don't normally use linked lists, but here's an array:
"list joe (subtle gesture) mary (subtle gesture) dave end
If I wanted to delete dave from the list I could grab it and slide it away or say "list delete last".
> Tell me how much faster it is than typing
Everyone in the room I'm in now can talk at 200 words per minute and use their hands. Very few of them could type that fast.
How will you go about drawing "joe" and "mary"? Is it faster than typing? Note that you can't always select stuff from dropdowns - you often have to create new symbols and values.
> Everyone in the room I'm in now can naturally talk at 200 words per minute.
How fast they can track back and correct a mistake made three words before? Or take the last sentence and make it a subnode of the one before that? Speech is not flexible enough for the task unless you go full AI and have software that understands what you mean.
> How will you go about drawing "joe" and "mary"?
I'll just say it, it's easier. As I said at the top of the thread, gestures and speech.
> How fast they can track back and correct a mistake made three words before?
I gave an example of opening an existing structure and modifying it in the comment you're replying to.
> Or take the last sentence and make it a subnode of the one before that?
Like in a DOM? Easily: grab it and move it, just like you do it in DevTools today, except with your hands rather than a mouse.
Sorry, I misunderstood what you meant by "subtle gesture" there.
Anyway, in the original comment you said:
> Data structures are shapes. A shape is better drawn than described in text.
I'll grant you that speaking + gestures may not be a bad way of entering and manipulating small data structures and preforming simple operations. But until we have a technology that can recognize speech and gestures reliably and accurately (and tablets with OSes that don't lag and hang up for half a second at random), physical keyboards will still be much faster and much less annoying.
But I still doubt you could extend that to more complex editing and navigating tasks. Take a brief look at the things you can do in Paredit:
http://pub.gajendra.net/src/paredit-refcard.pdf
Consider the last three or four subsections and ask yourself, how to solve them with touch, gestures and speech. Are you going to drag some kind of symbolic representation of "tree node" to move a bunch elements into a sublevel? How about splitting a node into two at a particular point? Joining them together? Repeating this (or a more complex transformation) action 20 times in a row (that's what a decent editor has keyboard macros for)? Searching in code for a particular substring?
Sure, it can be done with the modes of input you're advocating, but I doubt it can be done in an efficient way that would still resemble normal speech and interaction. There are stories on the Internet of blind programmers using Emacs who can achieve comparable speed to sighted ones. This usually involves using voice pitch and style as a modifier, and also using short sounds for more complex operations. Like "ugh" for "function" and "barph" for "public class", etc. So yeah, with enough trickery it can be done. But the question is - unless you can't use the screen and the keyboard, why do it?
> Like in a DOM? Easily: grab it and move it, just like you do it in DevTools today, except with your hands rather than a mouse.
DevTools are a bad example for this task. Using keyboard is much faster and more convenient than mouse. C.f. Paredit.
Totally agreed. Theoretically, you should just be able to gesture a list with your hands and say "joe mary dave" and the software knows from your tone that's three items and not one.
I don't know that much about lisp and s-expressions asides from that it can edit it's own AST. That's not a way of avoiding the question, it's just my own lack of experience.
> Are you going to drag some kind of symbolic representation of "tree node" to move a bunch elements into a sublevel?
Yes, I already think of a tree of blocks/scopes when editing code with a keyboard, visualising that seems reasonable.
> Repeating this (or a more complex transformation) action 20 times in a row (that's what a decent editor has keyboard macros for).
Here's the kind of stuff I use an AST for: finding function declarations and making them function expressions. I imagine that would be (something to switch modes) "find function declarations and make them function expressions". Likewise "rename all instances of 'res' to 'result'" with either tone or placement to indicate the variable names. More complex operations on the doc would be very similar to complex operations in the doc.
> Searching in code for a particular substring?
Easy. Have a gesture or tone that makes 'search' a word for operating on the document, not in it.
> Sure, it can be done with the modes of input you're advocating, but I doubt it can be done in an efficient way that would still resemble normal speech and interaction.
Yep, I don't think it would still resemble normal speech and interaction either, the same way reading code aloud doesn't. It would however be easier to learn, removing the need to type efficiently as well as the (somewhat orthogonal) current unnecessary ability to create syntax errors.
> DevTools are a bad example for this task. Using keyboard is much faster and more convenient than mouse. C.f. Paredit.
Not sure if I'm reading you correctly here: typing DOM methods in a keyboard in devtools is obviously slower than a single drag and drop operation. Using hands to do it directly is obviously even faster with the mouse.
Stepping back a little: I guess some people assume speech and gestures won't get significantly better, I assume they will.
favouritePeople is Person list, name Joe age 32, Mary 23, Steve 64, end
Using tone to separate entries, but you could use a secondary gesture for that instead. Also some pattern matching.
One other advantage of directly manipulating AST - it's very easily converted into any language runtime you want. It won't matter if you are targeting the JVM, V8 or native bytecode; you can do it all from the same AST. This same thing is possible with plain text code, but not quite as common.
I think there are ports of paredit-like features to those languages in Emacs too, and all the other semantic features of Emacs itself work with those. As long as the language's major mode properly defines what is e.g. a function, a symbol, etc. you can use semantic navigation and editing.
> One other advantage of directly manipulating AST - it's very easily converted into any language runtime you want. It won't matter if you are targeting the JVM, V8 or native bytecode; you can do it all from the same AST. This same thing is possible with plain text code, but not quite as common.
I don't think this is something that AST gives you. AST is just a more machine-friendly representation of what you typed in the source code. Portability between different platforms depend on what bytecode/machine code gets generated from that AST. And since AST is generated from the compiled source anyway as one of the first steps in compilation, getting it to emit a right set of platform-specific instructions means you can compile the original source there too.
And AST doesn't solve the problem of calling platform-specific functions and libraries anyway.
Unless AI advances considerably. For years I've imagined myself talking to the small specialized AI living in my computer, giving it instructions that it would translate to code...
Writing software is about telling a blazingly fast, literal, moron what to do. The ambiguity inherent in natural language is not a good way of telling such a thing what to do.
I think I have discovered the source of your disagreement.
I doubt it. Perhaps we'll be making ASTs by writing (i.e. drawing symbols with styli or pens), but I don't think we'll be doing it via gestures and speech. There's a reason that we don't teach math via interpretive dance.
Edit: And easier to search, remember, read again and the less nice variant of that; 'you never said that to me' 'I did: ' copy/paste.
Recorded speech is also searchable so not sure that's relevant.
It is ; recorded speech is not very searchable, especially if you are talking in a group in a conference where people can be from different countries with different dialects (which is the normal situation for our group talks). Also it is not convenient and sometimes not possible to record every (conference) meeting (too much noise etc). With text it's automatically recorded and perfectly searchable...
Also some of my colleagues are not good at English listening but are very good technically; if I type what I mean they understand while if I/we tell them, everything has to be translated and/or repeated many times.
I think the tech is not there yet to say it's not relevant.
Regarding being easier to search and read it again, it seems like there are potential technical solutions to that problem, but I would agree that we're not there yet.
A more specialized scenario: I was copy/pasting stuff to a colleague in the same room yesterday.
But text is a pretty fine form of communication and I find myself using it very often at work (and at home I often talk this way to people not in the same room, but in the same flat). It's fast, it's convenient, it's less disrupting, and the only reason to avoid it are some silly preconceptions that digital communiction is somehow "worse" than spoken words.
Also, you never passed papers to your friends while in school? That's pre-smartphone equivalent of IM.
And a lot of music creation apps exist for tablets/phones.
This production/consumption divide is too rigid.
Now don't get me wrong - while I only use the two a little, I think they're fine. It's communication, an important part of human experience. But, at least in my mind, Instagram and Snapchat fall firmly into the same group as browsing Facebook or 9gag, as opposed to e.g. making a let's play video or a comic strip.
Yes, there are ways to take photos and create music on tablets and phones. You can do some basic editing on them, even. But the "professional" tools for photography and music, with all the bells and whistles you can think of, are still dominated by laptop / desktop computer programs. (The dominant programs being Photoshop for images, and DAWs like Logic, Ableton Live, and Pro Tools for music.)
The distinction between "production" and "consumption" devices is indeed kind of too rigid in a sense that, of course, professionals will utilize the creative tools that come on tablets and phones, even if the desktop / laptop programs are the primary tool. Tablets also can shine as an extended interface for desktop programs. (EG: Logic Pro (and others) have apps that turns an iPad into a remote controller for the main DAW. There are programs like Astropad that turn your iPad into a Wacom-like tablet for Photoshop, etc.)
The obstacle is interface. The fine-tuned control of a tablet or (especially) a phone is much poorer than using a mouse and keyboard with a large screen. Until that gets resolved, I doubt desktops / laptops will go anywhere.
No. Because of the Glorious PC Master Race - mods, trainers, hacks, overlays etc - these all need dev and root access.
Btw- game modding, cracking, save game editing etc - are the best gateway drugs towards full blown IT career.
It seems like a vast majority of software developers, consciously or not, do not wish for software development to improve beyond a certain point as they fear it would become too accessible and therefore lower the value of their skills. The truth is that we actively make programming as difficult as possible, and everybody loses. I can understand that writing code as text would make sense 50 years ago, but there is no excuse for this today.
Consumer UI is now reaching the 3rd dimension with AR and VR, while software development is stuck in the 1st dimension. A long linear piece of string. It is difficult to believe that those who have the power to create great consumer UX are completely blind to improving their own. Software development has some of the worst UX ever.
The solution to all of those issues has been known for a while, and is dead simple to understand. We need to create a new communication platform, powered by ideas from logic programming and the semantic web. Think of it as 2 huge semantic knowledge graphs, the first describing the real state of the world, the second describing the ideal state of the world. Build a UI on top of it (which should feel more like a graph-oriented Excel than RDF/Prolog) to let people, agents and IoT devices communicate "what is" and "what should be". Then, all it takes is an inference algorithm that can match providers with seekers, get them to commit to some set of world changes (through some sort of contract), and let people manage and track the commitments/tasks they're expected to get done. That's it, that replaces 80% of software needs. Thank you very much.
Knowledge Graph -> Semantic Marketplace -> Smart Contracts -> Task Management
Perhaps I should take this opportunity to make that happen.
Hell, even lack of window management in iOS/Android systems is making UX much more easier to understand for majority of users I know. My granddad, who was an excellent mechanical engineer, have been using computers for the last 20 years, and he still struggles with click/double-click distinction.
Only if you want to keep them illiterate, which companies are more than happy to do since it means they can be more easily persuaded and dependent consumers.
Somehow nobody complains that cars, or microwave ovens are too complicated. Everybody knows they have to learn how to use them - either through a training course or just by reading a manual.
Are my parents or family interested in password managers ? Heck no... why should they, because the browser will remember stuff for them.
Permissions ? You have to be joking... they want to read their email or draw a picture.
Computers are there to make life easy - they're convenience tools (for the mass market). If people have to understand them more than switch them on a press a few buttons, they've failed.
It's not the IT world... for years, we were outcast as geeks and nerds (they were insults in the past). It's that the average person doesn't want (or need) to know about this.
How many people service their own car ?
True, but there is still some learning to do. The only way you can reduce it (barring solving general AI and making a system that actually knows what you mean) is by reducing the things a device/piece of software can do. That's what the industry is doing - cutting out features, turning software into shiny toys. Because from the market perspective, is enough that the people sign up / buy the product - it doesn't have to be actually useful.
That's why software for professionals look complicated - because there the company actually has to make a useful tool. This state of thing is sadly a big loss for humanity - if the only way to make stuff "sexy" is to make it barely useful, then the general population is in fact missing out on all the amazing things technology could allow.
(And the tech people are missing out too, because they're too small a niche. It's more profitable to target the masses instead. That's why all mobile devices are getting dumber.)
> It's not the IT world... for years, we were outcast as geeks and nerds (they were insults in the past). It's that the average person doesn't want (or need) to know about this.
Oh but it is the IT world. We've been invaded by the "normal people" and we've lost the battle. Most programmers employed nowadays are not much different from your average non-tech person, and have nowhere near the technical expertise you'd associate with the "geek and nerds" of the past.
> How many people service their own car ?
I'm not talking about servicing, but about driving. You have to spent 30+ hours in training to be allowed to drive on a public road. Nobody complains because people understand that to use the car well, you have to learn how to do it.
If I had to read a manual to operate my microwave, toaster, coffee machine, sandwich maker, oven, games console, etc etc, I'd just get rid of them.
I say class, because most tosters work the same, most microwaves work the same, most smartphones work the same and most 3D modelling programs work the same too. But you have to get that first little bit of knowledge about the class of tools from somewhere, even if from your own experimentation. Humans aren't born with knowledge how to use technology.
You sound like a guy who teaches his kid to swim by throwing him in the stormy sea.
I don't think anyone ever has.
Have you tried teaching him that? I highly doubt an old person, especially one with engineering background, will have trouble with understanding the distinction if someone bothers explaining it to them.
Or in general - it's surprising how much non-tech people can understand about technology if someone bothers to sit down with them and explain the concepts to them. Usually the reason they don't learn this stuff themselves is the typical human impulse of "if I haven't figured it out in 3 seconds flat, it's too difficult and I won't understand it".
So here's just a few ways you can code on Android:
QPython: https://play.google.com/store/apps/details?id=com.hipipal.qp...
AIDE (Java): https://play.google.com/store/apps/details?id=com.aide.ui&hl...
Terminal IDE: https://play.google.com/store/apps/details?id=com.spartacusr...
If all else fails, just deploy debian with Linux Deploy: https://play.google.com/store/apps/details?id=ru.meefik.linu...
If desktops become more expensive, it'll just mean people are more motivated to make tools like this. Android phones and tablets are basically treated as cheap commodities and there's an extremely competitive market for them, if anything, the entry price has gone down.
Now, admittedly I'm not sure how this situation is on iOS, but maybe someone could link similar tools on there?
For one thing, a Raspberry Pi is more powerful than the Sinclair ZX-81, Apple IIe, or Atari 400/800 I had access to back then, and much cheaper.
Given that Microsoft supported Oracle's view that the structure, sequence, and organization of the Java programming interfaces were covered by copyright law, then surely they would also agree that the same holds true for the Linux kernel system call interfaces.
I don't like the APIs-are-copyrightable decision, but given that's the current state, why aren't we talking about how this is a violation of the Linux kernel copyright license -- the GPL?
A system call is a function entry point. The code executed when those functions are called is GPL licensed, and Microsoft wrote that from scratch.
The whole point of open source licenses is to make it explicitly clear what you're allowed to do with the (yes, still copyrighted) material. They too provide strict terms and require you to honor the license.
It's not like Linux has a published license free spec. Unless they reverse engineered the system calls (possible but omg I think that would have been hard), then I'd be willing to bet that this could be easily considered derived work from the GPL.
This is not going to happen. And this is not a too bad news, because this might give us leverage (by estoppel) if MS ever wants to litigate against free software on the theory that reimplementing API propagates copyright.
(1) core NT kernel (2) Linux subsystem
The GPL is not that expansive, it only extends to programs built upon GPL-licensed stuff, not for programs that just happen to have a GPL application running on them.
A compilation of a covered work with other separate and independent works,
which are not by their nature extensions of the covered work, and which
are not combined with it such as to form a larger program, in or on a
volume of a storage or distribution medium, is called an “aggregate”
if the compilation and its resulting copyright are not used to limit
the access or legal rights of the compilation's users beyond what the
individual works permit. Inclusion of a covered work in an aggregate
does not cause this License to apply to the other parts of the aggregate.One legal thing that I'm also wondering about is the "Linux" trademark. I thought the Linux Foundation kept close tabs on how you were allowed to use the trademark, and one requirement was that the Linux kernel was actually involved?
This probably explains why they never talk about Linux (at least I never saw it), but always about Ubuntu. I guess they have an agreement with Canonical.
The whole "they're a big company...don't you think they've thought of this!" argument (and its many "do you really think they'll lose?" variations) is always a fallacy. That doesn't make the argument about the copyright of ABIs valid, but at the same time the notion that Microsoft is big therefore they must be right is absurd.
But the rest of those have nothing to do with their legal team. They wouldn't implement a copy of another OS into this OS without making sure it was legal to do so.
It might not have been simple to do, but still - hard not to see the outcome.
The very fact that they had to pull the plug seems to suggest that it was not desired, and as such, it should have been safe guarded against.
An example safeguard being, limit what it can say. If it has racist/etc stuff in it, literally don't send to twitter. The bot still learns, the algos don't change, and Microsoft still gets to see what the given AI will behave like in full public. And above all else, the bot isn't a Microsoft branded Hail Hitler AI.
It sounds like you believe what happened is perfectly within reason - if that's the case, why do you believe they pulled the plug?
All in all, this is a lesson that some high-profile person/group eventually had to learn on our behalf. Now, when an unknowing manager asks why your chat bot needs to avoid certain offensive phrases because, "our clientele aren't a bunch of racists", you can just point him to this story. The actual racists are tame by comparison to what trolls will do to your software.
[0] = https://github.com/shutterstock/List-of-Dirty-Naughty-Obscen...
However the legal department of every company on the planet makes a risk:benefit analysis, especially in fuzzy areas like copyright law (which we've seen with the Java case....an API isn't copyrightable, then it is, then it isn't, then it is). The assumption that if Microsoft did it therefore it must be without risk is folly.
Ozweiller is quite right. Big companies copy other people's stuff, breach trademarks (Metro?) and generally mess up all the time.
I doubt the ABI emulation is actually a problem, but calling it "Windows Subsystem for Linux" might well be a trademark violation as it doesn't involve Linux itself. Imaging if Wine called itself "Linux Subsystem for Windows". I think Microsoft would be deploying their legal team right quick.
Microsoft's lawyers likely decided that the move is "worth the risk". But they wouldn't be able to be 100% sure that it's either legal or illegal anyway. You can only be 100% sure after someone challenges you in Court, and then judges decide a certain way.
but legally speaking, they seem to have adopted that culture.
/s
Not sure your understanding is correct, but in any case is that not precisely what Wine does on Linux when running Windows apps? Are you worried about Windows copyright violations with Wine? From Wine webpage, "Wine translates Windows API calls into POSIX calls on-the-fly. . ." [1]
Linux, on the other hand, provides exactly that, and this wrapper makes it so that you can actually run "movl $1, %eax; movl $0, %ebx; int $0x80" and it will actually call the equivalent of exit(0).
Would be very interesting to see a Wine based on this concept instead...
* you're linking to a URL with leetspeak in it, and not MSDN.
* the codes change so frequently.
* some of them disappear or are renumbered, even in service packs.
If we wanted to do this for Wine, then it would also require emulation or something like OS X's Hypervisor.framework to catch system calls, which seems heavyhanded when we have working code already.
It could also be done as a kernel level loadable module in the sort of style this Linux subsystem is being done, which is more what I was thinking. Changing a few numbers for every Windows service pack (really, not even necessary if you only support certain versions of ntdll for example) might not be so bad compare to re-implementing bug level compatibility with every Windows API.
Calling Wine "working" in its current state is a bit of an overstatement.
What's interesting to me right now is whether or not Microsoft is saying it's OK in one context (linux interfaces on windows), and not the other (java interfaces on android), and why are they different?
The option to run unmodified executables is nice if you have closed-source linux binaries, but they are rare, and this is directed towards developers and not deployment anyway (where this might be a useful feature).
When I heard "Linux subsystem", I was hoping for a fuller integration. Mapping Linux users to Windows users, Linux processes to Windows processes etc.. I want to do "top" in a cmd.exe window and see windows and linux processes. Or for a more useful example, I want to use bash scripts to automate windows tools, e.g. hairy VC++ builds. And I thought it would be possible to throw a dlopen in a Linux program and load Windows DLLs. Since I don't need to run unmodified Linux binaries, I don't see what this brings to me over cygwin.
I am hoping though that this might be a bit more stable (due to ubuntu packages) and faster than Cygwin, and that it might push improvements of the native Windows "console" window.
Mapping the users is possible and "SFU" did this, with a couple of caveats (Windows requires group and user names to be different, while UNIX systems often have groups with the same name as users).
I don't think this is a Linux or GNOME killer, but it might put a dent in Cygwin and git-bash.
I think Microsoft can do something similar.
Performs the default action as if it were a Linux process. Mostly terminate or ignore.
Most Linux programmers I know aren't Windows devs as much as the MS shill team would like everyone on social media to believe.
You don't have to be part of the FOSS crowd to support FOSS. I'd wager the majority of the programmers you know would be ecstatic for Windows or OS X to go open source, and if they use OS X/iOS they probably do care about their privacy.
I don't know a single developer that uses a windows phone or a Windows workstation purely out of choice, most devs I know that are ingrained in Windows are using it because they have to.
Stack overflow statistics show that programmers disproportionately choose OS X and Linux over Windows when compared to typical desktop usage (Linux use skyrockets among programmers compared to desktop).
These "Linux programmers who want Windows" only exist on the internet as far as I can tell. No one actually wants to use Windows.
The few coders that I know that are part of the FOSS crowd, have their ThinkPads or Dell XPS Developer Editions with Gentoo,Ubuntu or Arch. This isn't for them, its for the ones already on Windows or OSX.
OS X and Linux with X11 or even Wayland are easily 20 years behind windows in terms of UI responsiveness and snappiness. The constant input lag of unix desktops always drives me back to windows for my workstations, although I am a fullheart windows server hater and despite everything that comes with it. It's stable, extremely fast and when edited/hacked right also privacy aware.
I can't really describe it, but it's bothering me and I would put my hand in a fire betting that it's somehow measurable. It feels like the input lag of a cheap IPS-Monitor. Every klick, every slide, every window resize has this minimum lag of maybe 10 to 50 ms, worse on linux. That's hardware independent, because that was already bothering me with a MacBook Pro and my old iMac. I haven't booted OSX in years to work production because of that tbh (Every piece of apple hardware I own is booted 99% of the time with Arch or W10E) but did it just now and compared it side to side. It's still there. It's driving me crazy. I know that I am hyper sensitive for lags and stuttering because of my former quake carrier.
On my beast Win10 machine, everything is also instant, it's just randomly throughout the day, it will lock up while tabbing to an app or something for 10 seconds.....which is just so weird and annoying. CPU shows it is pegging a thread for the opening app, doing who knows what.
My mac is a 2013 MBP with a intel 5200hd.
What about more basic things, like moving files around, etc.?
I'd be happy if I never had to write a (Windows) batch script again...
* https://news.ycombinator.com/item?id=11416392
... would you, too, agree with a call for its resurrection?
No. Execution mode incompatible - see e.g. https://github.com/wishstudio/flinux/wiki/Difference-between... for details.
What would really interest me: how was fork() implemented by MS here? The same method as http://stackoverflow.com/questions/985281/what-is-the-closes... or have different interfaces been created?
can you check what happens after you wake from sleep/hibernation? are those apps still fully functioning?
glxinfo reports
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits)
OpenGL version string: 2.1 Mesa 10.1.3
OpenGL shading language version string: 1.30
glxgears works for about a second, then crashes: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server "localhost:0.0"
after 732 requests (732 known processed) with 0 events remaining.
When i run it from strace, it keeps running.What's illustrative for the dominance of *NIXes in development are the number of projects on Github that contain only +NIX installation instructions and no Windows instructions (again, anecdata).
So if Windows wants to remain competitive, they need to retain developers. And as the +nix way of developing seems to be dominant now in quite a number of fields, Microsoft needs to adapt.
Why, you're asking, do I think that the +NIX way of development is dominant today? In a nutshell, Web -> Unix Servers -> POSIX shells -> Languages that work best with POSIX -> OSs that are POSIX-compliant.
Edit: Asterisks don't work as expected here. At least not in a Markdown-compatible way.
All hail Winux though. (That's the name for this mix I came up with.)
Before you downvote this without thinking ... consider, for example, KDE is severely understaffed and this will deplete them further. Who will bother with X.org bugs and drivers now? What's the point? Who is your target audience? You need to drink a real big dose of Stallman kool-aid to continue with Linux if this thing on Windows works as promised.
I have been using Linux solely on my laptop since 2004. I am sick of the constant driver problems. Yes, yes, you can connect to your home router or the router in the cafe. Now go and try and connect to an enterprise network. Perhaps with VPN.
But it has been improving all the time with every single release. The problem is that you (and millions of people who were looking for Linux desktop to "win") are just not excited anymore since new form factors (phones, tablets) arrived.
But I actually think Linux desktop is a winner. There are several high quality desktop enviroments suitable for all kinds of use cases.
Yeah we are not dominating the world. That was a short naive dream in the early 2000. But we have awesome desktops and thats what matters.
Disclaimer: minor KDE contributor but these were my thoughts not KDE's.
Btw, give KDE a try its so good these days :)
It becomes even more approachable by "Winux". Let people learn the basic of the CLI and get comfy with more open source tools -- then reinstall your computer to a Linux distro (and put your Win-only apps in a VM or on Wine) is a small move.
Same for some IT professionals that use Windows (either since their job demands it, or out of preference). They might install Winux at some point to get some aspect of their work done faster. Again a lower barrier to get your CLI skills up and get comfy with common open source tools.
I believe there is a lot of value in "CLI skills and common open source tools" that Windows users are currently missing out on.
I've deemed it "Frankenstein OS" because they've sewn a whole bunch of parts together to make an unwieldy monster that doesn't quite work as good as the individual pieces did on their own.
That being said, I'm typing this comment my workstation running Linux and I for one am getting very tired of this year of the Linux desktop joke.
What OS you run is an individual choice, stop trying to declare a single winner.
You != masses.
There might not be a clear single winner, but there is a clear single loser. Statistically speaking.
Myself and a lot of other people are using GNU/Linux and other libre operating systems with great pleasure and, finally, growing hardware support. I could not care less if 90% of desktops are Windows systems or if an additional 9% are OS X machines or whatever.
tl;dr: Just use what works for you. If it supports your ethical values, itäs even better!
Realistically linux did hit it big, but on a phone OS. It's now one of the most installed kernels in the world, but its brand is hidden. Linux is also incredibly important in the server space, and everyone knows this.
Linux will never have its year on the desktop in my opinion, but it will still be all over the place in the server/phone space. It just won out in other areas than the desktop.
They were not actually, this is a myth. A few tech "journalists" wrote such articles which people started making fun of. But no, regular Linux users never claimed that, or at least not in any significant number that I know of.
They lost me with all the rewriteritis and monodaemonisation that followed. I switched to MacOS (hackintosh) and was very happy for a while, since it could run all the Unix stuff, most of the productivity stuff (MS Office), and many games. It was for a long time the most plain, conservative OS (while Windows was going crazy with 8).
But recently, I've found Windows to be the OS that "just works" and gets out of my way - which was pretty surprising to me.
If anybody killed alternative desktops, it is not MS, but the desktops themselves.
I've had the opposite experience. Windows does not "just work" and it certainly does not "stay out of the way".
I have USB headphones I can't use in Windows because they connect but Windows doesn't let me switch to them. When I plug in an external monitor my OS comes to a crawl and it doesn't speed back up until I restart the whole thing. When I unplug a monitor it loses my windows.
And did you hear the story about the guy who lost his job because Windows decided to update the .NET framework right before he was scheduled to do a presentation at a business meeting? Doesn't sound like Windows stays out of the way to me.
I wish Windows "just worked" but it doesn't. It breaks all the time unless you're a power user. Giving my parents Linux was the best thing I ever did for them because it turned their laptops from a source of constant frustration to an always-on communication machine. We went from hundreds of ads and dozens of toolbars on windows to a Linux machine that just works.
Now I'm just trying to get my dad to switch to Linux for work so he doesn't have to install his printer drivers again every time he wants to print something. All he uses for work is Chrome any way.
For most people, this would be a problem with the USB headphones, not with Windows. On the other hand, if the USB headphones work well in Windows but not in Ubuntu, then it's a problem with Ubuntu, not the USB headphones.
This is why it's impossible to have a rational debate about the state of the "Linux desktop".
Don't get me wrong, I've been fine using a "remote" VM machine locally for linux, and a lot of my work the past few years has been that way (CIFS in the VM, to run a gui editor on the desktop), but to be able to run closer to native is a good thing imho... hopefully it stays well supported.
The main advantage over a VM is no resource partitioning: on a 4GB RAM tablet with 64GB eMMC, you can't allocate more than 2GB RAM to a VM without trouble, and putting 20GB of disk aside for it is also a pain., and much improved power efficiency (even an idle VM drastically reduces battery life, while Ubuntu for Windows doesn't).
Compared to Cygwin: a lot more packages are available, a lot more just works out of the box, and you can painlessly use online tutorials for Linux, which often assume Ubuntu and don't consider Cygwin a target platform.
I haven't tried zsh, but I'm pretty sure you can install it. I installed a bunch of applications, including using third party repos and ppa's. I don't see why zsh would not work.
Perhaps zsh uses some unsupported escape sequences (for instance, screen doesn't seem to work), but you can readily work around that by using another terminal in windows (mintty) or launching a VNC server from Linux and a VNC client to your localhost I assume.
* https://news.ycombinator.com/item?id=11417227
It's readily apparent from the error messages earlier in this sub-thread that the zsh problem isn't to do with escape sequences. And of course the screen problem (at least the one known so far) is not escape sequences, either.
root@localhost:~# zsh compaudit:105: wait failed: invalid argument compdef:95: wait failed: invalid argument localhost# exit zsh: you have running jobs. localhost#
Will have to try again after the next build.
The native Windows versions of git and CMake can be awfully slow [1].
[1]: https://gist.github.com/jibsen/7ebeddde3bc2bfd421b96ae53a824...
For this use case, "Ubuntu on Windows" seems to be a nice improvement.
It's a very convenient arrangement for developing web apps/servers. I have the servers running on FBSD which can be accessed from a browser on the Windows host. This perfectly replicates connecting to a remote server, so when the app is working properly and committed to the repo on the remote host, it's almost guaranteed to work as intended!
When I acquired the SP2 I originally thought I'd dual boot. Turns out that's difficult to accomplish, but in a way using Hyper-V is better because I have Windows and FBSD running at the same time. Of course the VM imposes limits so not optimum for every purpose but good enough for my uses.
I should mention that Cygwin is installed as well. Runs Bash nicely in a terminal, and a good way to ssh to remote servers as well as FBSD in Hyper-V.
I sound like a Vagrant fanboy or shareholder but I'm just a very happy dev since I started using this setup.
msysGit is also handy when using a Windows host.
Rsync is straightforward and has fewer permissions issues to work out when sharing with Windows, but is uni-directional. NFS is a true share rather than a sync, but restricts what you can do to the directories on the guest in terms of permissions. There are other options too, like bindfs and unison, but I haven't personally explored those in depth.
I got tired of running Linux directly on my desktop. Compiz crashes (worked in 14.04, not working in 14.10, started working again in 15.04, not working in 15.10...), can't keep my select sound output, terrible font rendering, awful HiDPI support, graphics drivers are a mess, and on and on...
Since I basically just need the non-graphical parts of Linux (Bash + Tmux + Vim) I'm very happy with this setup.
PS: Forgot to say that I have a very beefy machine (Skylake Core i7 4Ghz, 32GB DDR4, fastest consumer NVMe SSD from Samsung) but I've found that this setup works well on basically any machine.
edit: Specifically, I want to understand to what extent - if any - will it allow some of the horror problems you have working with certain Python libraries (compiling Numpy on Windows is like pulling teeth) to be a thing of the past. I'd be more than happy to work in WinBash for Python if it means having the easy Linux install processes available for some of the more scientific packages.
Python on Windows is painful mostly because of the amount of binary packages that have to be compiled since distributing binary packages hasn't been in vogue until only recently with Python. You can save a ton of trouble using something like Anaconda, or honestly just run a Linux VM. If you're compiling numpy you're doing something wrong IMHO--use a prebuilt version that's optimized for your processor (ideally using Intel's commercial compiler with full SSE, etc. optimizations).
You can't just use /home/chx/todo.txt as a path from any Windows application, but you can find that file through some other path.
The opposite is also true: the linux subsystem files are mounted under a regular directory in windows, so you can see all the files but from the normal windows subsystem you can't execute the linux binaries.
It means there is a big wall between the two systems, and you can't really automate windows things with bash instead of PS if you wanted. At this point though I find that to be a benefit - It would be fantastically confusing if you typed "find" or "python" and had to wonder whether a linux program or a windows program would actually execute.
Moreover, getting stuff like OpenCV to work is a pain, and I find that the deep learning packages (e.g.: theano) get even worse.
> No new system calls are added for cgroups - all support for querying and modifying cgroups is via this cgroup file system.
Per https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.t...
Windows: a better linux than linux.
Unix was built around the human readable output of one binary being the input of another.
dbus, the carrier for much of the traffic between systemd parts, is far from human readable.
Also, one reason they give for developing everything in a single blob of code is that they can then change the protocol as they see fit.
This in turn makes it hard for third parties to replace a component, as they will constantly play catch up with the systemd developers.
Take logind for example. It depends on systemd-init being there and handling cgroups. Consolekit, what logind replaced, could be used on top of any init.
Gentoo forked udev into eudev after the former was merged with systemd, because it became a right pain to extract udev from the larger systemd code, even though at the time of merging it was promised that udev would still be usable separately. This because at every systemd release, the extraction process changed in some way or other.
With the traditional unix tools i can probably pipe some output from a GNU binary into busybox into a BSD binary and get the expected result. And if i don't i can break down the chain into parts, look at what they produce, and make adaptions right there in the terminal.
Anything similar for systemd will require a compiler and specialized tools for debugging dbus and whatsnot.
Maybe all this is fine in a devops environment where everything is in containers or virtual machines. But Linux got where it is because it was not just flexible, but also field repairable thanks to its unix heritage.
You might need http://www.straightrunning.com/XmingNotes/ for GUI.
function directory-summary($dir=".") {
get-childitem $dir |
% { $f = $_ ;
get-childitem -r $_.FullName |
measure-object -property length -sum |
select @{Name="Name";Expression={$f}},Sum}
}
I could get a shorter non exact version if I was on windows.New-Alias -Name "du" -Value "Directory-Summary"
> Get-ChildItem C:\windows | Measure-Object -property length -sum
Count : 28
Average :
Sum : 6407920
Maximum :
Minimum :
Property : length
For 'df': > get-WmiObject win32_logicaldisk
DeviceID : C:
DriveType : 3
ProviderName :
FreeSpace : 21796540416
Size : 31685865472
VolumeName :
DeviceID : D:
DriveType : 5
ProviderName :
FreeSpace :
Size :
VolumeName :
DeviceID : Z:
DriveType : 4
ProviderName : \\veertu\share
FreeSpace : 44674220032
Size : 399999991808
VolumeName : VeertuFSFor du:
ls C:\Windows\ | measure length -sum
For df: gwmi win32_logicaldiskThey have neglected the CLI for years and powershell while I guess it has its uses for scripting is light years behind *nix stuff as an interactive shell.
You can -accepteula from the command line and the "installation" is downloading and extracting a zip file. If there's an internet connection, you could even run it straight off of Micrsoft's servers via SMB.
[1] https://en.wikipedia.org/wiki/Architecture_of_Windows_NT
It's heavily marketed as "bash on Windows", and that "bash" is a GNU Bourne Again Shell, a part of GNU Operating System, developed under GNU Project.
Please invest some time to understand what it's about technically.
However, please notice that it's also marketed as - quoting the article - "the ability to run native Bash and GNU/Linux command-line tools [on Windows]" and currently implemented as GNU-based OS (Ubuntu) running on Windows. So - in practice - essentially, it's MS-supported (although hosted by Canonical) GNU on Windows.
I don't care how it's marketed.
Let me remind you that there have been numerous ports of GNU tools for the Windows operating system in the past. This does not allow you to run any more GNU tools on Windows than you previously had.
Therefore, essentially, this is not about "GNU on Windows". This is about running "Ubuntu Linux software on Windows" including, of course, and in addition to numerous other tools, the GNU tools.
Also, the original statement was: "That is just GNU running on the Windows kernel." This is obviously not just that.
If you like Ubuntu/Linux more, then just install Ubuntu/Linux on the computer without Windows. Why go through the additional layer of Windows?
Perhaps the use case is limited to people who need to run Windows/Mac-only software like AutoCAD or some Adobe software.
This is exactly the type of thing that many people want.
I used KDE 3 and Gnome 2 for many years (Windows also). and switched to LXDE/OpenBox after KDE 4 and Gnome 3 turned out to be unusable.
Although my current desktop is very simple it has become one of my best desktops ever because it can be configured to the extreme. It is very suitable for developers who want a clean workspace which doesn't get in their way like all the other modern desktops (Win 8+ also) which focus more on eye candy than usability.
Or many, many games.
No, it's an incredible pain in the ass to get this working properly, when I could spend 20 seconds rebooting
It's might be hard to setup few years ago, but now it's super easy. With AMD hardware everything just work out-of-box.
Having people in the company run different OSes cost a lot of money because of the duplicate tools that has to be adapted or created for different OSes.
For this project, I could choose the programming environment. Well, my tool of choice, for the past 10 years, has been Rails. I prototyped the application on my MBP within 10 hours, but needed to be able to work on the site with my corporate laptop, so I setup a Linux VM, and setup 2 networks (one host-only to share files, and one NAT'd to get through the corporate firewall), configured the folder shares, and got everything going the "VirtualBox" way. It's a pain.
Like a lot of Fortune 500's, the IT resources are locked down to the point of being combative. There's no way I can take my MBP to the office and work on the company LAN. (You can get an exception, but you have to ask for special permission every single day.) This project SUPPOSES to allow me to open a shell, install RVM, install Ruby and git, download my sources, bundle install, and do `rails -s` to do development. (The application is just using sqlite for the database, so I don't even need to mess with MySQL for now.) If everything works like it should, I can just use Sublime Text 3 as my editor to work on the files, and host on the Linux subsystem. When it's time, I can `git push` my sources to the TFS server, and deploy them on the Linux VM running in Azure.
So that was kind of long, but this is how I see it working and fitting into my world. Against my better judgement, I'm letting my gaming rig (re)upgrade to 10 to try this out. I don't know when my company's IT department will standardize on Windows 10; we just got 8 last year. I just want to see if this can really fill the niche it supposes.
If yes then...well...same can happen to any kind of software / project
Everyone migrates, draining valuable developer resources from projects like cygwin, mingw and colinux and others. When Microsoft kills it, they will have killed off not only their project, but also the community projects that could replace it.
Meanwhile, because the NT kernel has vastly different performance characteristics (e.g., bad forking performance), we're going to see an increase of "Linux/NT" optimized software that will perform poorly on native Linux kernels, pressuring more developers (and ops) to buy into Microsoft's effectively proprietary solution, completing a vendor lock-in that will continue to bleed the industry long after it stopped being beneficial (see also, every other instance of vendor lock-in ever).
I'm not worried though. This is a neat hack, and may be useful for some people who for whatever personal reason won't switch to Linux proper, but it will not gain anything like the dominance required to push through incompatibilities. Unix applications already deal with a heterogenous environment, to say the least, and Winux will just be one more participant; not a particularly important one at that.
* https://community.lsst.org/t/lsst-stack-on-ubuntu-linux-on-w...
Be aware that the Java8 installer/uninstaller has other potential symbolic link problems (not "invalid argument", though) that exist on actual Ubuntu Linux.
A commenter here mentioned having difficulties installing java, however:
> if you go the apt-get route you get a sha256sum mismatch on both java7 & java8. If you try to be clever and manually download it and throw it in the cache, same story. If you try to be really really clever and manually download it and try to manually extract the tar it throws a bunch of cannot create symlink: invalid argument errors. I spent a good 2+ hours trying to force it to install in various ways. For now at least it seems java is not meant to be on Windows Bash.
I guess this bash on ubuntu on windows won't be available for Windows 7?
Use preview builds at your own risk, though.
Has anyone come up with a solution for that yet? I wonder if you can install something like xterm, and get that running outside of Command Prompt...
Currently updates postpone temporary license expiration, but I can't find an answer how licensing work actually. I only run Windows in VM and I don't want to mess my 8.1 system with genuine license.
It works if I try as a local user on the same machine. Also Windows Store otherwise works fine for that domain user.
- Find with exec , xargs is supported?
1125899906857921 -rwxrwxrwx 1 root root 21 Apr 7 07:56 test2.txt
562949953436608 -rwxrwxrwx 1 root root 13 Apr 7 07:56 test.txt
Two files created seconds apart. Some sort of internal NTFS construct, maybe?(1) https://developer.microsoft.com/en-us/microsoft-edge/tools/v...
https://msdn.microsoft.com/en-us/virtualization/windowsconta...
Too bad, that would really be a game changer for me. Running bash itself though... yeah, ok, whatever. But maybe I'm not the target audience.
Why is that? Because the containers are running in Hyper-V? From a user standpoint I doubt you'd notice any difference, especially once Hyper-V is supported in Windows 10:
https://blogs.technet.microsoft.com/windowsserver/2016/04/04...
https://caleblloyd.com/hardware/docker-performance-bare-meta...
Does it have all the same issues as gitbash/cygwin/mingw/winpty (garbling, bad resizing, etc) or is there finally a decent local terminal on Windows?
The ability to do 'curl some-site.com | bash' or ssh <hostname> 'curl some-site.com | bash' without having to worry about platform compatibility would be amazing.
There's little practical distinction between piping a shell script from a random site or downloading a binary from it.
Installing a package manually vetted by distribution maintainers, signed and verified with GPG, is the same as blindly running a random script off the internet?
I don't think you appreciate how much effort Linux distributions invested into creating safe ways of distributing software.
`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/in...
`\curl -sSL https://get.rvm.io | bash`
https://www.npmjs.com/package/nodejs-oneline/tutorial
`curl -sL https://deb.nodesource.com/setup | sudo -E bash -z`
It is a trend. I can find more examples, the above is just places I remember seeing this behaviour.
Microsoft went to great lengths to disallow these kind of one-liners in PowerShell (you need to explicitly add -executionpolicy bypass to even run a script), so apparently they are concerned about users executing random scripts off the net.
OTOH, yes, being able to assume bash on a user's installation would be amazing of course...
Yes and I fucking hate it, way to cut of useful functionality at the knees.
powershell.exe -ExecutionPolicy RemoteSigned -File whatever.ps1Not worth it if you're just wanting to try it out, but if you want to test it and feed back, then knock yourself out!
Will surely be installed automatically like the November Update.
I think you will still then have to enable dev mode and install it as a feature as per the OP link.
I have Win 7, so I was thinking of running a VM with Win 10 to try it out (once it is officially released).
It sounds like it runs X/Windows which is fantastic!
The initial "bash" command freezes and doesn't download anything.
From: Alien
To: SomeWindowsBashUser
Attachment: naked.jpg
naked.jpg
------------------------
#!/bin/bash
rm -rf /
------------------------
-MSFT
I'd rather hold out for the next iteration.
I'm aware not all reviews is equal, so pointing out errors or adding better resources would be appreciated.
[0]: http://www.techradar.com/reviews/pc-mac/laptops-portable-pcs...
[1]: http://www.trustedreviews.com/12-inch-macbook-2015-review-ba...
[2]: http://www.notebookcheck.net/Apple-MacBook-Air-13-2015-Noteb...
The chromebook pixel has been my only laptop for three years, and it's been rock solid. I never spend time troubleshooting. Setup upon upgrading from the 2013 to the 2015 pixel took about two minutes.
At this point, I'd prefer to use a chromebook rather than loading ubuntu on a laptop, because the stability of the pixel has saved me so much time.