Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fibonacci Butt Sort

Name: Anonymous 2009-08-16 23:08

Let us discuss the various implementations of theFIBONACCI BUTT SORT.

Name: Anonymous 2009-11-27 3:45

>>197
It's because I'm an EXPERT ARTIST, not an EXPERT PROGRAMMER

But, thanks for tips.

Name: Anonymous 2009-11-27 22:25

[b]te st ing[/b]

Name: Anonymous 2009-11-27 22:26

TURNKEY

Name: Anonymous 2009-11-28 7:17

bbcode test
for(;;) {
    int x;
}

Name: Anonymous 2010-01-21 8:43

BAMPU PANTSU

Name: sage 2010-01-23 13:48

no bampu 4 u

Name: Anonymous 2010-01-23 13:49

>>206
u sure?

Name: Anonymous 2010-03-11 19:31

VALID BF CODE

++++++++++[->++++++++++<]>[->+>+>+>+>+>+>+<<<<<<<]<+++++++++
+[->+++++<]>[->>>>>>-<<<<<<]>--------->-->+++++>+++++++++++>
+++++++++++++++++>--->------->>++++[-<++++++++>]<<<<<<<<.>>.
>>>>.<<<<<<.>.>>>>>.[<]<,[--------------------------------[>
]>[.>>>>.>>.<<<<<<<<++++++++++++++++++++++++++++++++.>>.>>>>
>.<.[->>>>>+<<<<<]<[->>>>>+<<<<<]>>>>>[-<<<<+>>>>]>[-<<<<<<+
>>>>>>]<<[<]<[-]]>>>>>>>>.[<]<,]>>.>>>>>.<<<<.>>>>>.<<<<<<.>
>>>>.<<<.>>>>.

Name: Anonymous 2010-03-11 19:54

>>208
Valid BF code

Name: Anonymous 2010-03-11 22:34

>>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:

v>>31g> ::51gg:2v++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9p BXY|-+<v3*89<%+ *                                                      *   +
21 >98 *7^>+\-0|<+ *                                                     *    +
*5 ^:+ 1pg15\,:< + *                                                     ***  +
10^  <>$25*,51g1v+                                                            +
-^ p<| -*46p15:+<+                                                            +
31^> 151p>92*4v+                                                            +
 ^_ ".",   ^ vp1<+                                                            +
>v >41p      >0 v+                                                            +
:5! vg-1g15-1g14<+                                                            +
+1-+>+41g1-51gg+v+                                                            +
1p-1vg+1g15-1g14<+                                                            +
g61g>+41g51g1-g+v+                                                            +
14*1v4+g+1g15g14<+                           * *                              +
5>^4>1g1+51g1-g+v+                           * *                              +
^ _^v4+gg15+1g14<+                           ***                              +
>v! >1g1+51g1+g+v+                                                            +
g8-v14/*25-*4*88<+                                                            +
19+>g51gg" "- v  +                                                            +
4*5  v<   v-2:_3v+                                                            +
 >^   |!-3_$  v<-+                                                            +
^    < <      <|<+                                                         ***+
>g51gp ^ >51gp^>v+                                                            +
^14"+"<  ^g14"!"<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

... which is kind of awesome.

Name: Anonymous 2010-03-12 0:13

>>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.

Name: Anonymous 2010-03-12 9:03

>>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.)

Name: Anonymous 2010-03-12 13:17

>>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.

Name: Anonymous 2010-03-12 13:46

Oh is that what that was about? I did pay attention enough to notice the fingerprint registry is down.

Name: Anonymous 2010-04-04 0:41

What!?!

Name: Anonymous 2010-04-04 0:41

WHAT!?!

Name: Anonymous 2010-04-04 0:45

>>215,216
[O],[/U]!

Name: Anonymous 2010-04-04 1:05

[/O]

Name: Anonymous 2010-04-04 3:34

FBYBTSRE

Name: av !AEboxxyE2Q 2010-04-04 4:24

dv

Name: Anonymous 2010-04-04 17:43

Fibonacci Butt Sort

Name: Anonymous 2010-04-04 17:45

Woohoo I did it!

Name: Anonymous 2010-04-04 18:20

I_I_I_I_I_I_I Testing Buttosrt I_I_I_I_I_I_I

Name: Anonymous 2010-04-05 21:56

FIBONACCI BUTT SORT

Name: Anonymous 2010-04-05 21:56

FIBONACCI BUTT SORT

Name: Anonymous 2010-04-05 21:57

FIBONACCI BUTT SORT[

Name: ‏ 2010-04-08 2:28

Name: Anonymous 2010-04-26 15:28

Threar Necromancy PART III

Name: Anonymous 2010-04-26 15:34

>>228
Wow, FBS is almost at nostalgia level now.

Name: Anonymous 2010-04-26 16:20

>>229
UMENA"NOSTALGICBUTT SORT"

Name: Anonymous 2010-04-26 16:52

>>228-230
No. Go away.

Name: Anonymous 2010-07-23 3:47

buttsort my bampu pantsu

Name: Anonymous 2010-07-23 4:24

FIOC:
butt = raw_input('Sting to butt sort: ')

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

sortedbutt += '[/i][/b]'
print sortedbutt


Befunge:
vu                   >:" "`!#v_ "[",10g,"]",,"[","/",10g,"]",v
>"]i[]b[">:#,_>~:01-`|       ,             vp01"u"< <
       >:#,_@ ^              <             <p01"o"<_^#`"t"g01<
       ^  "[/i][/b]"$<

Name: Anonymous 2010-07-23 5:02

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

More results from lpsg.org »

Name: Anonymous 2010-07-23 11:33

bampu pantsu

Name: Anonymous 2010-07-23 11:56

>>234
That doesn't handle newlines very well.

Name: Anonymous 2010-07-23 14:51

Sequence do (
        tag := method(t, "[" .. t .. "]" .. self .. "[/" .. t .. "]")
        forward := method(self tag(call message name))

        fibs := method(
                fibo(list(), self) join b i
        )

        fibo := method(l, s,
                s at(0) ifNil(return l)

                q := s splitAt(1)
                l append(q at(0) o)
                fibu(l, q at(1))
        )
        fibu := method(l, s,
                s at(0) ifNil(return l)

                q := s splitAt(1)
                l append(q at(0) u)
                fibo(l, q at(1))
        )
)


Not very expert, I know.

ugly too

Name: Anonymous 2010-07-23 17:22

>>237 Fixed:

import sys

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

sortedbutt += '
'
print sortedbutt

Name: >>239 2010-07-23 17:23

Whoops, pig disgustingly forgot code tags:

import sys

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

sortedbutt += '[/i][/b]'
print sortedbutt

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List