Get the latest tech news

I ported pigz from Unix to Windows


Pigz was clearly written with Unix in mind, with no thought given to cross-platform portability. Thankfully, it’s a relatively simple, command-line program that sticks to using standard C library.

There are few functions that pigz uses that are present in Visual Studio’s C library, but under a different name (e.g. stat is_stat, fstat is_fstat etc.). As far as porting goes, this one was easy thanks to existing efforts that created compatibility shims for the hard parts. Premake is an interesting tool that allows to save time creating and maintaining Visual Studio projects.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Windows

Windows

Photo of Unix

Unix

Photo of pigz

pigz

Related news:

News photo

Perplexity's AI-powered browser opens up to select Windows users

News photo

Xbox President: We're Working To Ensure Windows Is the Number One Platform For Gaming

News photo

Windows 10 EOL