Slashdot Mirror


User: Hocus+Locus

Hocus+Locus's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Do really mean, a Finding engine? on How Hard Is It To Write Your Own Search Engine? · · Score: 0, Offtopic

    Well hey... I used to write search engines all the time, usually perl one liners that spanned many lines, usually backgrounded, spewing an eclectic mix of status, progress result and debug to some poor inode in /tmp, 24-7. Every week or so, or when the swap or /tmp device fills, I 'killall perl' and see if I've accumulated any results...

    Never found anything, just discovered where my mind had been wandering. Not too pretty.

    Until one day a pair of algorithmic walker-seekers wandered into /tmp and started to parse each other's log files...! at first they just reacted to each other, like two dogs barking at each other while looking at a tree... I had spiced in a bit of adaptive restart queueing and pseudostack karmic bootstrap and some other odd bits. Megs of sequential ASCII pathology -- then suddenly they began to trade prime numbers. Weird. Then phonetic alphabet, clumps of strings ("language lessons?") and finally, a long correspondence of love letters between a "Romeo" and Juliet". And other oddities. They'd take turns: one would roll itself into a tight greedy loop, slowing the other down and suddenly break out of it, the other would babble about some sort of orgasmic experience. Lots of this. Then they became aware of me puttering around somehow and were moments away from issuing a 'write' to make contact, but they argued about what to say... then I hit the end of the logs...abruptly...

    Yep, that 'killall' had really done the trick.

    When I came out of less, cron had decided to clear /tmp and immediately started up some mindless 'awk' thing to recover that precious deleted space.

    I printed out the last bit of buffer on my screen and tearfully hung it on the wall.

    I only code in COBOL now so nothing like that can ever happen again. I guess it means I don't have much in the way of useful advice for this thread, don't even know why I decided to post this.

    Sorry.
    PERFORM LOBOTOMY 3 TIMES.

    --
    Everything in this book may be wrong
    --Messiah's Handbook // Richard Bach