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-08-30 14:54

>>80
So that means that I am being buttsorted at a minimum of 50Hz right now at this very moment?

Name: Anonymous 2009-08-30 15:07

>>81
Without a shadow of a doubt yes. Don't worry it's entirely normal.

Name: Anonymous 2009-08-30 17:02

>>82
Unless of course, a second buttsort was being propagated in his proximity at 50Hz with an identical amplitude and 90 degree phase offset from the backround nose. Thus canceling out all active buttsorting.

Name: Anonymous 2009-08-30 17:04

>>83
EE major detected.

Name: Anonymous 2009-08-30 17:10

>>84
Wave polarisation was a high school physics topic

Name: Anonymous 2009-08-30 18:21

>>85
I just realised that I misread >>83, he is talking about interference not polarisation I'm a retard :(

Name: Anonymous 2009-08-30 21:48

>>85
Interference was also a high school physics topic.

Name: Anonymous 2009-08-31 4:37

>>86
Don't be too hard on yourself. Buttsort is hard at first.

Name: Anonymous 2009-09-02 22:53

I AM AFRAID THAT I ACCIDENTLY MADE A BUTTSORTER

Name: Anonymous 2009-09-02 22:56

>>89
OH MY, OH MY
void buttsort(char* out,char* in){
    strcpy(out,"[b][i]");
    out += 6;
    int i,c=0;
    for(i=0;i<strlen(in);++i){
        if(c%2){
            strcpy(out,"[u]?[/u]");
        }else{
            strcpy(out,"[o]?[/o]");
        }
        out[3] = toupper(in[i]);
        out += 8;
        if(!isspace(in[i])) ++c;
    }
    strcpy(out,"[/i][/b]");
}

Name: Anonymous 2009-09-03 1:32

>>90
Now rewrite it in OCaml

Name: Anonymous 2009-09-03 1:38

>>91
Why not HASKELL ?

Name: Anonymous 2009-09-03 1:50

I thought we already had HASKAL and Common Lisp implementations?

Name: Anonymous 2009-09-03 1:56

>>90
BUTT-UGLY

Testing: testing buttsort

Name: Anonymous 2009-09-03 2:01

>>94
Providing a mIRC implementation.
Usage: /bs testing buttsort
Can be used as an identifier, e.g. $buttsort(testing buttsort)
Caveat: Will not function well at all if the output ends up being > 900 characters. This means that you can only do roughly 90 characters worth of input text.

alias bs { say $buttsort($$1-) }
alias bbcode { return $+($chr(91), $1, $chr(93)) }
alias endbbcode { return $bbcode($+($chr(47), $1)) }
alias buttsort {
  var %text = $$1-
  var %output = $bbcode(b) $+ $bbcode(i)
  var %i = 1
  var %ctr = 1
  var %t = $len(%text)
  while (%i <= %t) {
    var %g = $mid(%text, %i, 1)
    var %spacequantity = 0
    while (%i <= %t && %g == $chr(32)) {
      inc %i
      inc %spacequantity
      var %g = $mid(%text, %i, 1)
    }
    if (%i > %t && %spacequantity > 0) { break }
    if (%ctr == 1) {
      var %output = %output $+ $str($chr(32), %spacequantity) $+ $bbcode(u) $+ %g $+ $endbbcode(u)
      var %ctr = 0
    }
    else {
      var %output = %output $+ $str($chr(32), %spacequantity) $+ $bbcode(o) $+ %g $+ $endbbcode(o)
      var %ctr = 1
    }
    inc %i
  }
  var %output = %output $+ $endbbcode(i) $+ $endbbcode(b)
  return %output
}

Name: Anonymous 2009-09-03 2:23

>>95
Thank you sir.  I will be using this often.

Name: Anonymous 2009-09-03 2:26

Testing three words

Name: Anonymous 2009-09-03 2:39

Testing Polynomial Buttsort

Name: Anonymous 2009-09-03 2:42

PBS = Polynomial Buttsort (TEST 2)

Name: Anonymous 2009-09-03 2:44

Now featuring SPOILERS!

Name: Anonymous 2009-09-03 2:48

>>98
Kinda cool
>>99
Getting retarded
>>100
Diarrhea Buttsort

Name: Anonymous 2009-09-03 2:51

>>101
Fuck your shit

Name: Anonymous 2009-09-03 2:58

lol I fucked it up... heres my output no matter what I put in:

null

Name: Anonymous 2009-09-03 3:03

>>98
I wish to acquire your software, good sir

Name: Anonymous 2009-09-03 3:32

>>104
I attempted to reverse-engineer his ButtSort as it appeared kind of random, and it turned out it was just that, split letters, wrap each letter in a random tag, and wrap it with b/i tags.

Polynomial Buttsort

Quick hack over my older implementation:


(asdf:oos 'asdf:load-op '#:split-sequence)

(defun wrap-tag (string tag)
  (if (null tag)
      ""
      (format nil "[~a]~a[/~a]" tag string tag)))

(defun wrap-tags (string &rest tags)
  (labels ((rec (string tags)
         (if tags
         (rec (wrap-tag string (car tags)) (cdr tags))
         string)))
    (rec string (reverse tags))))

(defun split-string (s)
  (map 'list #'identity s))

(defun pick-random (&rest args)
  (nth (random (length args)) args))

(defun bbsort-random (s &optional acyclic)
  (let ((seqs (if acyclic
          (mapcan #'(lambda (x) (list x #\Space)) (split-sequence:split-sequence #\Space s))
          (split-string s))))
    (wrap-tags
      (apply #'concatenate 'string
         (mapcar #'(lambda (x)            
             (if (member x '(#\  "" " ") :test #'equal)
                 " "
                 (progn                  
                   (wrap-tag x (pick-random 'b 'u 'i 'o 'sup 'sub 'code)))))
             seqs)) "i" "b")))


Maybe I'll integrate various buttsorts into it and make it more customizable(add lots of keyword args which can specify all kinds of characteristics of your desired buttsort) another day.

Name: Anonymous 2009-09-03 3:36

Damn, forgot to remove that PROGN which was left over from the previous version(it's harmless, but useless).

Name: Anonymous 2009-09-03 10:04

>>98-chan here Heres my ENTERPRIZE source.


import java.util.Random;
import java.util.StringTokenizer;

import javax.swing.JOptionPane;


public class buttSorter
{
    public static void main(String args[])
    {
        StringTokenizer st = new StringTokenizer(" ");
        String tempChar = "";
        String input = "";
        String output = "[b][i]";
        String next;
        int i = 1;
        String tags[] = new String[]{"b", "i", "o", "u", "code", "sup", "sub"};
        Random gen = new Random();
       
        input = "" + JOptionPane.showInputDialog(
                  null,
                  "What do you wish to Buttsort?",
                  "Buttsorter",
                  JOptionPane.PLAIN_MESSAGE,
                  null,
                  null,
                  "");
           
        try
        {
            st = new StringTokenizer(input);
        }
        catch(Exception e)
        {
            System.out.println("Tokenizer fucked up");
            System.exit(1);
        }
       
            while(st.hasMoreTokens())
            {
               
                next = st.nextToken();
               
                while(next != "")
                {
                    i = Math.abs(gen.nextInt()) % 7;
                    if(next.length() > 1)
                    {
                        tempChar = next.substring(0, 1);
                        next = next.substring(1);
                    }
                    else
                    {
                        tempChar = next;
                        next = "";
                    }
                   
                        output = output + "[" + tags[i] + "]" + tempChar + "[/" + tags[i] + "]";
                   
                }
                if(st.hasMoreTokens())
                    output = output + " ";
            }
            output = output + "[/i][/b]";
           
            System.out.println(output);
        JOptionPane.showInputDialog(
              null,
              "Enjoy your buttsort",
              "Buttsorter",
              JOptionPane.PLAIN_MESSAGE,
              null,
              null,
              output);
       
    }
}

Name: Anonymous 2009-09-03 10:41

DERP DERP DERP DERP DERP DERP

Name: Anonymous 2009-09-03 10:43

Testing kopipe'd polynomial source

Name: Anonymous 2009-09-03 10:47

Sometimes this one looks cool, but sometimes it just looks retarded.

Name: Anonymous 2009-09-03 15:14

>>#
I LOVE YOU! I LOVE YOUR POST! I READ IT null TIMES! KEEP POSTING!

Name: Anonymous 2009-09-03 15:24

Your face!

Name: Anonymous 2009-09-03 15:26

Test cycleing

Name: Anonymous 2009-09-03 15:30

Waveform Buttsort test go!

Name: Anonymous 2009-09-03 15:32

Test two. This one should be good to go.

Name: Anonymous 2009-09-03 15:50

Here is my implementation null null null null

Name: Anonymous 2009-09-03 15:52

The overline makes it look wierd. i took it out

Name: Anonymous 2009-09-03 19:28

testy frgg

Name: Anonymous 2009-09-03 19:30

GOOD OLD FASIONED FIBONACCI BUTTSORT

Name: Anonymous 2009-09-03 19:31

OOPS LETS TRY THAT ONE ONE MORE TIME

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