Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ill-Advised C++ Rant, Part 2 (2016). Parent comment
Neat! In the past I've used perl scripts to munge into C source.
FYI, it generates symbols named after the filename:
tlb@london:~/ur$ objcopy -I binary -O elf64-x86-64 -B i386:x86-64:intel /etc/services services.o tlb@london:~/ur$ objdump -t services.o SYMBOL TABLE: 0000000000000000 l d .data 0000000000000000 .data 0000000000000000 g .data 0000000000000000 _binary__etc_services_start 0000000000004c95 g .data 0000000000000000 _binary__etc_services_end 0000000000004c95 g *ABS* 0000000000000000 _binary__etc_services_size
extern const char _binary__etc_services_start; extern const char _binary__etc_services_end; string services(&_binary__etc_services_start, &_binary__etc_services_end);
There are no comments on this comment yet.
Neat! In the past I've used perl scripts to munge into C source.
FYI, it generates symbols named after the filename:
And in C++ you can get the contents with: