A way that provides much better performance for a big number of simultaneously handled socket connections than starting a handler thread for each connection is to handle all connections in the main thread, using Linux’ epoll interface in combination with non-blocking socket I/O. Tango’s EpollSelector is built on top of epoll and provides a pretty good D interface for it. read more
Blog
Implementing an asynchronous, epoll based network client with Tango on Linux
Native Javascript Ninjutsu: removeNode vs. removeChild
Javascript now seems to be a strong, healthy, and widely accepted language, frequently used and relied upon by web developers across the land. Yet how many of today's programmers can write pure native Javascript without the aid of a framework? How many can perform AJAX requests without a framework? And most importantly, how many can craft fully cross-browser compatible code without a framework? Recently there have been a few occasions in which I needed to remove element nodes from the DOM. Learning how to remove element nodes from the DOM can be very useful for a variety of reasons. read more
Native Javascript Ninjutsu: Cookies and Variables
Javascript now seems to be a strong, healthy, and widely accepted language, frequently used and relied upon by web developers across the land. Yet how many of today's programmers can write pure native Javascript without the aid of a framework? How many can perform AJAX requests without a framework? And most importantly, how many can craft fully cross-browser compatible code without a framework? Setting cookies with JS is a technique that I must frequently use in my front-end development missions. Though cookies are not the only way to store and retrieve user data, and often I'm sent out on a JS mission which involves extracting data from the page itself. read more
Native Javascript Ninjutsu: Include External JS
Javascript now seems to be a strong, healthy, and widely accepted language, frequently used and relied upon by web developers across the land. Yet how many of today's programmers can write pure native Javascript without the aid of a framework? How many can perform AJAX requests without a framework? And most importantly, how many can craft fully cross-browser compatible code without a framework? Using native JS to include external scripts is pretty fun and easy to do. read more
Native Javascript Ninjutsu: Dynamic JS with PHP
Javascript now seems to be a strong, healthy, and widely accepted language, frequently used and relied upon by web developers across the land. Yet how many of today's programmers can write pure native Javascript without the aid of a framework? How many can perform AJAX requests without a framework? And most importantly, how many can craft fully cross-browser compatible code without a framework? Dynamic scripting allows your JS to be changed based on the server side or client side situation (or both); different scenarios call for different measures, different variables, and sometimes even completely different code altogether. read more
