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

Pages: 1-

Functional programing languages

Name: Anonymous 2009-09-01 14:27

Haskell's type system really is THE BEST.

I recently programmed a simple single-instance file storage system in Erlang (to be used as a storage backend for my future archivers/scrapers/etc). I decided to use Erlang because I wanted the system to work as a remote server and I quite like Erlang's actor model.

Anyway, as I don't really program in Erlang at all, I made lots of really stupid mistakes (mostly forgetting that some return values are wrapped in the list monad or forgetting to pass some arguments in the list monad), which I could find instantly if Erlang had a type system like Haskell.

On the other hand, I really like Erlang's pattern matching against bound variables (I don't think Haskell has something like that?).

Anyway, discuss your experiences with your favourite programming languages in this thread.

Name: Anonymous 2009-09-01 14:31

>>1
QFT! You sir have achieved Satori!

Name: Anonymous 2009-09-01 15:07

When I found out about python's enumerate object.  I came buckets.

Name: Anonymous 2009-09-01 15:12


                      ░░░░  ░░                     ░░░
                        ░░░░░░                         ░░░ ░▒
                     ░░░░░                             ░▒    ░▒░
                   ░░░░    ░  ░░                               ░▒
                 ░░░░░░   ░  ░░░                           ░░    ▒░
               ░░   ░▒░░     ░░           ░               ▓▒      ▒
              ░░  ░░░░░░░   ░░░░   ░░    ░        ░      ▒▒▒░      ▒       ░░░
             ░░  ░░░ ░░░░    ░░                          ░▒▒░░░    ░▒   ░▒░░
            ░░░ ░░░░░░░░░░   ░░                            ░░░░░░░ ░▓▓▓▒▒░░░
░░         ░░░  ░░░░░░░░░░░   ░       ░                ░░░░▒▓▓▓▓▓▓▒▒░▒▓▒░
  ░░░░░░░▒▒▒▒▒░░░░░░░  ░░░░░   ░      ░               ░▒▓▓▓▓▓▓▓▓▒▒▒░▒▒▒▒░
      ░▒▒▒▒▓▓▒▓▓▓▒░░░    ░░▒   ░▒░    ░▒       ░    ░▒▒▒▓▓▓▓▓▓▒░░░░▒▓░ ░
         ▒▒▓▓▓▓▓▓▒▓▒ ░░  ░░░░░░  ▒▒   ░▒     ░░    ░░▓▓▓▓▓▓▒▒▒░  ░▓▓░░ ░
        ░▒░░░▒▒▓▓▓▓▓░░░▒  ░▒▒░   ░▒    ░   ░▒     ░▓▓▓▓▓▒░░░░░░  ░      ▒
       ░▒░░░░░▒▒▒▓▓▓▓▒░░▒ ░▒▒░  ░░▒░      ░░     ▒▓▓▓▓▒░  ░░░░          ▒░
       ░▓░░░░░░░▒▒▒▓▓▒▓░░▒░░▒  ░░░▒▒░ ▒   ▒░   ░▓▓▓▓░  ░░▒▓▒░░░         ░▒
       ░▓░░░░░░░░▒▒▒▓▓▓▓▒▒░░▒  ░▒░▒░ ░▓░░▓▓░  ▒▓▓▓▒▒ ░▒▒▒▒░░             ▓
       ░▓░▒░▒░░░▒▒▒▒▒▓▓▓▓▒░░▓▒▒▒▒▒░   ▒▓▒░  ▒▒▓▓▓▓▒▒▓▓▒▒░░   ░░     ░░   ▒
       ░▒░░▒▒░░▒▒▒▒▒▒▒▓▓▓▓▓▒▓░░░▒▓▒  ▒▒▓░░░▓▓▓▓▓▒▒▓▓▓▒░░░░░░   ░░        ▒
       ░▒▒░░░░▒▒▒░   ░░▒▓▓▓▓▒▓▒░░▓▓▒▒▒▒▒▒▓▓▓▓▒▒▒▓▓▓▒░░░   ░░▒░           ▒
       ░▒▒▒░░▒▒░░░░░░   ▒▓▒▒░▒▒▓▓▓▓▒▒▒▓▒▓▒▒▒▒▓▓▓▒▒▒ ░▒▒▒░   ▒░  ▒        ░
        ░▒▒▒▒▒▒░░▓▓▓▓▓  ▒▓▓▓▒▒▒▒▒░▓▓▒▒░ ░▒▒▒▒▓▓▒▒▓  ▓▓▓▓▓   ░▒░ ░    ░   ░
         ▒░▒▒▒░ ░▓▓▓▓▒  ▓▓▓▓▒▒▒░▒▒░░  ░░▒▒░▒▒▓▓▒▒▒▒░▒▓▓▒▓░ ░░░░         ░░
         ░░▒░▒▒▒▒▒▓▓▓▒▒▓▓▓▓▒░░░▒▒▒▒░░▒▒░░░░░░▒▓▒▒▒▒▒▒▒░░░  ░     ░      ░
         ░▒▒░░▒▒▒░░▒░░▒▓▒▒▓▒▓▓▓▓▓▓▓▓▒▒▓▓▓▓▓▒░░▒▒░▒▒░░░░░░▒░     ░       ░
          ▒▒░░░▒▒▒▒▒▓▓▓▒▒▒░▒▓▓▓▓░▒▒▒░▒▒▒▒▒▓▓▓▒▒░░░▒░░░░░░     ░░       ▒
          ▒▓░░░░░░░▒▒▒▒▒▓▒▒▓░ ▒▒  ▒   ░░ ▒▒▒▓▓▒▒▒░░▒▒░▒░░  ░░░░      ░ ▒
          ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▓  ▒░  ░░  ░▓ ░░░▒▒▒░▒▒░░▒▒▒░▒▒░░░         ▒░
           ▒▒▒░░▒▒▒░░▒▒▒▒▓▒▓░▒▒▒░░▒▒░░▒░░▒▓░▒▒▓ ░░░░░░░▒░  ░░░▒░     ░▓
           ░▓▒▒░░▒▒░░▒▒▒▒▒▒▒░▒▓░ ░▒   ▒ ░░▒▒▒▒▓ ░░░░░░░░▒▒     ░░   ░▒
            ▓▓▒▒░░▒▒░▒▒░▒░▒ ░▒▒░▒▒▒░░░░░░░░▓▒▒▓░░░ ░░   ▒▓     ░   ░▒
             ▒▓▒░░░▒▒░▒▒▓▒▒▒▒▒░▒▒▒░░░  ░░░▒▓▓▒▓▓░   ▒   ░▓         ▓
              ▒▒░░░▒░░░▓▓▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒░░░░░░▒▒   ▒░░  ░░░░░     ▒
               ░▒░░▒░░░░▒▒▒░░░░░░░░░░░░░   ░░▒░   ▒▓    ▒        ▒░
                 ░▒▒▒▒▒▒▒░░░░▒░▒▒▒▒▒       ░░░░▒▒▒▒░  ░░       ░▒
                  ░▒▒▒▒▒▒▒░░░░░░   ░░░░░░   ░░       ▒░   ░░ ░░░
                    ░▒▒▒░▒▒░▒░░░░░░░▒   ░▒▒▒  ▒▒▒░░░░▓░    ░▒░
                      ░▒▒▒▓▒▒░░░░  ░░    ░░░░░░ ░▒▒▒▒░  ░▒▒▒▒
                      ▒▓▓▓▒▒▒▒▒░░░░░░░       ░░       ░▒░   ▓▒
                     ▒▓▓▓▒▒▒▒▒▒░░░▒░░▒░░░░       ░░░░░     ░░▓▓

Name: Anonymous 2009-09-01 15:38

Here is the entirety of my experience with functional languages:
_____SLOW AS FUCK_____

Name: Anonymous 2009-09-01 15:45

Thank you for saging. You are correct, your post really wasn't worthy of bumping the thread.

