Mercurial > repo
view paste/paste.5749 @ 5129:7d19c0f4d970
<b_jonas> echo $\'#!/usr/bin/perl\\n\'\'$_=shift;sub k{my$t;$t=~y/IVXLC/XLCDM/,$t.=("",I,II,III,IV,V,VI,VII,VIII,IX)[$_]for/./g;$$t=$_;$t}k for s""\\$"..4e3;print eval(),$/\' > bin/fromroman && chmod a+x bin/fromroman
author | HackBot |
---|---|
date | Fri, 14 Nov 2014 21:22:56 +0000 |
parents | f59cb5e61a87 |
children |
line wrap: on
line source
2012-02-01.txt:22:44:40: <oerjan> @tell Taneb er... Dupdog is not supposed to have a program pointer, you always take the first character. Also your eval' is an infinite recursion (hint: unless you are writing generic combinators, a function argument with IO type is usually a mistake.) 2012-02-01.txt:22:58:01: <oerjan> @tell Taneb I can see how "The next character is read" might give you that impression though - but note that (I clearly recall) the initial inspiration for dupdog was the idea of two irc bots reacting to each other's lines as entirely new commands, for which such a remembering of position doesn't make sense. 2012-02-18.txt:14:49:47: <Taneb> ~!~ --infinite loop in dupdog? 2012-02-21.txt:22:42:32: <oerjan> `pastelogs taneb.*dupdog