Microsoft Windows Services for UNIX

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Microsoft Windows Services for UNIX

Postby Pradu » 08 Jul 2007, 00:05

http://en.wikipedia.org/wiki/Microsoft_ ... s_for_UNIX
http://en.wikipedia.org/wiki/Interix

Perhaps we can make our engines fully compliant with Windows and UNIX by using only POSIX code?
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: Microsoft Windows Services for UNIX

Postby Onno Garms » 08 Jul 2007, 11:30

When starting a new project, it is nice to implement the system functions only once. In a running project, I don't see a reason to change them. I need different implementations for timer access and for non-blocking keyboard query. (Anything else, anybody?) Those are nicely wrapped and it's unlikely they ever need to be revisited.

What license and what costs do Microsoft Windows Services for UNIX have?

I develop on Unix. The first transfer to windows was using Cygwin. In the meantime, I replaced Cygwin by native Windows functions to get rid of the GPL'ed cygwin1.dll. But note that
- There is a commercial cygwin license available (Does anybody know its price?)
- For those who plan to go open source with the GPL, Cygwin is a free alternative
User avatar
Onno Garms
 
Posts: 128
Joined: 17 Feb 2007, 11:17
Location: Bonn, Germany

Re: Microsoft Windows Services for UNIX

Postby Pradu » 09 Jul 2007, 01:17

Onno Garms wrote:When starting a new project, it is nice to implement the system functions only once. In a running project, I don't see a reason to change them. I need different implementations for timer access and for non-blocking keyboard query. (Anything else, anybody?) Those are nicely wrapped and it's unlikely they ever need to be revisited.
Threads, Signals, Sockets, ect. True you'll only have to write it once but it'd be much easier in my opinion to develop with one particular set of libraries.

What license and what costs do Microsoft Windows Services for UNIX have?
It comes with Vista and you can download it for Windows XP for free I think.

I develop on Unix. The first transfer to windows was using Cygwin. In the meantime, I replaced Cygwin by native Windows functions to get rid of the GPL'ed cygwin1.dll. But note that
- There is a commercial cygwin license available (Does anybody know its price?)
- For those who plan to go open source with the GPL, Cygwin is a free alternative
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: Microsoft Windows Services for UNIX

Postby Onno Garms » 10 Jul 2007, 07:17

Pradu wrote:Threads, Signals, Sockets, ect.


OK, I don't have threads yet. I thought about using the boost thread library. Why do you need signals and sockets in your engine?
User avatar
Onno Garms
 
Posts: 128
Joined: 17 Feb 2007, 11:17
Location: Bonn, Germany

Re: Microsoft Windows Services for UNIX

Postby Pradu » 10 Jul 2007, 09:57

Onno Garms wrote:
Pradu wrote:Threads, Signals, Sockets, ect.


OK, I don't have threads yet. I thought about using the boost thread library. Why do you need signals and sockets in your engine?
I don't at the moment but I might. :mrgreen: Perhaps for things like specialized ICS support.
User avatar
Pradu
 
Posts: 343
Joined: 12 Jan 2005, 19:17
Location: Chandler, Arizona, USA

Re: Microsoft Windows Services for UNIX

Postby Dann Corbit » 11 Jul 2007, 06:15

The Windows POSIX library is a complete joke. They tacked it on so that they could claim POSIX compiliance for government contracts.

In short, it's completely and utterly worthless.

If you want a POSIX like environment on Windows, then use Cygwin if you need to be able to fork() or Mingw if you do not need the fork() operation (or can get by with CreateProcess()).

Trust me, you will be truly sorry you wasted your time with Windows POSIX layer.
Dann Corbit
 


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 4 guests