Hacker News new | past | comments | ask | show | jobs | submit login

I don't understand the fascination with writing/presenting the code with as few lines as possible. I'd be just as impressed if they said the code was 120 lines and formatted so it was just a bit more pleasant to read.



Here are slides linked from that page with a reformatted version with 202 lines:

https://drive.google.com/file/d/0B8g97JkuSSBwUENiWTJXeGtTOHF...

Here's the source from those slides (I don't know who put it there).

http://codepad.org/ZWbF9yrY

I had to remove these two lines to make it compile.

    double M_PI = 3.14159265358979;
    double M_1_PI = 1.0/M_PI;


I had to modify this line as well: double erand48(unsigned short xsubi[3]) throw() {

Link here: http://codepad.org/fpp2inpr




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: