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

Star /prog/ Movies

Name: Anonymous 2009-10-17 7:27

So I heard that Lucas is producing some new movies, a kind of isomorphism against Star Wars. The titles are:

Ep.I: The Haskell Menance;
Ep.II: Attack of the Sussmans;
Ep.III: The revenge of Frozen Void;
Ep.IV: A New Troll;
Ep.V: Sepples strikes back;
Ep.VI The return of the Haxus.

...and here it seems we have a trailer for Episode V:
http://gigamonkeys.com/blog/2009/10/16/coders-c++.html

Name: Anonymous 2009-10-17 13:43

>>40
I actually enjoy State monad and Parsec lib, but i never written one myself. Existing Monads fits well.

Name: Anonymous 2009-10-17 14:47

>>37
salt my anus

Name: Anonymous 2009-10-17 16:07

>>42
But then you'll have a dry anus. And let me tell you, if your anus gets so dry it cracks... boy, I wouldn't want to be you when you take it up the ass a shit.

Name: Anonymous 2009-10-17 16:26

EXPERT?PROGRAMMER


{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances #-}
module Main where

data BBCode = Str String
            | Tag String BBCode
            | Cons BBCode BBCode
            | Quote BBCode

sup     = Tag "sup"
sub     = Tag "sub"
u       = Tag "u"
o       = Tag "o"
s       = Tag "s"
b       = Tag "b"
i       = Tag "i"
m       = Tag "m"
code    = Tag "code"
spoiler = Tag "spoiler"
q       = Quote
expert  = b.i.o.u

infixr 7 +++
infixr 5 <<

class Bbb a where
        (<<) :: (BBCode -> BBCode) -> a -> BBCode

instance Bbb String where
        f << a = f (Str a)
instance Bbb BBCode where
        f << a = f a

class Bb m n where
        (+++) :: m -> n -> BBCode
instance Bb String String where
        (+++) f = Str.(f ++)
instance Bb BBCode String where
        a +++ b = Cons a (Str b)
instance Bb BBCode BBCode where
        (+++) = Cons
instance Bb String BBCode where
        a +++ b = Str a +++ b
instance Show BBCode where
        show (Str s) = s
        show (Tag t s) = "[" ++ t ++ "]" ++ show s ++ "[/" ++ t ++ "]"
        show (Cons a b) = show a ++ show b
        show (Quote q) = "> " ++ a ++ "[o]" ++ b ++ "[/o]"
                where (a, b) = break (=='\n') (show q)


main = print $ expert << "EXPERT" +++ (spoiler << "?") +++ "PROGRAMMER"

Name: Anonymous 2009-10-17 16:38

>>44
That should be Append, not Cons.

Name: Anonymous 2009-10-17 16:58

>>44
Wouldn't this be simpler?

tag name text = "[" ++ name ++ "]" ++ text ++ "[/" ++ name ++ "]"

u = tag "u"
o = tag "o"
s = tag "s"
b = tag "b"
i = tag "i"
m = tag "m"

spoiler = tag "spoiler"
code = tag "code"
buio = b.u.i.o

quote text =
   "> " ++ first ++ o rest
   where (first, rest) = break (=='\n') text

main = putStrLn $ buio $ "EXPERT" ++ spoiler "?" ++ "PROGRAMMER"

Name: Anonymous 2009-10-17 17:28

Not as enterprisey.

Name: Anonymous 2009-10-17 17:40

[b]Maybe myAnus[b]

Name: Anonymous 2009-10-17 17:49

>>27
Higher or equal. Since it appears first, with equal precedence it will still be evaluated first.

Name: Anonymous 2009-10-17 17:59

>>49
In that one case, yes. It should be higher, though.

Name: Anonymous 2009-10-17 18:02

>>50
No it shouldn't. Which case do you have in mind?

Name: Anonymous 2009-10-17 19:31

>>1
I'm actually tickled; Guy Steele has the same opinion about C++ that I do. I've used C++ for about a year and a half now and it seems that I would give it a better direction than that nuisance of a committee (under the assumption that Guy Steele > Bjarne in language design, I think that's essentially a given).

Name: Anonymous 2009-10-17 20:33

Seems like a good place to post this:

Templates are my favorite C++ feature, and if it wasn't for templates C++ would just be a shitty object-oriented dialect of C.
— Slava

Name: Anonymous 2009-10-17 20:39

>>53
Nobody actually takes Slava seriously. People choose to just laugh at him behind his back only so he keeps entertaining them.

Name: Anonymous 2009-10-17 20:49

>>54
I thought that was the point of this thread. Don't tell me you guys actually believe those jokers.

Name: Anonymous 2009-10-17 21:20

Is this Slava (pronounced Slave-uh) person the same guy in this GoogleTechTalk(tm) video?
http://www.youtube.com/watch?v=f_0QlhYlS8g

Name: Anonymous 2009-10-18 1:11

>>53

Or, you know, you could go for a dynamically typed language

Name: Anonymous 2009-10-18 1:45

>>57
I'm sure he'd like Factor to be Factor all the way down.

Name: Anonymous 2009-10-18 9:18

>>58
Does he make a living off Factor? Because I can find no other logical reason to him to defend such a shitty language so vehemently.

Name: Anonymous 2009-10-18 9:39

>>59
s/to him/for him/

Name: Anonymous 2009-10-18 13:41

>>59
think I cool is factor .

Name: Anonymous 2009-10-18 14:26

>>61
I think you mean “I factor cool is think”.

Name: Anonymous 2009-10-18 15:24

>>59
Why do you think Factor is shitty?

Name: Anonymous 2009-10-18 15:48

>>63
It's simple. Stack languages are inherently even shittier than any toy functional language in existence.

Name: Anonymous 2009-10-18 16:28

>>64
And Factor manages to be both.

Name: Anonymous 2009-10-18 16:38

>>64
STACKROBATICS LOLOLO
Yeah, I figured you were an idiot.

Name: Anonymous 2009-10-18 16:56

>>66
There's no argument for stackrobatics, especially if a language forces you to use it (i.e. doesn't allow local variables (come on, even Forth has local variables)).

Name: Anonymous 2009-10-18 17:44

>>67
There's no argument against it either, especially when a language allows combinators and local variables (come on, even Factor has local variables).

Name: Anonymous 2009-10-18 18:00

>>68
There is at least one argument against it: it's inherently criptic and unnecessary.

Name: Anonymous 2009-10-18 18:00

*cryptic

Name: Anonymous 2009-10-18 18:36

Let's face it, Factor is basically Lisp done right.

Name: Anonymous 2009-10-18 18:46

>>71
How much Lisp do you know?

Name: Anonymous 2009-10-18 18:54

>>69
Funny, that argument also applies to syntax (pig disgusting) and Lisp's parens.

Name: Anonymous 2009-10-18 20:09

>>73
You mad.

Name: Anonymous 2009-10-18 20:18

>>73
Are you saying Factor has no syntax? 'Cause that would be a pretty dumb thing to say.

Name: Anonymous 2009-10-19 2:36

>>75
I'm saying Haskell is pig disgusting.

Name: Anonymous 2009-10-19 5:10

Scheme is Lisp done right.

Name: Anonymous 2009-10-19 5:11

Scheme is Lisp's little sister.

Name: Anonymous 2009-10-19 5:35

why does /prog/ like to talk about Factor so much, more than similar languages like joy or more interesting languages like j?

Name: Anonymous 2009-10-19 7:04

>>79
/prog/ does not like to talk about Factor.  Those are just shitty reddit/xkcd/slashdot users who have unfortunately found /prog/.

IBHT

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