r/programming • • Mar 30 '16

Microsoft is bringing the Bash shell to Windows 10

http://techcrunch.com/2016/03/30/be-very-afraid-hell-has-frozen-over-bash-is-coming-to-windows-10/
5.5k Upvotes

1.2k comments sorted by

765

u/andlrc Mar 30 '16 edited Mar 30 '16

This is a real native Bash Linux binary running on Windows itself. It's fast and lightweight and it's the real binaries. This is an genuine Ubuntu image on top of Windows with all the Linux tools I use like awk, sed, grep, vi, etc. It's fast and it's lightweight. The binaries are downloaded by you - using apt-get - just as on Linux, because it is Linux. You can apt-get and download other tools like Ruby, Redis, emacs, and on and on. This is brilliant for developers that use a diverse set of tools like me.

Scott Hanselman

479

u/[deleted] Mar 30 '16

Wait.

So it's not just coreutils for Windows running in Bash for Windows? You can run native x86 Linux apps straight from apt-get!? Or is apt hooked up to a Windows repo with only certain applications in it?

490

u/andlrc Mar 30 '16

Yes, that means apt, ssh, rsync, find, grep, awk, sed, sort, xargs, md5sum, gpg, curl, wget, apache, mysql, python, perl, ruby, php, gcc, tar, vim, emacs, diff, patch...
And most of the tens of thousands binary packages available in the Ubuntu archives!

http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html?m=1

881

u/[deleted] Mar 30 '16

I think I need to get some air...

→ More replies (131)

15

u/DJ_Beardsquirt Mar 30 '16

Could Windows specific packages eventually appear? Sudo apt-get install directx?

→ More replies (7)

36

u/[deleted] Mar 30 '16

This is so awesome, being able to run tensorflow and countless other linux based software applications is going to be amazing. It's been rough as a windows user trying to follow some really cool open source projects.

→ More replies (25)
→ More replies (5)

3

u/shanselman Mar 31 '16

It's real Ubuntu. Their apt-get. I also have done this with success, for example, to get redis.

# /etc/apt/sources.list.d/dotdeb.org.list
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
wget -q -O - http://www.dotdeb.org/dotdeb.gpg | sudo apt-key add -

Then

$ sudo apt-get update
$ sudo apt-get install redis-server
→ More replies (2)
→ More replies (2)

194

u/evmax318 Mar 30 '16

This is the year of the Linux desktop!

325

u/whichton Mar 30 '16

Actually, its GNU/Windows desktop :) Its basically GNU userland running on NT kernel instead of Linux.

192

u/The_yulaow Mar 30 '16

So Stallman has won or lost? WON OR LOST?!?

71

u/Workaphobia Mar 30 '16

After the FBI vs Apple case, I'll be surprised if Stallman is still living in this hemisphere.

→ More replies (2)
→ More replies (30)

61

u/shevegen Mar 30 '16

I think Stallman would like to interject here and point out that Windows is not free.

→ More replies (4)

142

u/[deleted] Mar 30 '16

Actually, it’s GNU/NT.

Currently, you can use GNU and NT in these combinations with other systems:

  • GNU/Linux (commonly known as linux)

  • GNU/NT (this)

  • Windows/NT (commonly known as Windows)

  • Windows/Linux (commonly known as "who the fuck runs a desktop under WINE?")

→ More replies (10)

346

u/[deleted] Mar 30 '16

I'd just like to interject for moment. What you're refering to as Windows, is in fact, GNU/Windows, or as I've recently taken to calling it, GNU plus Windows. Windows is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Windows, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Windows, and these people are using it, but it is just a part of the system they use. Windows is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Windows is normally used in combination with the GNU operating system: the whole system is basically GNU with Windows added, or GNU/Windows. All the so-called Windows distributions are really distributions of GNU/Windows!

→ More replies (18)

17

u/[deleted] Mar 30 '16

Now I want to see Windows running on Linux kernel.

→ More replies (15)
→ More replies (1)
→ More replies (2)

27

u/DonKanish Mar 30 '16

I'm having a hard time coping how great this feels. As a frustrated .net dev that likes to play games. All I want is that prompt. Any way of knowing when this becomes reality? I'll be glued to that link

3

u/[deleted] Mar 31 '16 edited Mar 31 '16

I think it comes out in the summer for the anniversary update orrrr you could become a Windows Insider and I think you can get the image.

Source

→ More replies (1)

11

u/Randommook Mar 31 '16

Wait, does this mean I no longer will have to bullshit around with MinGW or Cygwin to use the make command?

→ More replies (1)
→ More replies (17)

272

u/chadmill3r Mar 31 '16

This title sounds like "Microsoft compile bash for Windows". It's really much more.

