OSDev.org

The Place to Start for Operating System Developers
It is currently Sun Jan 21, 2018 10:47 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Recommending WSL for Windows 10
PostPosted: Fri Jan 12, 2018 5:59 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2571
Location: Devon, UK
Hi All,

I've put a note in the discussion page of GCC Cross-Compiler saying about making WSL the default recommendation for Windows 10 users (rather than MinGW / Cygwin). If I get no objections, I will start updating the page.

WSL has now been out of beta for a while and also includes options other than Ubuntu. The apt-get system works very well and I have always found it (since the start of the beta) faster, more compatible and reliable than Cygwin, which now seems a distant memory for me.

If nobody objects, I will update the Cross-Compiler page to recommend this system and will also add a new page about how to optimise WSL for OS Dev after the cross-compiler has been compiled (stuff which is outside the scope of the basic article).

Cheers,
Adam


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Fri Jan 12, 2018 11:32 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 3041
Location: Chichester, UK
Good idea. I'm a big fan of WSL.


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Fri Jan 12, 2018 12:24 pm 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 426
I have never used WSL so I might be completely off here but: I agree that Cygwin should not be recommended as it is basically a giant hack. But what is so bad about MinGW? If gcc builds correctly on MinGW, I see no reason not to recommend it. Maybe just recommend both MinGW and WSL.


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Mon Jan 15, 2018 6:53 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2571
Location: Devon, UK
Hi,

Thanks for the feedback so far. I have started creating the very basic supplementary page at http://wiki.osdev.org/User:Aj/WSL with a couple of pointers. I'll soon start work on the GCC Cross-Compiler page.

Korona wrote:
But what is so bad about MinGW? If gcc builds correctly on MinGW, I see no reason not to recommend it. Maybe just recommend both MinGW and WSL.

Probably all that's wrong with it is my ignorance :). When I started this kind of development back in 2000 using GCC 2.x, I just got in to Cygwin and always found it integrated better for me. I haven't even tried MinGW since then and am probably unfairly tarring it with the same brush.

Cheers,
Adam


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Mon Jan 15, 2018 6:56 am 
Offline
Member
Member
User avatar

Joined: Wed Dec 01, 2010 3:41 am
Posts: 1755
Location: Hong Kong
I suppose cross compiler in docker could be configured in similar manner? (or someone could make an image)


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Mon Jan 15, 2018 7:00 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2571
Location: Devon, UK
Someone is welcome to, but it won't be me :)


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Mon Jan 15, 2018 4:27 pm 
Offline
Member
Member

Joined: Mon Jan 03, 2011 6:58 pm
Posts: 278
I'm also slowly working on a guide for WSl as well.

http://wiki.osdev.org/User:Tjmonk15/WSL_Notes

- Amy


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Mon Jan 15, 2018 4:50 pm 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2571
Location: Devon, UK
Ah - OK.

Sorry I had no idea you were working on similar. Perhaps we could merge parts of the articles?

For one, your package list is much better (although I've deliberately left out items installed by following the default GCC Cross-Compiler article).

The point that stands out as needing some adjustment in your article is that the current version of WSL (only available on the latest Windows 10 build) no longer states "beta" and now you have to install WSL, reboot and then download an actual Linux environment from Windows Store (the default Ubuntu is no longer automatically installed).

However we merge this, I'm certain it will be useful to have something on the wiki!

Cheers,
Adam


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Mon Jan 15, 2018 9:10 pm 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 534
Location: Victoria, Canada
I've been using WSL as my OS dev build environment since release and I can confirm it is miles ahead of cygwin and mingw. I've got a couple notes that I can put up on the wiki as well.

IMO now that WSL exists and is usable we should straight up discourage the use of cygwin.

_________________
In our business, a one in a million chance is next Tuesday.


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Tue Jan 16, 2018 4:07 am 
Offline
Member
Member
User avatar

Joined: Sun Oct 22, 2006 7:01 am
Posts: 2571
Location: Devon, UK
+1


Top
 Profile  
 
 Post subject: Re: Recommending WSL for Windows 10
PostPosted: Tue Jan 16, 2018 11:13 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 1216
Instructions for using MSYS2 may be helpful as well, for those who decided not to upgrade to Windows 10 but would still like a build environment that isn't as horrible as Cygwin. (I would offer to provide them myself, but I don't have time to sit down and write it out.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group