Topics /

Software Engineering

The most popular blog posts about software engineering on Hacker News. 488 posts.

2011
331

The Next Big Language

Dylan? C# 3? Perl 6? Does it have deterministic destructors, even as blocks like Python 2.5? Generics? A powerful macro system? Even as described it sounds like magic, but not a moment too soon.

335

A Perl Regular Expression That Matches Prime Numbers

Take a look at this Perl regular expression: perl -lne '(1x$_) =~ /^(11+?)\1+$/ && print "$_ is composite"' This regular expression matches only the composite numbers (and doesn't match prime numbers). Can you figure out how it works? I'll give the explanation below but try to figure it…

336

Quake Engine source review

I happily dove into Quake World source code . Here is what I understood, hopefully it will help someone to swim. This article is in four parts : Architecture section Network section Prediction section Rendition section

344

The most stupid C bug ever

I have been programming for a number of years already. I have seen others introduce bugs, and I have also introduced (and solved!) many bugs while coding. Off-by-one, buffer-overflow, treating pointers as pointees, different behaviors or the same function (this is specially true for cross-platform applications), race…

355

Objective-C Blocks vs. C++0x Lambdas: Fight

Blocks are perhaps the most significant new language feature introduced by Apple in years, and I've written a lot about them before. The new C++ standard, C++0x, introduces lambdas, a similar feature. Today, I want to discuss the two features and how they are alike and how they differ, a topic suggested by David…