Name: Anonymous 2009-09-01 15:53

>>5
Expert 1980's Functional Programming Language User

Name: Anonymous 2009-09-01 16:18


                      ░░░░  ░░                     ░░░
                        ░░░░░░                         ░░░ ░▒
                     ░░░░░                             ░▒    ░▒░
                   ░░░░    ░  ░░                               ░▒
                 ░░░░░░   ░  ░░░                           ░░    ▒░
               ░░   ░▒░░     ░░           ░               ▓▒      ▒
              ░░  ░░░░░░░   ░░░░   ░░    ░        ░      ▒▒▒░      ▒       ░░░
             ░░  ░░░ ░░░░    ░░                          ░▒▒░░░    ░▒   ░▒░░
            ░░░ ░░░░░░░░░░   ░░                            ░░░░░░░ ░▓▓▓▒▒░░░
░░         ░░░  ░░░░░░░░░░░   ░       ░                ░░░░▒▓▓▓▓▓▓▒▒░▒▓▒░
  ░░░░░░░▒▒▒▒▒░░░░░░░  ░░░░░   ░      ░               ░▒▓▓▓▓▓▓▓▓▒▒▒░▒▒▒▒░
      ░▒▒▒▒▓▓▒▓▓▓▒░░░    ░░▒   ░▒░    ░▒       ░    ░▒▒▒▓▓▓▓▓▓▒░░░░▒▓░ ░
         ▒▒▓▓▓▓▓▓▒▓▒ ░░  ░░░░░░  ▒▒   ░▒     ░░    ░░▓▓▓▓▓▓▒▒▒░  ░▓▓░░ ░
        ░▒░░░▒▒▓▓▓▓▓░░░▒  ░▒▒░   ░▒    ░   ░▒     ░▓▓▓▓▓▒░░░░░░  ░      ▒
       ░▒░░░░░▒▒▒▓▓▓▓▒░░▒ ░▒▒░  ░░▒░      ░░     ▒▓▓▓▓▒░  ░░░░          ▒░
       ░▓░░░░░░░▒▒▒▓▓▒▓░░▒░░▒  ░░░▒▒░ ▒   ▒░   ░▓▓▓▓░  ░░▒▓▒░░░         ░▒
       ░▓░░░░░░░░▒▒▒▓▓▓▓▒▒░░▒  ░▒░▒░ ░▓░░▓▓░  ▒▓▓▓▒▒ ░▒▒▒▒░░             ▓
       ░▓░▒░▒░░░▒▒▒▒▒▓▓▓▓▒░░▓▒▒▒▒▒░   ▒▓▒░  ▒▒▓▓▓▓▒▒▓▓▒▒░░   ░░     ░░   ▒
       ░▒░░▒▒░░▒▒▒▒▒▒▒▓▓▓▓▓▒▓░░░▒▓▒  ▒▒▓░░░▓▓▓▓▓▒▒▓▓▓▒░░░░░░   ░░        ▒
       ░▒▒░░░░▒▒▒░   ░░▒▓▓▓▓▒▓▒░░▓▓▒▒▒▒▒▒▓▓▓▓▒▒▒▓▓▓▒░░░   ░░▒░           ▒
       ░▒▒▒░░▒▒░░░░░░   ▒▓▒▒░▒▒▓▓▓▓▒▒▒▓▒▓▒▒▒▒▓▓▓▒▒▒ ░▒▒▒░   ▒░  ▒        ░
        ░▒▒▒▒▒▒░░▓▓▓▓▓  ▒▓▓▓▒▒▒▒▒░▓▓▒▒░ ░▒▒▒▒▓▓▒▒▓  ▓▓▓▓▓   ░▒░ ░    ░   ░
         ▒░▒▒▒░ ░▓▓▓▓▒  ▓▓▓▓▒▒▒░▒▒░░  ░░▒▒░▒▒▓▓▒▒▒▒░▒▓▓▒▓░ ░░░░         ░░
         ░░▒░▒▒▒▒▒▓▓▓▒▒▓▓▓▓▒░░░▒▒▒▒░░▒▒░░░░░░▒▓▒▒▒▒▒▒▒░░░  ░     ░      ░
         ░▒▒░░▒▒▒░░▒░░▒▓▒▒▓▒▓▓▓▓▓▓▓▓▒▒▓▓▓▓▓▒░░▒▒░▒▒░░░░░░▒░     ░       ░
          ▒▒░░░▒▒▒▒▒▓▓▓▒▒▒░▒▓▓▓▓░▒▒▒░▒▒▒▒▒▓▓▓▒▒░░░▒░░░░░░     ░░       ▒
          ▒▓░░░░░░░▒▒▒▒▒▓▒▒▓░ ▒▒  ▒   ░░ ▒▒▒▓▓▒▒▒░░▒▒░▒░░  ░░░░      ░ ▒
          ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒▓  ▒░  ░░  ░▓ ░░░▒▒▒░▒▒░░▒▒▒░▒▒░░░         ▒░
           ▒▒▒░░▒▒▒░░▒▒▒▒▓▒▓░▒▒▒░░▒▒░░▒░░▒▓░▒▒▓ ░░░░░░░▒░  ░░░▒░     ░▓
           ░▓▒▒░░▒▒░░▒▒▒▒▒▒▒░▒▓░ ░▒   ▒ ░░▒▒▒▒▓ ░░░░░░░░▒▒     ░░   ░▒
            ▓▓▒▒░░▒▒░▒▒░▒░▒ ░▒▒░▒▒▒░░░░░░░░▓▒▒▓░░░ ░░   ▒▓     ░   ░▒
             ▒▓▒░░░▒▒░▒▒▓▒▒▒▒▒░▒▒▒░░░  ░░░▒▓▓▒▓▓░   ▒   ░▓         ▓
              ▒▒░░░▒░░░▓▓▒▒▒▒▒▒▓▒▒▒▒▒▒▒▒░░░░░░▒▒   ▒░░  ░░░░░     ▒
               ░▒░░▒░░░░▒▒▒░░░░░░░░░░░░░   ░░▒░   ▒▓    ▒        ▒░
                 ░▒▒▒▒▒▒▒░░░░▒░▒▒▒▒▒       ░░░░▒▒▒▒░  ░░       ░▒
                  ░▒▒▒▒▒▒▒░░░░░░   ░░░░░░   ░░       ▒░   ░░ ░░░
                    ░▒▒▒░▒▒░▒░░░░░░░▒   ░▒▒▒  ▒▒▒░░░░▓░    ░▒░
                      ░▒▒▒▓▒▒░░░░  ░░    ░░░░░░ ░▒▒▒▒░  ░▒▒▒▒
                      ▒▓▓▓▒▒▒▒▒░░░░░░░       ░░       ░▒░   ▓▒
                     ▒▓▓▓▒▒▒▒▒▒░░░▒░░▒░░░░       ░░░░░     ░░▓▓

