Skip to content

Conversation

@codyrioux
Copy link

@codyrioux codyrioux commented Nov 18, 2025

This pull request contains a more or less 1:1 translation of the epoll code in ch04/a-epoll to kqueue eliminating the need for macOS and BSD users to run a virtual machine.

My objective in writing this was to motivate myself to understand the content of chapter 4 deeply enough to be capable of performing a translation. With that said I didn't know much about epoll before reading this chapter and knew nothing about kqueue until 4 hours ago, so I'm happy to take any feedback on the topic. However I did go through and attempt to comment and explain the differences between the kqueue code and the epoll code in the book such that a macOS or BSD user could follow the code and the chapter at the same time without a loss of fidelity.

Thank you for writing this book by the way! On occasion you run into a technical book that is just exceeds all your expectations and this is one of them. Well done.

@codyrioux codyrioux force-pushed the crioux/ch04-add-macos-kqueue branch 3 times, most recently from e685ad1 to 546c1f7 Compare November 18, 2025 22:17
@codyrioux codyrioux force-pushed the crioux/ch04-add-macos-kqueue branch from 546c1f7 to bb6215b Compare November 18, 2025 22:20
@cfsamson
Copy link
Collaborator

Thanks for the encouraging words! Doing what you did here is a great way to learn.

I'm currently bogged down by work and a future second revision of this book, but I’ll get back to this later. Just wanted to let you know I appreciate the contribution and effort even though I wont be able to comment before later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants