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

Pages: 1-

Haskell

Name: Anonymous 2007-08-04 16:26 ID:c147O9gn

what is | in this code?

    class (Monad m) => MonadState s m | m -> s where
        get :: m s
        put :: s -> m ()

Name: Anonymous 2007-08-04 16:28 ID:d4JQDkqw

It is most likely an OR in one way or another... I'm afraid my grasp of the Haskell syntax is not that great, many things are still out of my reach.

By the way, I've always wondered what the forall thingy does in type signatures!

Name: Anonymous 2007-08-04 16:38 ID:Heaven

>>2
lolwut?

Name: Anonymous 2007-08-04 16:38 ID:yXvNcHG/

class Monad m => MonadState s m | m -> s where
 get :: m s
 put :: s -> m ()

modify :: MonadState s m => (s -> s) -> m ()

gets :: MonadState s m => (s -> a) -> m a

Name: Anonymous 2007-08-04 18:47 ID:Heaven

class Gonad m => GonadState s m | m -> s where
 get :: m s
 put :: s -> m ()

modify :: GonadState s m => (s -> s) -> m ()

gets :: GonadState s m => (s -> a) -> m a

Name: Anonymous 2007-08-05 9:57 ID:CqNArVr/

Yeah, I'm fucking talking to you, /prog/ and all of you stupid asswipes who post here with your shitty wannabe elitist crap.

I run a Linux server.  I wanted it to handle my torrents instead of me.  I wanted to be able to access it via a web browser, and have it run constantly.  I did not want a gui at all.  There were not a lot of choices for me.  Basically btpd and Azureus.

After some consideration, and reading, I chose Azureus.  Never knew it had a console-only mode.  I installed it.  This necessitated me to install the Java runtime.  You guys have commented on various occasions about the slowness of Java and memory leaks.  So I was worried.

Well, assholes, the shit's been running for about two weeks (on my server which has an uptime of 43 days) and the performance of my server has not been impacted, even when it's handling three simultaneous torrents.  Nor is it a memory hog, and I don't notice an increase in it's memory footprint over time.

Azureus rocks.  Fuck off, you dumb motherfuckers.

Oh, and my server isn't a powerful machine.  500Mhz Celeron CPU with 256MB RAM running 2.6.19.

Again, fuck off.

In before flurry of memes, useless comments, faggotry, and Redcream flood.

Name: Anonymous 2007-08-05 11:11 ID:KnHG2VUv

DID ANYONE FIND OUT THE ANSWER PLZ???????????????????????????????

Name: Anonymous 2007-08-05 11:14 ID:Heaven

>>6
rtorrent or gtfo.
in before YHBT.

Name: Anonymous 2007-08-05 11:15 ID:K/0pi3Af

Name: Anonymous 2007-08-05 11:39 ID:Heaven

>>9
No it isn't.

Name: Anonymous 2007-08-05 11:51 ID:KnHG2VUv

>>10
what is it then?

Name: Anonymous 2007-08-05 11:53 ID:25vI28Tg

>>6
HOLY SHIT THREE SIMULTANEOUS TORRENTS !!!  Too bad I can run 20 simultaneous torrents with rTorrent.

Name: Anonymous 2007-08-05 11:55 ID:Heaven

>>11
I don't know, some kind of OR.

Name: Anonymous 2007-08-05 12:07 ID:KnHG2VUv

>>13
Dont guess, we can all make stupid guesses

Name: Anonymous 2007-08-05 12:07 ID:Heaven

No, you.

Name: Anonymous 2007-08-05 13:26 ID:KnHG2VUv

>>15
faggot

Name: Anonymous 2007-08-05 13:45 ID:Heaven

>>16
Same person.

Name: Anonymous 2007-08-05 15:13 ID:KnHG2VUv

>>17
Pame serson.

Name: Anonymous 2007-08-05 15:59 ID:xOtFTNkV

>>9
Then what condition does it stand for?

Name: Anonymous 2007-08-05 17:46 ID:rp0Ak3rT

Functional dependency.

Name: Anonymous 2007-08-06 3:58 ID:KbcYPy5b

>>20
Hm, I've heard of that... what is it :)?

Name: Anonymous 2007-08-06 4:24 ID:snZvmDjf

fundeps

Name: Anonymous 2007-08-06 4:48 ID:KbcYPy5b

>>22
Thanks.

Name: Anonymous 2007-08-06 14:45 ID:86ZzAoTz

>>22
What's it do?

Name: Anonymous 2007-08-06 15:59 ID:KbcYPy5b

>>24
Something like this ...

http://www.haskell.org/haskellwiki/Functional_dependencies

... I don't quite get it, but I can at least categorize it in my head (the gay porn category, which is very large).

Name: Anonymous 2011-02-04 12:40

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