hi

Name: Anonymous 2009-09-01 16:22

>>8
back to /b/, please

Name: Anonymous 2009-09-01 16:55

>>8
Oh god not this again

Name: Anonymous 2009-09-01 17:03

SOMEBODY JUST BROKE /prog/

Name: Anonymous 2009-09-01 17:04

Tell you what, Prague. There was one non-toy program that used Haskell and can be put to work for general purpose use. Remember that ``seL4'' microkernel? They wrote it in Haskell.

But get this: It took them four years, and they still had to translate it into C in order for it to actually run.

EXPERT FUNCTIONAL PROGRAMMING

Name: Anonymous 2009-09-01 17:06

>>11
SOMEBODY JUST BROKE /prog/'s hymen
FTFY

Name: Anonymous 2009-09-01 17:08

>>13
SOMEBODY JUST FIXED /prog/

Name: Anonymous 2009-09-01 17:09

>>12
Nobody cares about Haskell.

Name: Anonymous 2009-09-01 17:13

>>14
o rly?





.
































.

Name: Anonymous 2009-09-01 17:14

>>14
NOBODY FIXED /prog/, THE ONLY REASON IT'S NOT BROKEN ANYMORE IS BECAUSE THAT BROKEN POST NO LONGER SHOWS UP IN THE FRONT PAGE AS A MOST RECENT POST.

