←2005-01-15 2005-01-16 2005-01-17→ ↑2005 ↑all
00:01:11 <lindi-> calamari: oh, i have a program to do almost the reverse ;)
00:57:01 <calamari> lindi: everyone does hehe :)
02:31:01 -!- calamari has quit (Read error: 110 (Connection timed out)).
02:31:03 -!- calamari_ has joined.
05:23:16 -!- calamari_ has quit ("Leaving").
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
10:20:35 -!- cpressey has quit (Remote closed the connection).
10:25:00 -!- cpressey has joined.
12:05:05 -!- Keymaker has joined.
12:05:09 <Keymaker> hi
12:05:40 <Keymaker> is there something wrong in the following befunge-93 program? here:
12:05:42 <Keymaker> "!dlroW olleH"> #,_@
12:05:56 <Keymaker> i'm trying to print hello world
12:06:45 <mtve> yes, it drops half of chars :)
12:06:49 <Keymaker> yes
12:06:53 <Keymaker> but why??!!
12:07:01 <mtve> _ operator pops the stack
12:07:11 <Keymaker> yea
12:07:19 <Keymaker> oh
12:07:42 <mtve> could be "!dlroW olleH">:# #,_@
12:07:51 <Keymaker> ye
12:07:52 <Keymaker> a
12:07:53 <Keymaker> :)
12:07:55 <Keymaker> thanks
12:08:00 <Keymaker> i forgot that
12:08:15 <Keymaker> (well, "it's my first day!")
12:08:42 <mtve> i'd add a leading zero, just for compatibility reasons :)
12:09:08 <Keymaker> i see..
12:12:03 <Keymaker> this seems to be pretty good language :) (though, can't beat brainfuck, naturally!)
12:13:19 <mtve> matter of taste
12:13:27 <Keymaker> :)
12:13:32 <Keymaker> yes
12:13:46 <Keymaker> anyways, here is the final version of this: "!dlroW olleH"> #, :# _@
12:13:58 <Keymaker> without that leading zero
12:14:18 <mtve> could crash some naive interpreter
12:14:35 <Keymaker> could be
12:14:40 <Keymaker> ..but that's their problem :p
12:15:31 <Keymaker> by the way, if programs starts with a "
12:15:59 <Keymaker> will the first in stack be 0 or the one that is followed by "
12:16:19 <Keymaker> "hi" would there be on stack 0 h i
12:16:22 <Keymaker> or just h i
12:16:24 <Keymaker> ?
12:17:06 <mtve> just <top> 104 105 <bottom>
12:17:15 <Keymaker> ok
12:17:34 <mtve> and most of implementations pop zero from empty stack.
12:17:47 <Keymaker> ok
12:18:06 <mtve> (it's not strict programming to depend on this behavior imo)
12:18:06 <Keymaker> and probably supposed to, iirc that was in the language syntax i read yesterday :)
12:18:16 <Keymaker> yeah
12:18:31 <Keymaker> i especially like the '?
12:18:42 <Keymaker> feature of this language
12:18:54 <Keymaker> (i accidentally pressed return while writing that..)
12:19:03 <mtve> question mark, i see.
12:19:11 <Keymaker> :)
12:24:18 <mtve> sorry, i've confused top with bottom, should be <bottom> 104 105 <top>
12:29:10 <Keymaker> ok :)
12:29:24 <Keymaker> anyways, here's a random byte generator:
12:29:25 <Keymaker> 8> v
12:29:25 <Keymaker> ^_25*,@>?1v
12:29:25 <Keymaker> : 0
12:29:25 <Keymaker> ^ -1 .< <
12:29:43 <Keymaker> this befunge is easy to learn
12:33:07 <mtve> v v v v v v v v
12:33:07 <mtve> >?1>?1>?1>?1>?1>?1>?1>?1>........25*,@
12:33:07 <mtve> >0^>0^>0^>0^>0^>0^>0^>0^
12:34:11 <Keymaker> hehe, here's nice one :)
12:34:50 <Keymaker> it's fun because there are so many different ways to write a program
12:42:58 <Keymaker> ..and it's nice to see the code getting more complex, when trying to get it smaller;
12:42:59 <Keymaker> 8> v
12:42:59 <Keymaker> ^_25*,@v0?1v
12:42:59 <Keymaker> ^ :-1.< ^#<
12:43:33 <mtve> golf!
12:43:47 <Keymaker> isn't there befunge golf yet? :)
12:45:04 <Keymaker> hmmm.. according to google, seems that there's no :)
12:46:28 <Keymaker> anyways, i'll go now, bye :)
12:46:29 -!- Keymaker has quit.
13:47:15 -!- kpreid has quit.
13:48:24 -!- kpreid has joined.
19:18:01 -!- ChanServ has quit (ACK! SIGSEGV!).
19:19:40 -!- ChanServ has joined.
19:19:40 -!- irc.freenode.net has set channel mode: +o ChanServ.
19:56:19 <mtve> 0?v#_25*,@ v
19:56:19 <mtve> 1 < ^:%8-1.<
←2005-01-15 2005-01-16 2005-01-17→ ↑2005 ↑all