You get all of Ubuntu's userspace. Not bash. All of Ubuntu userspace. Your windows disks are mounted in /mnt at the drive letter. /mnt/c (You don't have a video card available to run X on, of course.)

This is not emulated or a virtual machine, though. There is no Linux kernel. For every system call that the Linux kernel would have handled, MSFT maps it to some system call in the Windows kernel and have it do the same thing. This is madness. And cool. But still mad. But oh so cool. I just can't decide.

41

u/mrbungie Mar 31 '16

You don't have a video card available to run X on, of course.

AFAIK you don't need a dedicated set of I/O devices (i.e display, keyboard, mouse, etc) for running X based applications.

Source: I used to run X apps remotely via a ssh tunnel using Xming as an X server.

14

u/[deleted] Mar 31 '16

This is correct. An X server can even be a simple framebuffer in memory.

→ More replies (3)

3

u/AltoidNerd Mar 31 '16

Yeah, saying its just bash is not a big deal. It's easy to install bash on Windows and use it from cmd.exe or powershell. This is way more.

→ More replies (1)

2

u/[deleted] Mar 31 '16

Absolute craziness.

→ More replies (9)

575

u/Giggaflop Mar 30 '16

But it's not April 1st yet..

149

u/vinng86 Mar 30 '16

I had to double/triple check the date today

12

u/madmarcel Mar 30 '16

You too. Man, I'm still trying to get my head around this.

The timing of this is just super awkward.

9

u/hero_of_ages Mar 30 '16

not really. /build is going on right now.

→ More replies (2)

36

u/Lucarai Mar 30 '16

skipping the days between, like Windows 9

6

u/poodl3IsMe Mar 31 '16

If this turns out to be an april fools joke I'm gonna cry.

9

u/VanFailin Mar 30 '16

It's the Build conference, they announce their biggest technical stuff around this time every year.

3

u/skylarmt Mar 31 '16

Ohh, so if a project they announced is dropped they can always just say "LOL, April Fools guys, gotcha!"

→ More replies (4)

110

u/gash4cash Mar 30 '16

Alright guys, I think Hell just froze over.

2

u/coladict Mar 31 '16

It did that a few months ago for a different reason.

→ More replies (3)

128

u/rybl Mar 30 '16

Welcome to the GNU Microsoft.

64

u/HoldMyWater Mar 31 '16

Please pronounce it GNU "slash" Windows or GNU "plus" Windows.

60

u/ampersamp Mar 31 '16

But forwardslash or backslash? FORWARD SLASH OR BACKSLASH?

→ More replies (7)
→ More replies (1)
→ More replies (5)

224

u/serve11 Mar 30 '16

FINALLY. Cygwin is a solid effort, but its still missing too many features. It's about damn time Windows had a supported bash shell.

89

u/IDUnavailable Mar 30 '16 edited Mar 30 '16

So maybe I'm retarded, but... Will I be able to write POSIX compliant C/C++ code that can compile and run on Windows as well as Linux? Is that what's being implied? Because that sounds fantastic (without messing with cygwin).

122

u/3rg0s4m Mar 30 '16

Rumor has it that its a full linux subsystem ... so yes

39

u/the_gnarts Mar 30 '16

Rumor has it that its a full linux subsystem ... so yes

“Full Linux subsystem”—as in “has netlink”, “has netfilter”‽ Or is it another thin POSIX layer?

→ More replies (16)
→ More replies (4)

13

u/wildcarde815 Mar 30 '16

Technically you've been able to do that with the POSIX compatibility layer up to this point. Sounds like they took that, built all the framing you'd need for Ubuntu 14 on top of it and went from there.

→ More replies (13)

2

u/svick Mar 31 '16

No more setup.exe? No more setup.exe!

→ More replies (81)

40

u/[deleted] Mar 30 '16

Could wine run on this?

35

u/Flyingcodfish218 Mar 30 '16

It seems like it, funnily enough.

44

u/[deleted] Mar 31 '16

Finally, an easy way to run 16-bit apps on modern Windows.

