Linux: What Can You Epoll?
On Linux what can you turn into a file descriptor and then monitor with epoll?
Every blog post that took off on Hacker News, ranked by the votes of its best submission. 14,540 posts.
On Linux what can you turn into a file descriptor and then monitor with epoll?
Unless you live under one of the few rocks that still lack Internet access, you’ve probably already heard of an “event queue” . If not, maybe “message queue”, or “event loop”, or “message pump” rings a bell. To refresh your memory, let’s walk through a couple of common manifestations of the pattern.
Thoughts on the Elixir language and its Phoenix framework after two years of professional work.
Tools for multi-processing on unix
Something I’ve been thinking about recently is how when I’ve worked on any kind of distributed system, including systems as simple as a web app with frontend and backend code, probably upwards of 80% of my time is spent on things I wouldn’t need to do if it weren’t distributed. I came up with the following description…
The Lumen Project is an alternative implementation of the Erlang VM, more known as the BEAM. It is designed to work in WebAssembly with the specific goal of bringing Elixir and Erlang to the browser.
My book Crafting Interpreters on programming languages is done. OK, OK. I know I said it was done like fifteen months ago . But now it’s really done. And by that I mean, the print, e-book and PDF versions are done. You can buy it . You can hold it in your hands. And I do mean “hands” plural. Because this little…
In 2007, I was offered $120,000 to buy this blog outright. I was sorely tempted, because that’s a lot of money. I had to think about it for a week. Ultimately I decided that my blog was an integral part of who I was, and who I eventually
Compare crypto casino Singapore options on withdrawal speed, coins, wagering terms, KYC rules, offshore licensing and responsible play before you deposit.
I was at cfgmgmtcamp 2019 in Ghent, and did a talk which I think was well received about the need for some Kubernetes configuration management as well as the solution
Web components can dramatically loosen the coupling of JavaScript frameworks. To prove it, we're going to do something kinda crazy: build an app where every single component is written in a different JavaScript framework.
IDEs (Integrated Development Environment) are great tools to make the lives of developers easier.
Through several recent discussions of GUI programming in Rust,I have been left with the impression that the term ‘GUI’ means significantlydifferent things to...
In which I tell you that you're overcomplicating things and you should throw everything behind a single git repository.
The one where I build my own text editor (until I get bored).
About a year ago I posted about defer and that it would be available for everyone using gcc and/or clang soon. So it is probably time for an update. Two things have happened in the mean time: A tec…
Let me open with an apology to John Gruber for my previous blog post. We’ve been working on the Standard Markdown project for about two years now. We invited John Gruber, the original creator of Markdown, to join the project via email in November 2012, but never heard back.
I often see code where authors abstract away details by placing them in some external function. Here is a toy example:
Open answers to a reader's letter.
The less sexy (but very important!) side of the data sciences, every Tuesday morning. Click to read Counting Stuff, by Randy Au, a Substack publication with thousands of subscribers.
This one is going to be a quick one as there wasn't anything new discovered. In fact, I feel quite dumb. This is really a tale of " Do your research before acting and know what your goal is, " as you'll end up saving yourself a lot of time. Nobody likes throwing away work they've done either, and there could be…
It is no secret that I am not a fan of logs; I’ve baited (rapala in work lingo. Rapala is a Finnish brand of fishing lure, and used to mean baiting in this context) discussion in our work chat with things like: If you’re writing log statements, you’re doing it wrong. This is a pretty incendiary statement, and while…
I recently purchased the textbook “Aircraft Control and Simulation” by Brian L. Stevens, Frank L. Lewis, and Eric N. Johnson 1 . This book covers the control and simulation of aircraft. It’s really dense and frankly hard to understand. As far as aerodynamics texts go, it’s pretty typical.