>>208
You know I very nearly implemented a butt sort in befunge. Keeping track of state in befunge kinda blows, unless you're doing something like this:
>>210
I've occasionally thought about implementing a macro language for befunge, perhaps similar to brainfuck's Pebble. It could be useful since befunge offers very little in the way of abstraction.
I haven't really thought about this in any great detail, however, so I'm not sure how it would work. I'm not even sure what the exact goals would be. I'd be interested to see what thoughts other people have on this matter.
The main downside to this is, that I can foresee, is that it then becomes harder to write self-modifying code: you don't know where things are going to be or their precise layout.
>>211
I seem to recall some sort of support for modules or something similar in Funge-98. I could be mistaken, or it might have been considered and left unpsec'd or something. (I didn't see it in the spec just now, but I didn't look very hard either.)
>>212
There's the "fingerprint" extension mechanism, and some interpreters support mechanisms of writing fingerprints in befunge itself, but I'm not sure it really achieves what I want.
sortedbutt = '[b][i]'
tag = 'u'
for char in butt:
if char == ' ': # space does not use tag
sortedbutt += ' '
else:
sortedbutt += '[' + tag + ']' + char + '[/' + tag + ']'
tag = {'u': 'o',
'o': 'u'}[tag] # switch tag
The best way to increase cum load size is to be very hydrated, ... these essentially unhealthy foods will increase your fitness level and as ... www.lpsg.org › Main › Penis Enlargement - Cached - Similar
Cum Load Increase - Page 4 - 15 posts - Apr 19, 2006
Cum Load Increase - 15 posts - Jan 6, 2006
Any of you take supplements to increase your load? - 4 posts - Feb 21, 2005
if len(sys.argv) == 1:
filename = raw_input("File to buttsort: ")
elif len(sys.argv) == 2:
filename = sys.argv[1]
else:
exit("Wrong number of arguments.")
butt = file(filename).read()
sortedbutt = ''
tag = 'u'
for char in butt:
if char in ' \t\n\r': # space does not use tag
sortedbutt += char
else:
sortedbutt += '[' + tag + ']' + char + '[/' + tag + ']'
tag = {'u': 'o',
'o': 'u'}[tag] # switch tag
if len(sys.argv) == 1:
filename = raw_input("File to buttsort: ")
elif len(sys.argv) == 2:
filename = sys.argv[1]
else:
exit("Wrong number of arguments.")
butt = file(filename).read()
sortedbutt = '[b][i]'
tag = 'u'
for char in butt:
if char in ' \t\n\r': # space does not use tag
sortedbutt += char
else:
sortedbutt += '[' + tag + ']' + char + '[/' + tag + ']'
tag = {'u': 'o',
'o': 'u'}[tag] # switch tag