(hopefully, i haven't been able to test this yet)

8

u/DeltaSixBravo Mar 31 '16

Not on 64-bit Windows. The 16-bit NTVDM subsystem in Wine, like its Windows counterpart, uses the VM86 mode of x86 CPUs. VM86 isn't accessible after entering 64-bit mode. Even if the new subsystem works on 32-bit Windows, I doubt Microsoft bothered to implement the required vm86 and modify_ldt Linux system calls, because Wine is pretty much the only application that uses them.

→ More replies (3)

4

u/AnSq Mar 31 '16

Could this run on wine?

→ More replies (2)

176

u/manuscelerdei Mar 30 '16

Finally Windows users can experience the joy of a syntax error when you used [] where you should have used [[]].

132

u/MisterNetHead Mar 30 '16

You need a space between the brackets. Or do you??

No one knows!

71

u/secondchimp Mar 31 '16

The reason for the spaces is because the brackets are actually commands, with the stuff between arguments. Arguments are delimited with spaces.

Check this out:

$ which [
/bin/[
→ More replies (1)

37

u/gradient_x Mar 30 '16

I'll take that over PowerShell any day ...

6

u/jeffsterlive Mar 31 '16

You mean you don't like cmdlets like Get-Content instead of using pipes and < >? :P The Powershell ISE does make working with Powershell much better to me at least.

17

u/sleeplessone Mar 31 '16

I'll take objects over trying to parse out specific piece of text from a command result any day.

→ More replies (2)
→ More replies (4)
→ More replies (2)

252

u/[deleted] Mar 30 '16

Brilliant. A common shell across all major operating systems will make cross platform desktop development much easier.

Any chance of getting ZSH, or am I pushing my luck? ;)

32

u/[deleted] Mar 30 '16

Should be able to just apt-get install zsh

6

u/SnapAttack Mar 30 '16

They did mention that there's "many more to come" in the overview at the end of the developers section, so maybe...

→ More replies (9)

86

u/tigerleapgorge Mar 30 '16

Forward slashes on dir path. No more escaping one types of slash with another and vice versa.

68

u/MEaster Mar 30 '16

This isn't well known, but you can use *nix-style paths on Windows. An example on Windows 7.

In this case though, an initial forward slash refers to the root of the drive. Of course, if you're using the NTFS file system, there's nothing stopping you from mounting other drives all in C.

17

u/trbox Mar 30 '16

Didn't know that. It still auto-completes to C:\Games\Doom though, so it's not very useful.

23

u/Scaliwag Mar 30 '16 edited Mar 30 '16

That's just the way that shells displays it, internally Windows manages the file system using a hierarchy of namespaces which normally people don't get to see, even as a developer you are fine most of the time without knowing that (unless you want to deal with the limitations of the old DOS-like way of doing things).

→ More replies (3)
→ More replies (1)
→ More replies (2)

21

u/wimcolgate2 Mar 30 '16

Please, oh please GET RID OF MAX_PATH.

14

u/[deleted] Mar 31 '16

What cracks me up is you can create a path longer than X chars, but can't delete it due to the limitation.

→ More replies (3)

3

u/the8thbit Mar 31 '16

Oh my lord.

The whole thread is like looking into an OS funhouse mirror. I forgot how bizarre Windows is.

→ More replies (5)
→ More replies (2)

114

u/[deleted] Mar 30 '16

Is this real life?

61

u/keylimesoda Mar 30 '16

Is this just fantasy?

88

u/pitano Mar 30 '16

cought in a command line

64

u/pitano Mar 30 '16

escape from exclusivity

→ More replies (13)
→ More replies (1)

18

u/peeterjoot Mar 31 '16

Human sacrifice, dogs and cats living together, mass hysteria!

49

u/Rockytriton Mar 31 '16

Are they trying to get me to use Windows? Because this is how you get me to use Windows

2

u/jdgordon Mar 31 '16

i just got a new laptop and haven't got around to installing linux on it, this might just be enough for me to not bother - i really only need ssh anyway

17

u/Griffith Mar 31 '16

One of Microsoft's best moves ever in my opinion. This should help bring back a lot of the developer crowd they lost over the years to Apple.

3

u/mezbomb Mar 31 '16

Fuck me, I was about to go buy a mac book, and then I read this article. I'm just getting into Unix/C/C++ in university and dual platforming between linux and windows has been a pain in the butt.

Now I don't know what to do.

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

15

u/johnlsingleton Mar 30 '16

I think my head just exploded.

165

u/[deleted] Mar 30 '16

Microsoft must have recognized that as a development platform, Windows is sorely lacking compared with OSX and Linux. I cannot say I am anything other than excited by the prospect of a powerful POSIX command line in Windows (even though I use Linux almost exclusively these days), however one would imagine it would still take some years to suitably command-line-ify all of the various Visual Studio tools (an ancillary support tools used in the open source community). Still, a step in the right direction.

24

u/borkus Mar 30 '16

This goes a long way to wooing certain developers off of Macs and back onto Windows. When I go to Java conferences, the majority of presenters are on MacBooks of some kind. Given that most Java IDEs and tools are cross platform, a big draw of the Mac is the shell.

Personally, I like the choices in Hardware that Windows offers. While I haven't made up my mind to switch, that option is looking more appealing.

→ More replies (5)

47

u/benpye Mar 30 '16

There is nothing stopping you building a Visual Studio project/solution from the command line with msbuild, additionally, you can call the various compilers from the command to use with other tools.

20

u/indigo945 Mar 30 '16

But not many useful command line tools ship with Windows (or even Visual Studio), hand editing of msbuild projects is masochistic, the shell is atrocious (or, in the case of powershell, far out there and incompatible with anything not .NET), there is no job control, Powershell is dog slow, you cannot even elevate privileges while on a shell. No tmux, no screen. Sure, it works for a quick invocation of some tool that's only available on the command line, but nobody would want to use it for serious day-to-day work (at least I've never met anybody who did that).

→ More replies (15)

9

u/systembreaker Mar 30 '16

Yeah, but...right now that's with cmd scripting which is such a pain in the ass for anything other than a static script, e.g. complex scripting with branching etc.

25

u/tavert Mar 30 '16

Powershell is far superior for that. Or cmake so you don't need to touch msbuild yourself.

→ More replies (6)
→ More replies (2)
→ More replies (4)

3

u/[deleted] Mar 30 '16

It's not that Windows is sorely lacking, it's more that a lot of developers use Linux and are too lazy to port their stuff to Windows. It's mostly scientific stuff, that is often held together by a fragile web of bash scripts and duck-tape. I think that's what this is targeting (e.g. torch7, tensorflow).

→ More replies (2)
→ More replies (5)

43

u/txdv Mar 30 '16

The first apocalyptic horseman was sql server on linux.

Now we have bash on Windows. I don't think we will see the end of this year.

8

u/fufukittyfuk Mar 30 '16

I think this might be related to/or came from Microsoft's work on bringing Docker into Windows. Integrating native ELF support would go a long way into getting Docker to work.

2

u/casualviking Mar 31 '16

Apparently it came from their Project Astoria work to run Android apps on Windows 10 (mobile). That project was since cancelled, but they had the underpinnings of a linux kernel emulation layer.

→ More replies (1)

37

u/quatch Mar 30 '16

so this is what it takes to get windows 10 adoption?

4

u/am0x Mar 31 '16

I use 10 on my gaming PC and 7 at work. I actually haven't had any issues with 10 yet.

→ More replies (3)

18

u/[deleted] Mar 30 '16

does this mean that everything i learned for powershell is now useless?

44

u/joeyaiello Mar 31 '16

Definitely not! I'm excited about this as anyone, but Bash on Windows is really intended for developer scenarios, especially where developers who are accustomed to *nix workflows want their tools to just work on Windows.

PowerShell isn't going away any time soon. If anything, we're investing in it more than ever. PowerShell/WMF 5.0 came out with a ton of new features, it's the default manageability surface for Nano Server, our new headless server coming out with Server 2016, and we've been open-sourcing a bunch of our team's projects, tools, modules, and documentation over the last year or so. Plus, PowerShell is still the de-facto way to actually manage your machine.

I love Windows and Linux both, and this is really just about giving you more choice. I've been experimenting with vim within Bash as my editor for PowerShell scripts, and I love it. :)

(full disclosure: I work for Microsoft on the PowerShell team)

8

u/[deleted] Mar 31 '16 edited Mar 31 '16

Hey, just wanted to thank you guys on the PowerShell team for an amazing product! I have to admit that I didn't have a ton of faith in PowerShell when I first started working with it but it turned out to be one of the most powerfull tools I use (honestly? Even better than bash).

I also wanted to ask, because its not all that clear, what does this actually mean for windows? Can it just run any ELF now? Will everything I apt-get on Windows run now? Also, how is this going to handle permissions (chmod), symlinks and all of those linuxy things that don't really exist in Windows?

3

u/[deleted] Mar 31 '16

Yo! PowerShell is one of the coolest things coming out of Microsoft! Love the mixing of functional programming and the .NET object model. Just the ability to do an "XML-grep" and pipe the actual objects around.. lots of fun!

Any chance of PowerShell running on Mono in Linux? I've had a quick go.. but it seemed to rely on many unsupported system calls.

→ More replies (2)

23

u/hashhar Mar 30 '16

PowerShell scripts are miles ahead. They provide native XML, JSON support, have API for mananging the entire OS and is OOP and can have iterators, lists, structs etc.

11

u/[deleted] Mar 31 '16

For basic scripting I prefer the text only world of sh. Powershell is nice, but passing around objects makes me feel I might as well just use C#/Python/C++/etc. Though I do prefer it over cmd.

→ More replies (3)

23

u/[deleted] Mar 30 '16

You think you can do more from powershell than most of us can from bash? We have utilities for everything and a shitload (probably millions) of open source scripts that can be used from the command line to allow us to handle any sort of data in any way.

→ More replies (5)
→ More replies (12)
→ More replies (1)

18

u/planetmatt Mar 30 '16

What's the advantage of Bash over Powershell?

37

u/ep1032 Mar 30 '16 edited Mar 17 '25

.

59

u/TikiTDO Mar 30 '16

Bash vs Poweshell is not really a good comparison.

Bash is a very slim, light-weight shell and scripting environment. It spots a minimalistic procedural programming language (variables, conditionals, function) with a few useful shorthands to handle things like parameter expansion, substrings, and process execution/management. Pretty much the only thing you do in bash is call other programs, do a bit of processing on the output, and then call more programs.

Poweshell is a monolithic system that natively exposes a mass of internal windows functionality, with an ever growing set of language features; the latest version is even object oriented. The idea of Powershell is that you almost never need to leave the PS environment. In that way Powershell is actually closer to python or ruby than it is to bash.

The reason that people like bash is twofold. First, it's been around forever; the first release was in 1989. That means that there are a ton of examples, a huge number of existing scripts, and legions of people that know the environment inside out. Second, it doesn't try to do too much. Bash embraces the *nix philosophy of tying together tools that do one specific job really well. That means you're not tied down to the "accepted" way of doing things.

In a way, it's like comparing a Lego set, and a model car. The car will look way nicer, and have a lot of intricate details, but it will always be a car. With a Lego set you can build a car, a space ship, or a castle, then tear it down and start again with something new.

Of course there are those that will happily point out that you can do everything bash does in powershell. To those people I will answer that you can do it all in brainfuck too, but most sane people still prefer to use the tools best suited for the job.

8

u/codekaizen Mar 31 '16

Powershell is not that monolithic and not really that heavy. To get anything done in Bash you need utilities, and the corresponding thing in PS is modules. I hear a lot of FUD like this from people who haven't really spent time with Powershell, but rather looked at some examples geared to Windows admins and made up their minds.

→ More replies (14)
→ More replies (5)

2

u/[deleted] Mar 31 '16

dunno bout powershell but as an example I've been calling the same rsync script from bash in OS X since like 2004 and my IT guy has it running on a linux terminal in a closet somewhere.

→ More replies (9)

12

u/MrRobotIsMyTwin Mar 30 '16

Oh my god have I died and gone to heaven? I honestly think so hooooooly shit.

11

u/rjcarr Mar 30 '16

This is actually really cool. One of the reasons I would never consider using windows is because of the lack of a posix environment. Too much of my workflow revolves around this and trying to use something like cygwin just doesn't cut it (or didn't, the last time I tried).