Name: Anonymous 2009-09-01 17:15

>>17
I KNOW THAT, YOU RAPIST CHAUVINISTIC PIG INSENSITIVE CLOD

Name: Anonymous 2009-09-01 17:17

>>16


FUCK



YOU

Name: Anonymous 2009-09-01 17:18

>>16
I'm haxing in ur anys

Name: Anonymous 2009-09-01 17:19

>>12
IHBT, but there have been a few real applications written in Haskell. Darcs, xmonad and yi come to mind quickly; there's probably loads more written for specific needs, like maybe the ones Dons writes for his company. Haskell's community is still very small, so I wouldn't expect to see too many "real" programs for a while, or even ever, since Haskell's goal is to avoid success at all costs.

Name: >>21 2009-09-01 17:19

Hay guise I'm fixing [spoiler]/prog/[spoiler]

Name: Anonymous 2009-09-01 17:27

>>22
i don't think you are...





.

































.

Name: Anonymous 2009-09-01 17:29

>>21
Darcs, xmonad, yi
Let's examine these, shall we? I think you'll see that your so-called argument falls apart like a house of cards in a thermonuclear hurricane. No exceptions.

Darcs is a slow, buggy, unusable version control freak system. Every project that has ever used it has gotten fed up with its shitty performance and switched to something written in an imperative language. I guess you could consider that a real application in about the same sense that a steamroller is a real car.

Xmonad is a tiling window manager, which menas it has an incredibly niche audience to begin with. But apparently, even in that niche audience, it's looked down on by everyone who knows anything about window managers. For example: "On the other hand xmonad has great defaults, key bindings and xinerama support but is crippled by not being written in C." — http://www.scrotwm.org

Yi is a slow, buggy clone of a text editor that nobody uses (vi). It's easily the most blatant example of the three of the problems that come from writing an interactive application in a functional language. Every time you input text, it has to rebuild all of its immutable data structures from scratch, because it can't destructively update an array containing the text. And it does this on every keypress. I might as well be using head, tail, and cat to edit my files for all the good it's doing me.

Haskell's goal is to avoid success at all costs
And that's the one thing it will succeed at. Permanently.

Name: Anonymous 2009-09-01 17:30

>>22
No you'r not. You can't even fix youare BBcode.

Name: Anonymous 2009-09-01 17:31

[i]AM I DOING IT RIGHT?[rem][/i][/rem]

Name: Anonymous 2009-09-01 17:31

>>24
And this children, is why you shouldn't troll without adequate training.

Name: Anonymous 2009-09-01 17:32

Good lord, do we have to discuss the usefulness of functional languages every fucking day? Can't we just let them be?

Name: Anonymous 2009-09-01 17:33

I'll just leave this right here
.

Name: Anonymous 2009-09-01 17:34

>>29
And this children, is why you shouldn't break /prog/'s hymen without adequate training.

Name: Anonymous 2009-09-01 17:50

>>29
D
o
i
n
g

i
t

w
r
o
n
g
.

Name: Anonymous 2009-09-01 17:54

Stop it guys, let's have a civilized discussion here >:(

Name: Anonymous 2009-09-01 18:04

>>32
I am now tuching ur but

Name: Anonymous 2009-09-01 18:11

>>33
you makeme hot ;-)

Name: Anonymous 2009-09-01 18:16

>>31
Fffff

Name: Anonymous 2009-09-01 18:29

>>35
uuuuu

Name: Anonymous 2009-09-01 18:30

>>36
nnnnctional programming!

Name: Anonymous 2009-09-02 0:02

/bitchslaps >>36

Name: Haxus the Schemer 2009-09-02 5:52

Gentlemen, I think you will find this picture to be very truthful:
http://img.420chan.org/b/src/1251884950024.jpg

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