Sunday, December 6, 2009

Fixing Static vs. Dynamic

Courtesy of Chris Double, Wasp's build system will now statically link libevent on Linux and other Unixen for the stub virtual machine. This improves the portability of standalone executables compiled using Wasp's stub virtual machine, since libevent is not quite ubiquitous.

Also patched was an annoying little warning in "vm/salsa.c" related to an implicit pointer cast, and the process loop now performs a 100 microsecond sleep when all processes are polling. (Previously, this was handled by the OS process, which doesn't correctly handle the possibility of more than one process polling for external events.)