So I'm still happy using OSX, but should the time come I need to move to something different, I would certainly give windows a consideration now.

Nice work!

→ More replies (3)

4

u/Warmal Mar 31 '16

Will fork work on windows?

2

u/schoolmonkey Mar 31 '16

According to the video, yes.

→ More replies (2)

4

u/[deleted] Mar 31 '16

Microsoft should now support alternative file systems and get rid of the MAX_PATH bug.

2

u/neko4 Mar 31 '16

NTFS can handle a long path. Though File Explore doesn't support it.

→ More replies (1)

4

u/snotfart Mar 31 '16

Yay! No more

H:\>ls
'ls' is not recognized as an internal or external command, 
operable program or batch file.
→ More replies (1)

4

u/MightyCreak Mar 31 '16

At last! I'll be able to use Wine on Windows!

6

u/casino_r0yale Mar 30 '16

They had to do something to break up the hegemony of MacBooks in development machines. This is awesome!

→ More replies (2)

58

u/[deleted] Mar 30 '16

Embrace, Extend and Extinguish

11

u/monsterjamp Mar 30 '16

I guess the next step would be the ability to install Windows programs through bash.

17

u/[deleted] Mar 30 '16

Not from MS but anyway...

https://chocolatey.org/

5

u/[deleted] Mar 31 '16

