Hacker News new | ask | show | jobs
by Zarathu 6005 days ago
As an avid FreeBSD user, I must say that the article didn't really provide an unbiased comparison of Linux to FreeBSD. It didn't offer any of the advantages Linux may have over BSD.

Linux has an amazing community with better application support. Linux also has an optimized C library. For example, you should take a look at BSD's strlen() versus GNU's strlen().

1 comments

BSD implementation of strlen() is handwritten in assembler for most architectures, and is optimized. The misunderstanding about it not being optimized is probably because someone read the fall-back non-optimized C implementation and missed architecture-specific directories.

This was discussed in this thread: http://news.ycombinator.com/item?id=510832

Edit: glibc also doesn't use the generic optimized version in C on some architectures, see for example: http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/i3...