Live data from Hacker News

I ported pigz from Unix to Windows

blog.kowalczyk.info

31–34 of 34 posts

Re: I ported pigz from Unix to Windows

#31
post #24

Earlier quoted context omitted.

Could you elaborate on that?

I'm guessing it needs internet for everything and can't work with local repositories.

Not really a fan of Meson but I doubt that that's the case as it is very popular in big OSS projects and distributions aren't throwing a fit.

Re: I ported pigz from Unix to Windows

#32
post #15

Very old post, needs 2013 in the title https://web.archive.org/web/20130407195442/https://blog.kowa...

Seems to be updated, no?

Not much. The only non-cosmetic difference is:

  -Premake supports Visual Studio 2008 and 2010 (and 2012 supports 2010 project files via conversion).
  +Premake supports latest Visual Studio 2018 and 2022 project files via conversion).

Re: I ported pigz from Unix to Windows

#33

I recently ported WebKit's libpas memory allocator[1] to Windows, which used pthreads on the Linux and Darwin ports. Depending on what pthreads features you're using it's not that much code to shim to Windows APIs. It's around ~200 LOC[2] for WebKit's usage, which a lot smaller than pthread-win32. [1] https://github.com/WebKit/WebKit/pull/41945 [2] https://github.com/WebKit/WebKit/blob/main/Source/bmalloc/li...

At the time (11 years ago) I wanted this to run on Windows XP.

The APIs you use there (e.g. SleepConditionVariableSRW()) were only added in Vista.

I assume a big chunk of pthread emulation code at that time was implementing things like that.

Post reply on HN