Pretty much built-in to Windows 10 as OneGet, just need to add the Chocolatey feed IIRC

→ More replies (1)
→ More replies (1)

8

u/CATSCEO2 Mar 31 '16

I have to wonder tho, how do you extinguish bash? Or GNU/Linux? You can extend them all you want, people have been doing it since SLS.

5

u/virtyx Mar 31 '16

Make Windows-only extensions?

Whatever their strategy, it'll work at least on me. I had been itching to switch to Linux but I never could because I can't play games on it, and I'm a huge gamer. So I dual boot. I program in Linux but game on Windows.

...now I won't need to...

Not to mention I never got my ASIO devices to work right in Linux.

5

u/[deleted] Mar 30 '16

.NET libs will be an interesting extension to bash if that happens.

2

u/nutrecht Mar 31 '16

Well they won't be able to extinguish anything by now but what I dislike about this bit is how Microsoft can now benefit from Linux tools but they haven't made any effort in doing the reverse: making it easier to run Windows software on Linux.

This isn't in the spirit of "open software": it's just paying a Linux company a crapton of money for access to the ecosystem without letting the reverse happen.

2

u/LOOKITSADAM Mar 31 '16

Nothing will make you happy, will it.

→ More replies (2)

3

u/oreo_fanboy Mar 30 '16

