Nick Wellnhofer
- Website: aevum.de/
- About: I'm a freelancer looking for contract work in Munich, Germany, or remotely. Check out my profiles on MetaCPAN, GitHub, LinkedIn and StackOverflow.
Recent Actions
-
Posted Branchless UTF-8 Length to Nick Wellnhofer
I recently read an article about Aha! – A Hacker’s Assistant, a superoptimizer used to find branchless algorithms with brute force. There's a problem…
-
Posted Howto: XS Coverage Reports on coveralls.io to Nick Wellnhofer
The excellent Travis Perl helpers make it easy submit automated coverage reports to Coveralls whenever you commit to GitHub. All that's needed is to set the COVERAGE environment variable.
Unfo…
-
Posted Writing XS Like a Pro - PERL_NO_GET_CONTEXT and Static Functions to Nick Wellnhofer
The perlxs man page recommends to define the PERL_NO_GET_CONTEXT macro before including EXTERN.h, perl.h, and XSUB.h. If this macro is defined, it is assumed that the interpreter context is passed as a…
-
Posted Writing XS Like a Pro - The INTERFACE Keyword to Nick Wellnhofer
Like many Perl hackers with a C background, I did my fair share of XS programming. But mostly, I contributed bug fixes and other minor changes. In the rare case that I had to add a new XSUB, I typically used another XSUB from the same project as template. Unfortunately, this cargo cult is common…
-
Commented on Stop Putting AUTO_INCREMENT IDs in URLs
I agree with Dana. Simply use a toy cipher like SKIP32, for example. I'm pretty sure YouTube uses something similar for their video ids....
-
Commented on 1-line Endianness Detection in the C Preprocessor
The detection doesn't run in the preprocessor, though. See the comments on the original post....
-
Commented on 30 url mappers for Google code-in
Thanks for the list. I'm still looking for the best URL routing module that fits my needs but I didn't find the time yet for a thorough evaluation. Your list is a good starting point. One module I didn't find...
Comment Threads
-
Jean-Damien Durand commented on
1-line Endianness Detection in the C Preprocessor
Since this is runtime and this is a perl blog, maybe it is worth to also refer to http://perldoc.perl.org/perlport.html#Numbers-endianness-and-Width is worth - this is using a similar trick in fact
-
zaki commented on
1-line Endianness Detection in the C Preprocessor
Using
pack/unpack
is a bit verbose for my tastes, so I would rather use thebyteorder
information from the Config module.
use Config;
my $is_little_endian = $Config{byteorder} eq '12345678';
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.