I know you meant it jokingly but I come to Hacker News to find good technical/business posts like this one. Great thing about the internet is there are many old still valuable articles out there, many of which some people have not read yet. What might be an old article to you can still be new to other people.
We do. Your post is still noise. This is a valuable article that most people here have not seen - I hadn't, even though I have seen others from this author. Which are all excellent, by the way. I upvoted this submission because I love seeing such detailed systems articles on the frontpage.
I agree. I enjoy finding detailed articles like this when I come to Hacker News. Also, even though this article is old to a lot of people I have found a new blog to follow with what appears to be well written articles.
I'm reading your comment to imply that Chinese are more interested in researching their production of malware.
But really, we'd need to know what proportion of leechers there are for other pirated software torrents before we could even think about drawing conclusions.
Heh, point taken--I banged it out in 3 hours this morning. Though I must admit laughing a little about being called a newbie! Not like I'm hard to find on github or freenode... :-)
I only submitted because a.) it takes advantage of some non-obvious ssh features I have to look up every bloody time, b.) friends have asked for it, and c.) yesterday's front-page submission about theft made it seem apropos to remind people how easy this is to accomplish.
Yeah but why Ruby? It's what shell scripting has been invented for :)
While I admit many looong shell monstrosities are better implemented in something like Ruby, and I myself use Ruby as a scripting language of choice for anything longer that a one screen of text, this time looks like it's kind of - excuse my language - overrubyism. I understand there's a tendency of rewriting everytning in The One Beloved Language and I'm a victim of this approach myself occasionally. But seriously, this could be a shell few-liner!
Anyway thanks for advertising the idea of ssh -R tunnels, they are a neat trick!
If I have to throw typesafety onto the sacrificial bonfire to avoid queue.h, then I do it with a light heart. I really don't see any value in it. You have two possible situations:
1) The list contains only items of one type - in this case you already know what the type of all objects in the list is - it's a list of widgets, so all items are of type Widget. Whilst queue.h will give you a compiler warning if ever you try to put a File into your widget list, is that every really likely to happen in real life???
2) You have a list of mixed-type objects. In that case you need code to identify at runtime what the type of the object was anyhow, so type safety gets you nothing in that case either.
So, considering how little you get back for the decidely annoying problems of macros and polluted data structures, I really have no hesitation in counselling the avoidance of queue.h.
In answer to your question, no, I don't have a nice typesafe library. But I do have a nice non-typesafe library.
February 3, 2009 at 11:35 pm