There's probably a way already, but I am most excited about merging my git shell with my cygwin terminal

3

u/graingert Mar 30 '16

The Bourne again shell shell?

3

u/deepdragon Mar 31 '16

Holy shit. I was just thinking yesterday, while installing cygwin, if Microsoft will ever release something like this, which I promptly dismissed as ludicrous. Now this happens. I'm genuinely shocked.

3

u/mujjingun Mar 31 '16

So will Windows become the #1 linux distro?

2

u/LesterKurtz Mar 31 '16

Basically GNU/Windows happened before GNU/Hurd happened.

→ More replies (1)
→ More replies (1)

3

u/xzaz Mar 31 '16

So I can Bash on Microsoft products? Cool.

4

u/dsn0wman Mar 30 '16

Now they just need to port it to Windows 2012, and have Oracle GoldenGate add support for it. Then my entire day won't be ruined every time someone wants to replicate from MSSQL to Oracle.

7

u/monsterjamp Mar 30 '16

Bash shell was the main reason I prefer to use Ubuntu over Windows for development. I no longer have a reason to keep using Ubuntu.

6

u/sactomkiii Mar 30 '16

Same here. I dual boot my laptop for the soul reason I couldn't stand developing on a Windows machine. Will be nice to not have to switch back and forth.

→ More replies (2)

5

u/emperor000 Mar 30 '16

For everybody thinking this is an April Fool's joke, they showed it live.

2

u/belisaerio Mar 30 '16

Apparently there is no limit to what Microsoft will do the get people to adopt Win 10.

2

u/LiquidMotivation Mar 31 '16

But will it run X11 apps?

2

u/bradishungry Mar 31 '16

Does this mean I can download a library and start programming by just quickly linking in a makefile? Dealing with include dependencies and stuff on windows really annoys me.

2

u/CosineTau Mar 31 '16

Does that mean I can build windows applications with g++?

...

DO I GET TO USE MAKE?!

3

u/JayPhi Mar 31 '16

I have the same question regarding compiling in bash. But from what I've heard/seen is that you will not get a Win32 executable (exe) but an ELF 64-bit LSB executable (./a.out) when you compile with gcc/g++. Therefore no Windows applications unless you use the gcc-mingw-w64 version I guess.

Reference: https://channel9.msdn.com/Events/Build/2016/C906

2

u/dont_ban_me_please Mar 31 '16

They are only about 10 years late on this.

2

u/paperfairy Mar 31 '16

k well guess I'm doing using Linux now

2

u/beefsack Mar 31 '16

If this makes my workplace move us from *nix machines to Windows machines I'm going to lose it.

2

u/kasci007 Mar 31 '16

They will announce tommorow that it is Aprils Fools joke :D

2

u/coladict Mar 31 '16 edited Mar 31 '16

Looks like it's time to stop ignoring that "upgrade to windows 10" icon at my lower screen.

Also I won't have to learn PowerShell as I've been meaning to for some time.

→ More replies (2)

2

u/[deleted] Mar 31 '16

Can I finally run Wine?

2

u/VulcansAreSpaceElves Mar 31 '16

... so could I run an xserver on a windows kernel, kill the Windows DE, and have my system look and feel outwardly like my Linux machine but be built on a windows foundation and still able to run windows programs natively? Would I have to leave the Windows WM running for this?

Politically, I am so bothered by this. From a user experience standpoint, I think I just wet myself... I'd be able to run windows native programs in a gnome environment without major overhead, take advantage of Windows' power management, bumblebee-free optimus support. Am I understanding this correctly? Will all of this be possible?

2

u/seedless0 Mar 31 '16

Can you run Windows binaries (.exe) from the shell?

6

u/cheezballs Mar 30 '16

I Uh.... I like the new Microsoft...

5

u/[deleted] Mar 30 '16

ITT: April fools.

3

u/gospelwut Mar 30 '16

If it is the unmolested GNU binaries, it will be interesting to see how many handle CR/LF. Even the OpenSSL.exe compiled natively on Windows craps itself on CR.

3

u/readams Mar 30 '16

Am I the only one who looks at the logo on those slides and can't see anything other than "8==>" ?

→ More replies (1)

3

u/we-all-haul Mar 30 '16

Thank goodness! The one thing that was keeping me from using Windows 10 has finally been fixed!

→ More replies (1)

3

u/jmdugan Mar 30 '16

sure they'll fsck it up.

will be very, very happy to be shown incorrect on this

if it is real, they may get me to reconsider the "never again" conclusion about using their OS

3

u/JimmaDaRustla Mar 30 '16

Going to be really hard for /r/linux to shit on msft for this.

They will, guaranteed, they always find a way to blame Microsoft for being greedy and evil, it will just be hard.

15

u/apathetic_outcome Mar 30 '16

I think this might be it: https://www.reddit.com/r/linux/comments/4cjs93/microsoft_and_canonical_partner_to_bring_ubuntu/d1j4h3r

that way Microsoft can spy on you while you're using Ubuntu! This is great!

8

u/phalp Mar 30 '16

Nothing hard about it. If Linux software can run on Windows better than Windows software runs in Wine, then Microsoft gets a huge advantage. Think what Wine could accomplish if they had access to the Windows source code and mountains of cash. Well, Microsoft does have access to Linux source code, and does have mountains of cash. They're in a great position to attack Linux in exactly this way.

→ More replies (1)

10

u/[deleted] Mar 30 '16

Well, this isn't good news for Linux adoption, quite the opposite. Developers that rely on tools that Linux offers but are inconvenienced by not using Windows will immediately jump back to using only Windows.

3

u/Ironlenny Mar 31 '16

Conversely, it will make moving from Windows to Linux easier. If you use the same environment for development, the underlying OS doesn't matter.

→ More replies (1)

2

u/noratat Mar 31 '16

it will just be hard.

Nah, they just need to be paranoid conspiracy nuts. Which is pretty common for non-professional linux users I've found...

2

u/Doctor_Beard Mar 30 '16 edited Mar 31 '16

This may be a dumb question, but could you theoretically install GNOME and run it without a significant performance hit?

EDIT: So I watched the Ubuntu on Windows panel, and the answer is no. There are no plans to allow the Ubuntu instance to run GUI applications. This is really aimed at developers, it is not supposed to be a VM or a Cygwin replacement.

2

u/MyMostGuardedSecret Mar 30 '16

How is the filesystem gonna be set up? Like there's no /etc or /home. Will they emulate is to that the root has /c, or that / refers to C:\ with other drives in /mnt like in Linux? Will they symlink /home/MyMostGuardedSecret to C:\Users\MyMostGuardedSecret? How is this gonna work?

2

u/thenuge26 Mar 31 '16

I'm not 100% sure but I thought I read above that the linux filesystem will be at c:\users\<your_user>\appdata

2

u/Bloodydemize Mar 31 '16

Could someone explain this in terms so that someone like me who has little programming knowledge can understand? From what I'm reading on comments it sounds good, just want to know the exact impact

→ More replies (1)

1

u/perepascuet Mar 30 '16

Can we have an ELI5 on why this is important?

15

u/whisky_pete Mar 30 '16

When people think of good dev tools on Windows, they think of Visual Studio.

When people think of good dev tools on Linux, they think of all the utilities in the package managers. From apt-get on Ubuntu, there are (literally) tens of thousands of packages that you'll now be able to install and use on Windows.

Essentially, this makes Windows now a viable development platform for people besides just .NET developers or people developing native Windows platform-locked apps.

1

u/hsfrey Mar 30 '16

Will the file systems be mutually accessible and compatible?

→ More replies (1)

1

u/yushulx Mar 31 '16

Is Windows now the best development environment? :)

→ More replies (1)

1

u/SadRaven Mar 31 '16

I love this! That was my main gripe with windows for years. For some reason I just assumed this was impossible.

1

u/jjmitchell Mar 31 '16

Damn.

I'm excited.

1

u/MpVpRb Mar 31 '16

Looks like a useful thing

1

u/TheFans4Life Mar 31 '16

I...wha...huh...what is even happening anymore...

1

u/MyNameIsNotMud Mar 31 '16

Ctrl-F perl

OMG I'm getting hard.

1

u/Gizmoed Mar 31 '16

I can open any folder and type grep woohoo.

1

u/dgdosen Mar 31 '16

So - say I'm writing a cli app in Go... Would I compile it for Windows? or Linux?

1

u/MacASM Mar 31 '16

So, when will I be able to use it?

1

u/NiceFormBro Mar 31 '16

Can someone explain what this means for the average Joe?

3

u/ProdigySorcerer Mar 31 '16

If the average Joe isn't into programming and running commands in the console, nothing at all.

1

u/tulbox Mar 31 '16

Anyone know which version of Windows server will include this sweet wonderful goodness? Assume 2016, but my quick Google searches didn't come up with anything specifically clear.

