00:47:22 -!- kipple has quit (Read error: 110 (Connection timed out)).
03:34:36 -!- calamari has joined.
03:48:36 -!- calamari has quit ("Leaving").
04:01:49 -!- marcan has quit (Connection timed out).
04:15:14 -!- marcan has joined.
04:19:03 -!- Sgep has quit.
05:45:39 -!- GregorR has joined.
07:31:59 -!- kipple has joined.
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
08:33:21 -!- Keymaker has joined.
09:54:24 * Keymaker thinks about writing a brainfuck program that prints out its own amount of instructions as integer
10:14:41 <Keymaker> this isn't what i originally had in mind, but it looks nice :)
10:14:42 <Keymaker> ++-++-++-++-++[>++++++++<-]>+++..
10:24:11 <Keymaker> here is a bit shorter version, that looks better
10:24:14 <Keymaker> >>>+++++[>++++++++++<-]>+.---.
10:29:57 <Keymaker> here's a 32-byte version that prints a new-line too
10:29:59 <Keymaker> >++++++++++[>+>+++++<<-]>>+.-.<.
10:47:58 -!- int-e has joined.
11:45:05 -!- Keymaker has left (?).
12:48:22 -!- Keymaker has joined.
12:49:03 <Keymaker> what is wrong with this python code?
12:49:49 <kipple> don't you need to increment i?
12:50:02 <Keymaker> but that whole thing doesn't work
12:50:27 * kipple doesn't know python :(
12:50:44 <Keymaker> i'm not very familiar with this either, as you can see ;)
12:51:19 <int-e> NameError: name 'i' is not defined
12:51:25 <int-e> that's quite a clue, isn't it?
12:51:44 <int-e> add a i = 0 before the loop and it's an infinite loop
12:52:14 <Keymaker> i thought i tried it already :)
12:52:43 <Keymaker> i thought python didn't need variable defining
12:53:25 <int-e> hmm, that's not quite true. (obviously)
12:53:39 <int-e> but you don't need to declare the variable before assigning a value to it
12:53:58 <int-e> (that's slightly different though, it prints the 0, too)
12:54:08 <int-e> (and goes past the 0 if the list is longer)
12:57:36 <int-e> (ok. that's the obvious alternative if you don't need the index later - I'll stop now)
13:07:31 <Keymaker> i hate normal languages.. grhh
13:08:17 <int-e> Hmm. I think Python is very neat.
13:44:13 <Keymaker> done; http://koti.mbnet.fi/yiap/stuff/selfmd5.py
13:45:32 <Keymaker> it's md5 (and output) is (or at least should be) b1f532d69db9c1366389ff855da9ae04
13:47:50 <int-e> ", ".join(map(str, [45,45,45])) -> "45, 45, 45"
13:48:07 <int-e> you might like this :)
13:48:47 <int-e> (it works on arbitrary lists, of course)
13:49:18 <int-e> hmm. actually strings don't hurt either
13:49:35 <int-e> (but Python prefers to print them with '')
13:49:48 <Keymaker> perhaps my python version is too old
13:50:28 -!- jix has joined.
13:51:08 <int-e> I have 2.4.2 - which is fairly modern.
13:51:28 <int-e> it works in 2.3 too
13:53:01 <Keymaker> hmm, do i need to have anything else in the file than that code line?
13:53:11 <int-e> did you strip off the ' -> [...]' part?
13:53:42 <Keymaker> the interpreter was complaining about "->" part
13:54:07 <int-e> I just used it to show the result on the same line.
13:56:16 <Keymaker> consider nothing obvious when talking to me about something ;)
13:56:44 * jix is working on a emulator...
13:56:55 <jix> colecovision
13:57:09 <jix> some z80 game-device
13:57:23 <jix> using sound and graphic chips from TI
13:58:58 <jix> there are internet sites that describe the hardware
13:59:34 <jix> and i know how the z80 works by viewing offical and inoffical z80 documentation
14:03:05 <int-e> s = ['print s', 'print "\\n".join(s)']
14:03:05 <int-e> print "\n".join(s)
14:03:22 <int-e> hmm, one space too much.
14:03:31 <int-e> should be print "s =", s
14:03:52 <int-e> s = ['print "s =", s', 'print "\\n".join(s)']
14:03:52 <int-e> print "\n".join(s)
14:04:19 <int-e> (the fun thing is that python quotes strings inside lists when printing lists)
14:06:12 <int-e> you can exploit the same thing with the str() function
14:06:22 <int-e> so it can be used for the md5sum program as well
14:07:13 <jix> ruby port:
14:07:14 <jix> s = ["puts 's = '+s.inspect","puts s"]
14:07:14 <jix> puts 's = '+s.inspect
14:33:39 -!- Keymaker has left (?).
16:28:59 -!- Keymaker has joined.
16:32:48 <int-e> 247 bytes is quite impressive.
16:35:36 <Keymaker> it's amazing how the task got optimized
17:05:59 -!- int-e has quit ("Bye!").
17:31:49 -!- lindi- has quit (Read error: 113 (No route to host)).
17:52:02 -!- Keymaker has left (?).
20:33:03 -!- Sgep has joined.
20:56:58 -!- Keymaker has joined.
21:25:56 <Keymaker> bf-hacks.org has been updated with a new program i made up today!
21:25:58 <Keymaker> http://bf-hacks.org/hacks/ptmbsg.b
21:26:21 <Keymaker> it's a Prouhet-Thue-Morse binary sequence generator
21:26:39 <Keymaker> i think it's one of my best programs. check it out :)
21:39:15 <jix> one of my best programs (sort) not the shortest sort but very short: >>,[[-[->>+<<]+>>]<+<[-<<]>>,]+[>[-<.>]<[->>+<<]>>+]
21:39:35 <jix> it sorts all input bytes
21:40:17 <jix> uses 0 for eof...
21:41:25 <Keymaker> that kind of thing has once been in bf golf if i remember correct. if you had been around at that time you would've placed well
21:41:34 <Keymaker> (i wasn't around at that time, btw)
21:42:14 <jix> the version at short.b (where the shortest hw is in) is 1 or 2 bytes shorter than mine
21:42:38 <Keymaker> so, that's pretty good solution ;)
21:52:30 -!- jix has quit ("Bitte waehlen Sie eine Beerdigungnachricht").
23:00:55 -!- Keymaker has left (?).
23:03:18 -!- kipple has quit ("See you later").