→ More replies (2)

1

u/[deleted] Mar 31 '16

AFAIK, it's a subsytem that runs ELF binaries, which translates Linux syscalls into Windows OS syscalls.

1

u/nazaq Mar 31 '16

Wouldn't this mean developers are incentivized to only make elf binaries since they are cross platform?

1

u/cha5m Mar 31 '16

Oh my god. Finally. Please tell me the console itself is also getting an update.

→ More replies (3)

1

u/schippie Mar 31 '16

I cannot put this in any other words then: https://www.youtube.com/watch?v=rQqwG_rQx7A

This is the best news I have ever heard as a windows developer. I have used windows for fullstack web development for a long time now. But the shell and the packages have always been awful a.. and they just fixed it.. /scream

1

u/DrQuailMan Mar 31 '16

So bash can't run cmd.exe. How do I get, say, notepad to launch without exiting bash? wine?

1

u/afi44 Mar 31 '16

April fools?

1

u/napstervab Mar 31 '16

This could be a hilarious April Fools Prank !

1

u/puddingcrusher Mar 31 '16

This is fucking glorious. I have a Linux-VM on my machine, and most of the time I use it just as a shell. This change would make my life so much easier.

1

u/so_just Mar 31 '16 edited May 19 '16

So I can throw my vagrant box out of window? Holy shit.

1

u/kookjr Mar 31 '16

I wonder if Oracle's type of API lawsuit against Google could be brought against Microsoft for this. Not that it would be a good idea.

The first thing in going to do is "apt-get install git".

1

u/ridicul0us123 Mar 31 '16 edited Mar 31 '16

Hollyyyyyy shit.... the dream

1

u/pzemtsov Mar 31 '16

Are they also adopting a Unix-style line separators? Microsoft's Notepad does not like files separated with just LF and bash does not like scripts with CR LF in them.

1

u/j0hnGa1t Mar 31 '16

But how will MS sell Outlook now that windows users can run thunderbird??? Or Word now that people can run Abiword???

;-)

1

u/[deleted] Mar 31 '16

Any news on how libraries like CUDA would work?

1

u/xconde Mar 31 '16 edited Apr 04 '16

Chuck Norris always knows the EXACT location of Carmen SanDiego.

2

u/[deleted] Apr 01 '16

No ... Console at the moment. They are still not finished with getting all the API calls, that is why top/htop does not yet work. The x11 is a open question. Think if the console is a success and people whine about x11, they will potentially look to implement this also.

→ More replies (1)

1

u/Tender_Hammer Mar 31 '16

For some reason I don't trust this, what is MS playing at?

1

u/svarog Mar 31 '16

What about graphical interfaces?
What about window managers?

My dream is to run awesomeWM on windows. If that is going to be possible one day, I'm a happy man.

1

u/wwwwolf Mar 31 '16

Damn you, Microsoft, damn you! ...hashtag zsh master race.

Seriously, though, I've found it weird that Windows is just about the only major operating system that doesn't ship with Emacs. This would be an easy omission to fix.

→ More replies (1)

1

u/HeyCanIBorrowThat Mar 31 '16

Nevertheless we are delighted to stand behind Ubuntu for Windows, committed to addressing the needs of Windows developers exploring Linux in this amazing new way.

More like Linux developers who despise Windows and complained until they got what they wanted. Myself included :)

1

u/yskny Mar 31 '16

Guys, I think they won.

1

u/tristes_tigres Mar 31 '16

Beware of Microsoft bearing gifts

1

u/andigor Mar 31 '16

It looks like 1 April joke

1

u/reini_urban Mar 31 '16

Can those people please do some proper investigations!

Microsoft is now continuing again their abandoned Interix POSIX subsystem, called SFU 3.5, which they discontinued with Windows 8. Apparently it can even process native elf finally, so you don't need to use the hugely slow mingw and cygwin layers anymore, and Firefox can use again their proper toolchain on newer Windows machines. Google and LLVM also rewrote their build and test toolchains to work with the inferior win32 subsystem, where at least the build toolchain can use Interix. Wonder how they'll name it. SFU 4.0 probably.

Elf package maintainance is done by Ubuntu, which is fine.

1

u/shahid-pk Mar 31 '16 edited Mar 31 '16

Does this mean canonical can also replace Linux kernel for Ubuntu with windows NT kernel in the future ? if NT kernel was open sourced ? just saying because Microsoft must have made their kernel compatible with api's that Ubuntu user space applications need , so if it is possible one way i think its already possible the other way around , replacing Linux kernel with NT in Ubuntu. I can't think what good it will do to Microsoft or canonical but it certainly is a big possibility.